www.mooseframework.org
SideIntegralVariablePostprocessor.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
16 
17 template <>
20 {
22  params.addRequiredCoupledVar("variable",
23  "The name of the variable that this boundary condition applies to");
24  return params;
25 }
26 
28  const InputParameters & parameters)
29  : SideIntegralPostprocessor(parameters),
30  MooseVariableInterface(this, false),
31  _u(coupledValue("variable")),
32  _grad_u(coupledGradient("variable"))
33 {
35 }
36 
37 Real
39 {
40  return _u[_qp];
41 }
InputParameters validParams< SideIntegralPostprocessor >()
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
void addMooseVariableDependency(MooseVariable *var)
Call this function to add the passed in MooseVariable as a variable that this object depends on...
const VariableValue & _u
Holds the solution at current quadrature points.
MooseVariable * mooseVariable()
Get the variable that this object is using.
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.
InputParameters validParams< SideIntegralVariablePostprocessor >()