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.");
46 const auto & functor_name = getParam<MooseFunctorName>(
"functor");
52 "Functor is a postprocessor and does not have 'force_preaux' set to true. The value " 53 "of the postprocessor would be lagged in the functor evaluation. 'force_preaux' will " 54 "ensure the value is updated before the auxiliary variables computation.");
57 if (!(uo.isParamValid(
"force_preaux") && uo.getParam<
bool>(
"force_preaux")))
60 "Functor is a user object and does not have 'force_preaux' set to true. The value " 61 "of the user object would be lagged in the functor evaluation. 'force_preaux' will " 62 "ensure the value is updated before the auxiliary variables computation.");
const bool _is_standard_fv
Whether the variable is a standard finite volume variable.
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.
Class for stuff related to variables.
registerMooseObject("MooseApp", FunctorAux)
Evaluate a functor (functor material property, function or variable) with either a cell-center...
const Node *const & _current_node
Current node (valid only for nodal kernels)
Moose::StateArg determineState() const
Create a functor state argument that corresponds to the implicit state of this object.
bool hasUserObject(const std::string &name) const
Check if there if a user object of given name.
bool isParamValid(const std::string &name) const
Test if the supplied parameter is valid.
FEProblemBase & _c_fe_problem
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...
registerMooseObjectRenamed("MooseApp", FunctorElementalAux, "10/14/2024 00:00", FunctorAux)
bool hasPostprocessorValueByName(const PostprocessorName &name) const
Whether or not a Postprocessor value exists by a given name.
const T & getParam(const std::string &name) const
Retrieve a parameter for the object.
Argument for requesting functor evaluation at a quadrature point location in an element.
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 ...
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const QBase *const & _qrule
Quadrature rule being used.
const Moose::Functor< Real > & _functor
Functor to evaluate with the element argument.
const Moose::Functor< Real > & _factor
Factor to multiply the functor with.
const Elem *const & _current_elem
Current element (valid only for elemental kernels)
unsigned int _qp
Quadrature point index.
virtual Real computeValue() override
Compute and return the value of the aux variable.
static InputParameters validParams()
const UserObject & getUserObjectBase(const std::string &name, const THREAD_ID tid=0) const
Get the user object by its name.
This class provides variable solution values for other classes/objects to bind to when looping over f...
FunctorAux(const InputParameters ¶meters)
const MooseArray< Point > & _q_point
Active quadrature points.
This class provides variable solution interface for linear finite volume problems.
const bool _is_standard_fe
Whether the variable is a standard finite element variable.
bool isNodal() const
Nodal or elemental kernel?