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