19 params.
addClassDescription(
"Auxiliary Kernel that creates and updates an array field variable by "
20 "sampling functions through space and time.");
22 "The functions to use as the value");
28 auto & func_names = getParam<std::vector<FunctionName>>(
"functions");
31 "Number of functions must be equal to the number of components of array variable ",
34 for (
auto & fname : func_names)
43 for (
unsigned int i = 0; i <
_var.
count(); ++i)
registerMooseObject("MooseApp", FunctionArrayAux)
Base class for creating new auxiliary kernels and auxiliary boundary conditions.
bool isNodal() const
Nodal or elemental kernel?
const MooseArray< Point > & _q_point
Active quadrature points.
const Node *const & _current_node
Current node (valid only for nodal kernels)
unsigned int _qp
Quadrature point index.
MooseVariableField< ComputeValueType > & _var
This is a regular kernel so we cast to a regular MooseVariable, hides base _var.
static InputParameters validParams()
FunctionArrayAux(const InputParameters ¶meters)
virtual RealEigenVector computeValue() override
Compute and return the value of the aux variable.
static InputParameters validParams()
std::vector< const Function * > _funcs
Functions being used to compute the value of this kernel.
const Function & getFunctionByName(const FunctionName &name) const
Get a function with a given name.
const std::string & name() const
Get the name of the class.
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 ...
unsigned int count() const
Get the number of components Note: For standard and vector variables, the number is one.