www.mooseframework.org
NodalVariablePostprocessor.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 #include "MooseVariable.h"
12 #include "SubProblem.h"
13 #include "MooseTypes.h"
14 
15 template <>
18 {
20  params.addRequiredCoupledVar("variable",
21  "The name of the variable that this postprocessor operates on");
22  return params;
23 }
24 
26  : NodalPostprocessor(parameters),
27  MooseVariableInterface<Real>(this,
28  true,
29  "variable",
32  _u(coupledValue("variable"))
33 {
34 }
VarFieldType
Definition: MooseTypes.h:488
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
InputParameters validParams< NodalVariablePostprocessor >()
InputParameters validParams< NodalPostprocessor >()
VarKindType
Framework-wide stuff.
Definition: MooseTypes.h:481
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.
Definition: Moose.h:112