11 #include "metaphysicl/raw_type.h" 22 "Evaluates a vector functor (material property usually) on the current element." 23 "For finite volume, this evaluates the vector functor at the centroid.");
24 params.
addRequiredParam<MooseFunctorName>(
"functor",
"The functor to evaluate");
25 params.
addRequiredParam<
unsigned int>(
"component",
"Component of the vector functor");
26 params.
addParam<MooseFunctorName>(
"factor", 1,
"A factor to apply on the functor");
36 _component(getParam<unsigned
int>(
"component")),
40 paramError(
"variable",
"This AuxKernel only supports Elemental fields");
47 const auto elem_arg = makeElemArg(_current_elem);
48 const auto state = determineState();
Moose::GenericType< Real, is_ad > GenericReal
void paramError(const std::string ¶m, Args... args) const
Emits an error prefixed with the file and line number of the given param (from the input file) along ...
virtual Real computeValue() override
Compute and return the value of the aux variable.
FunctorVectorElementalAuxTempl(const InputParameters ¶meters)
Moose::GenericType< RealVectorValue, is_ad > GenericRealVectorValue
Evaluate a functor vector (material property usually) with the element as the functor argument and sa...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static InputParameters validParams()
static InputParameters validParams()
Base class for creating new auxiliary kernels and auxiliary boundary conditions.
registerMooseObject("MooseApp", FunctorVectorElementalAux)
void ErrorVector unsigned int
bool isNodal() const
Nodal or elemental kernel?