www.mooseframework.org
NodalVariablePostprocessor.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 #include "MooseVariable.h"
17 #include "SubProblem.h"
18 #include "MooseTypes.h"
19 
20 template <>
23 {
25  params.addRequiredCoupledVar("variable",
26  "The name of the variable that this postprocessor operates on");
27  return params;
28 }
29 
31  : NodalPostprocessor(parameters), MooseVariableInterface(this, true), _u(coupledValue("variable"))
32 {
33 }
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
InputParameters validParams< NodalVariablePostprocessor >()
InputParameters validParams< NodalPostprocessor >()
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
This method adds a coupled variable name pair.
NodalVariablePostprocessor(const InputParameters &parameters)
Interface for objects that need to get values of MooseVariables.