21 "Evaluates a functor (variable, function or functor material property) on the current "
22 "element, quadrature point, or node.");
23 params.
addRequiredParam<MooseFunctorName>(
"functor",
"The functor to evaluate");
24 params.
addParam<MooseFunctorName>(
"factor", 1,
"A factor to apply on the functor");
30 _functor(getFunctor<Real>(
"functor")),
31 _factor(getFunctor<Real>(
"factor")),
39 "The variable must be a non-vector, non-array finite-volume/finite-element variable.");
41 const auto & functor_name = getParam<MooseFunctorName>(
"functor");
registerMooseObjectRenamed("MooseApp", FunctorElementalAux, "10/14/2024 00:00", FunctorAux)
registerMooseObject("MooseApp", FunctorAux)
bool isNodal() const
Nodal or elemental kernel?
const MooseArray< Point > & _q_point
Active quadrature points.
const Elem *const & _current_elem
Current element (valid only for elemental kernels)
const Node *const & _current_node
Current node (valid only for nodal kernels)
unsigned int _qp
Quadrature point index.
const QBase *const & _qrule
Quadrature rule being used.
static InputParameters validParams()
Evaluate a functor (functor material property, function or variable) with either a cell-center,...
static InputParameters validParams()
virtual Real computeValue() override
Compute and return the value of the aux variable.
FunctorAux(const InputParameters ¶meters)
const bool _is_standard_fe
Whether the variable is a standard finite element variable.
const bool _is_standard_fv
Whether the variable is a standard finite volume variable.
const Moose::Functor< Real > & _factor
Factor to multiply the functor with.
const Moose::Functor< Real > & _functor
Functor to evaluate with the element argument.
Moose::ElemArg makeElemArg(const Elem *elem, bool correct_skewnewss=false) const
Helper method to create an elemental argument for a functor that includes whether to perform skewness...
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 ...
This class provides variable solution interface for linear finite volume problems.
Class for stuff related to variables.
This class provides variable solution values for other classes/objects to bind to when looping over f...
Moose::StateArg determineState() const
Create a functor state argument that corresponds to the implicit state of this object.
bool hasUserObjectByName(const UserObjectName &object_name) const
const UserObjectBase & getUserObjectBaseByName(const UserObjectName &object_name, bool is_dependency=true) const
Get an user object with the name object_name.
Argument for requesting functor evaluation at a quadrature point location in an element.
static const std::set< SubdomainID > undefined_subdomain_connection
A static member that can be used when the connection of a node to subdomains is unknown.