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()),
32 _var_name(parameters.
get<VariableName>(
"variable")),
39 mooseError(
"ElementalVariableValue should only be used when node renumbering is disabled.");
64 unsigned int n = u.size();
65 for (
unsigned int i = 0; i < n; i++)
virtual void execute() override
Execute method.
registerMooseObject("MooseApp", ElementalVariableValue)
virtual void finalize() override
This is called after execute() and after threadJoin()! This is probably where you want to do MPI comm...
const std::string & _var_name
virtual MooseVariableFieldBase & getActualFieldVariable(const THREAD_ID tid, const std::string &var_name)=0
Returns the variable reference for requested MooseVariableField which may be in any system...
virtual void reinitElem(const Elem *elem, const THREAD_ID tid)=0
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()
This class is here to combine the Postprocessor interface and the base class Postprocessor object alo...
virtual Elem * queryElemPtr(const dof_id_type i)
SubProblem & _subproblem
Reference to the Subproblem for this user object.
static InputParameters validParams()
void gatherSum(T &value)
Gather the parallel sum of the variable passed in.
MeshBase & getMesh()
Accessor for the underlying libMesh Mesh object.
virtual void prepare(const Elem *elem, const THREAD_ID tid)=0
virtual void setCurrentSubdomainID(const Elem *elem, const THREAD_ID tid) override
OutputTools< Real >::VariableValue VariableValue
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual const FieldVariableValue & sln() const =0
FEProblemBase & _fe_problem
Reference to the FEProblemBase for this user object.
const THREAD_ID _tid
Thread ID of this postprocessor.
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type.
virtual void initialSetup()
Gets called at the beginning of the simulation before this object is asked to do its job...
virtual Real getValue() const override
This will get called to actually grab the final value the postprocessor has calculated.
processor_id_type processor_id() const
ElementalVariableValue(const InputParameters ¶meters)
virtual void initialSetup() override
Gets called at the beginning of the simulation before this object is asked to do its job...