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.");
registerMooseObject("MooseApp", FunctorCoordinatesFunctionAux)
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.
MooseVariableField< Real > & _var
This is a regular kernel so we cast to a regular MooseVariable, hides base _var.
const QBase *const & _qrule
Quadrature rule being used.
static InputParameters validParams()
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,...
Function auxiliary value.
const Moose::Functor< Real > & _factor
A factor to multiply the output value with for convenience.
const Function & _func
Function being used to compute the value of this kernel.
virtual Real computeValue() override
Compute and return the value of the aux variable.
const Moose::Functor< Real > & _t_functor
Functor being used to provide the 't' coordinate.
const Moose::Functor< Real > & _x_functor
Functor being used to provide the 'x' coordinate.
const Moose::Functor< Real > & _z_functor
Functor being used to provide the 'z' coordinate.
FunctorCoordinatesFunctionAux(const InputParameters ¶meters)
Factory constructor, takes parameters so that all derived classes can be built using the same constru...
static InputParameters validParams()
const bool _is_fe
Whether the target variable is finite element.
const Moose::Functor< Real > & _y_functor
Functor being used to provide the 'y' coordinate.
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.
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.