23 params.
addRequiredParam<VariableName>(
"variable",
"The variable to be monitored");
24 params.
addRequiredParam<
unsigned int>(
"elementid",
"The ID of the element where we monitor");
31 _mesh(_subproblem.
mesh()),
33 _subproblem.getActualFieldVariable(_tid, getParam<VariableName>(
"variable")))),
41 mooseError(
"ElementalVariableValue should only be used when node renumbering is disabled.");
64 for (
unsigned int i = 0; i < n; i++)
registerMooseObject("MooseApp", ElementalVariableValue)
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
Real _value
The computed elemental variable value.
const MooseMesh & _mesh
The mesh.
ElementalVariableValue(const InputParameters ¶meters)
virtual void execute() override
Execute method.
const Elem * _element
The element on which the variable value is monitored.
const VariableValue & _var_sln
The element solution values of the monitored variable.
virtual Real getValue() const override
This will get called to actually grab the final value the postprocessor has calculated.
virtual void finalize() override
This is called after execute() and after threadJoin()! This is probably where you want to do MPI comm...
static InputParameters validParams()
virtual void initialSetup() override
Gets called at the beginning of the simulation before this object is asked to do its job.
virtual void setCurrentSubdomainID(const Elem *elem, const THREAD_ID tid) override
This class is here to combine the Postprocessor interface and the base class Postprocessor object alo...
static InputParameters validParams()
MeshBase & getMesh()
Accessor for the underlying libMesh Mesh object.
virtual Elem * queryElemPtr(const dof_id_type i)
Class for stuff related to variables.
virtual void initialSetup()
Gets called at the beginning of the simulation before this object is asked to do its job.
virtual void prepare(const Elem *elem, const THREAD_ID tid)=0
virtual void reinitElem(const Elem *elem, const THREAD_ID tid)=0
void gatherSum(T &value)
Gather the parallel sum of the variable passed in.
SubProblem & _subproblem
Reference to the Subproblem for this user object.
FEProblemBase & _fe_problem
Reference to the FEProblemBase for this user object.
const THREAD_ID _tid
Thread ID of this postprocessor.
processor_id_type processor_id() const
The following methods are specializations for using the libMesh::Parallel::packed_range_* routines fo...