17 #include "libmesh/node.h" 25 params.
addRequiredParam<VariableName>(
"variable",
"The variable to be monitored");
26 params.
addRequiredParam<
unsigned int>(
"nodeid",
"The ID of the node where we monitor");
27 params.
addParam<
Real>(
"scale_factor", 1,
"A scale factor to be applied to the variable");
34 _mesh(_subproblem.
mesh()),
35 _var_name(parameters.
get<VariableName>(
"variable")),
37 _scale_factor(getParam<
Real>(
"scale_factor")),
44 mooseError(
"NodalVariableValue should only be used when node renumbering is disabled.");
56 getParam<unsigned int>(
"nodeid"),
59 "' not found in the mesh!");
virtual void finalize() override
This is called after execute() and after threadJoin()! This is probably where you want to do MPI comm...
virtual void execute() override
Execute method.
NodalVariableValue(const InputParameters ¶meters)
T * get(const std::unique_ptr< T > &u)
The MooseUtils::get() specializations are used to support making forwards-compatible code changes fro...
static InputParameters validParams()
const Parallel::Communicator & _communicator
This class is here to combine the Postprocessor interface and the base class Postprocessor object alo...
virtual const std::string & name() const
Get the name of the class.
SubProblem & _subproblem
Reference to the Subproblem for this user object.
static InputParameters validParams()
void initialSetup() override
Gets called at the beginning of the simulation before this object is asked to do its job...
void gatherSum(T &value)
Gather the parallel sum of the variable passed in.
registerMooseObject("MooseApp", NodalVariableValue)
MeshBase & getMesh()
Accessor for the underlying libMesh Mesh object.
Sums a nodal value across all processors and multiplies the result by a scale factor.
virtual Real getValue() const override
This will get called to actually grab the final value the postprocessor has calculated.
virtual MooseVariable & getStandardVariable(const THREAD_ID tid, const std::string &var_name)=0
Returns the variable reference for requested MooseVariable which may be in any system.
OutputData getNodalValue(const Node &node) const
Get the value of this variable at given node.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void max(const T &r, T &o, Request &req) const
const THREAD_ID _tid
Thread ID of this postprocessor.
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type.
processor_id_type processor_id() const