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 
12 template <>
15 {
17  params.addRequiredCoupledVar("variable",
18  "The name of the variable that this boundary condition applies to");
19  return params;
20 }
21 
23  : SideIntegralUserObject(parameters),
24  MooseVariableInterface<Real>(this,
25  false,
26  "variable",
29  _u(coupledValue("variable")),
30  _grad_u(coupledGradient("variable"))
31 {
33 }
34 
35 Real
37 {
38  return _u[_qp];
39 }
VarFieldType
Definition: MooseTypes.h:488
const VariableValue & _u
Holds the solution at current quadrature points.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
void addMooseVariableDependency(MooseVariableFEBase *var)
Call this function to add the passed in MooseVariableFEBase as a variable that this object depends on...
InputParameters validParams< SideIntegralVariableUserObject >()
MooseVariableFE< Real > * mooseVariable() const
Get the variable that this object is using.
VarKindType
Framework-wide stuff.
Definition: MooseTypes.h:481
SideIntegralVariableUserObject(const InputParameters &parameters)
InputParameters validParams< SideIntegralUserObject >()
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
This method adds a coupled variable name pair.
This postprocessor computes a side integral of the specified variable over a given boundary...
Interface for objects that need to get values of MooseVariables.
Definition: Moose.h:112