www.mooseframework.org
SideIntegralVariableUserObject.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
11 
13 
16 {
18  params.addRequiredCoupledVar("variable",
19  "The name of the variable that this boundary condition applies to");
20  return params;
21 }
22 
24  : SideIntegralUserObject(parameters),
25  MooseVariableInterface<Real>(this,
26  false,
27  "variable",
30  _u(coupledValue("variable")),
31  _grad_u(coupledGradient("variable"))
32 {
34 }
35 
36 Real
38 {
39  return _u[_qp];
40 }
Moose::VarFieldType
VarFieldType
Definition: MooseTypes.h:613
Moose
Definition: Moose.h:116
SideIntegralVariableUserObject
This postprocessor computes a volume integral of the specified variable.
Definition: SideIntegralVariableUserObject.h:27
InputParameters::addRequiredCoupledVar
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
This method adds a coupled variable name pair.
Definition: InputParameters.C:216
MooseVariableInterface< Real >::mooseVariable
MooseVariableFE< Real > * mooseVariable() const
Get the variable that this object is using.
Definition: MooseVariableInterface.C:70
MooseVariableDependencyInterface::addMooseVariableDependency
void addMooseVariableDependency(MooseVariableFEBase *var)
Call this function to add the passed in MooseVariableFEBase as a variable that this object depends on...
Definition: MooseVariableDependencyInterface.h:36
SideIntegralUserObject::validParams
static InputParameters validParams()
Definition: SideIntegralUserObject.C:17
defineLegacyParams
defineLegacyParams(SideIntegralVariableUserObject)
SideIntegralVariableUserObject::computeQpIntegral
virtual Real computeQpIntegral() override
Definition: SideIntegralVariableUserObject.C:37
SideIntegralVariableUserObject::_u
const VariableValue & _u
Holds the solution at current quadrature points.
Definition: SideIntegralVariableUserObject.h:39
InputParameters
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
Definition: InputParameters.h:53
Moose::VAR_ANY
Definition: MooseTypes.h:610
SideIntegralVariableUserObject::SideIntegralVariableUserObject
SideIntegralVariableUserObject(const InputParameters &parameters)
Definition: SideIntegralVariableUserObject.C:23
SideIntegralUserObject
This postprocessor computes a side integral of the specified variable over a given boundary.
Definition: SideIntegralUserObject.h:27
SideIntegralUserObject::_qp
unsigned int _qp
Definition: SideIntegralUserObject.h:46
SideIntegralVariableUserObject.h
SideIntegralVariableUserObject::validParams
static InputParameters validParams()
Definition: SideIntegralVariableUserObject.C:15
Moose::VarKindType
VarKindType
Framework-wide stuff.
Definition: MooseTypes.h:606
MooseVariableInterface
Interface for objects that need to get values of MooseVariables.
Definition: MooseVariableInterface.h:24
Moose::VAR_FIELD_STANDARD
Definition: MooseTypes.h:615