https://mooseframework.inl.gov
Loading...
Searching...
No Matches
NodalVariablePostprocessor.C
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
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
17{
19 params.addRequiredCoupledVar("variable",
20 "The name of the variable that this postprocessor operates on");
21 return params;
22}
23
25 : NodalPostprocessor(parameters),
26 MooseVariableInterface<Real>(this,
27 true,
28 "variable",
29 Moose::VarKindType::VAR_ANY,
30 Moose::VarFieldType::VAR_FIELD_STANDARD),
31 _u(coupledValue("variable"))
32{
33}
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
This method adds a coupled variable name pair.
Interface for objects that need to get values of MooseVariables.
static InputParameters validParams()
static InputParameters validParams()
NodalVariablePostprocessor(const InputParameters &parameters)
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...