20 "Auxiliary Kernel that creates and updates a field variable by " 21 "sampling a function with functors (variables, functions, others) as the coordinates.");
22 params.
addRequiredParam<FunctionName>(
"function",
"The function to use as the value");
24 "x_functor",
"The functor to use for the X coordinate function argument");
26 "y_functor",
"The functor to use for the Y coordinate function argument");
28 "z_functor",
"The functor to use for the Z coordinate function argument");
30 "The functor to use for the time function argument");
31 params.
addParam<MooseFunctorName>(
"factor", 1,
"A factor to apply on the functor");
38 _func(getFunction(
"function")),
39 _x_functor(getFunctor<
Real>(
"x_functor")),
40 _y_functor(getFunctor<
Real>(
"y_functor")),
41 _z_functor(getFunctor<
Real>(
"z_functor")),
42 _t_functor(getFunctor<
Real>(
"t_functor")),
43 _factor(getFunctor<
Real>(
"factor")),
50 "The variable must be a non-vector, non-array finite-volume/finite-element variable.");
const Function & _func
Function being used to compute the value of this kernel.
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.
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.
const Moose::Functor< Real > & _t_functor
Functor being used to provide the 't' coordinate.
virtual Real computeValue() override
Compute and return the value of the aux variable.
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...
const Moose::Functor< Real > & _y_functor
Functor being used to provide the 'y' coordinate.
const Moose::Functor< Real > & _z_functor
Functor being used to provide the 'z' coordinate.
registerMooseObject("MooseApp", FunctorCoordinatesFunctionAux)
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 ...
const Moose::Functor< Real > & _x_functor
Functor being used to provide the 'x' coordinate.
MooseVariableField< Real > & _var
This is a regular kernel so we cast to a regular MooseVariable.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const QBase *const & _qrule
Quadrature rule being used.
const bool _is_fe
Whether the target variable is finite element.
FunctorCoordinatesFunctionAux(const InputParameters ¶meters)
Factory constructor, takes parameters so that all derived classes can be built using the same constru...
const Elem *const & _current_elem
Current element (valid only for elemental kernels)
unsigned int _qp
Quadrature point index.
static InputParameters validParams()
static InputParameters validParams()
Function auxiliary value.
virtual Real value(Real t, const Point &p) const
Override this to evaluate the scalar function at point (t,x,y,z), by default this returns zero...
const MooseArray< Point > & _q_point
Active quadrature points.
bool isNodal() const
Nodal or elemental kernel?
const Moose::Functor< Real > & _factor
A factor to multiply the output value with for convenience.