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)
const Node *const & _current_node
Current node (valid only for nodal kernels)
unsigned int count() const
Get the number of components Note: For standard and vector variables, the number is one...
const std::string & name() const override
Get the variable name.
virtual RealEigenVector computeValue() override
Compute and return the value of the aux variable.
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 ...
MooseVariableField< ComputeValueType > & _var
This is a regular kernel so we cast to a regular MooseVariable.
const Function & getFunctionByName(const FunctionName &name) const
Get a function with a given name.
std::vector< const Function * > _funcs
Functions being used to compute the value of this kernel.
unsigned int _qp
Quadrature point index.
static InputParameters validParams()
static InputParameters validParams()
Eigen::Matrix< Real, Eigen::Dynamic, 1 > RealEigenVector
Base class for creating new auxiliary kernels and auxiliary boundary conditions.
const MooseArray< Point > & _q_point
Active quadrature points.
FunctionArrayAux(const InputParameters ¶meters)
bool isNodal() const
Nodal or elemental kernel?