20 "The ElementUOProvider where this Aux pulls values from");
22 params.
addParam<std::string>(
"field_name",
23 "The field name to retrieve from the ElementUOProvider");
25 MooseEnum field_type(
"long Real",
"long");
26 params.
addParam<
MooseEnum>(
"field_type", field_type,
"The type of field to retrieve");
29 params.
addClassDescription(
"Aux Kernel to display generic spatial (elemental) information from a " 30 "UserObject that satisfies the underlying ElementUOProvider " 40 _field_name(isParamValid(
"field_name") ? getParam<
std::string>(
"field_name") :
"default"),
41 _field_type(getParam<
MooseEnum>(
"field_type"))
44 mooseError(
"This AuxKernel only supports Elemental fields");
ElementUOAux(const InputParameters ¶ms)
A MultiMooseEnum object to hold "execute_on" flags.
static InputParameters validParams()
virtual Real computeValue() override
Compute and return the value of the aux variable.
const std::string _field_name
registerMooseObject("MooseApp", ElementUOAux)
auto max(const L &left, const R &right)
const ElementUOProvider & _elem_uo
const ExecFlagType EXEC_TIMESTEP_BEGIN
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
virtual const OutputTools< Real >::VariableValue & value()
The value of the variable this object is operating on.
User object intermediate base class that declares an interface for providing generic fields by name...
virtual Real getElementalValueReal(dof_id_type, const std::string &) const
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
This AuxKernel retrieves values from a ElementUOProvider derived class and returns the reported spati...
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type and optionally a file path to the top-level block p...
const Elem *const & _current_elem
Current element (valid only for elemental kernels)
static InputParameters validParams()
Base class for creating new auxiliary kernels and auxiliary boundary conditions.
const std::string _field_type
virtual unsigned long getElementalValueLong(dof_id_type, const std::string &) const
bool isNodal() const
Nodal or elemental kernel?