23 params.
addRequiredParam<std::vector<FunctionName>>(
"function",
"The initial condition function.");
30 std::vector<FunctionName> funcs = getParam<std::vector<FunctionName>>(
"function");
31 if (funcs.size() !=
_ncomp)
32 mooseError(
"number of functions must be equal to the scalar variable order");
34 for (
const auto & func_name : funcs)
const Point & _point_zero
Zero point.
registerMooseObject("MooseApp", FunctionScalarIC)
InitialConditions are objects that set the initial value of variables.
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Function & getFunctionByName(const FunctionName &name) const
Get a function with a given name.
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type.
static InputParameters validParams()
virtual Real value() override
The value of the variable.
FunctionScalarIC(const InputParameters ¶meters)
std::vector< const Function * > _func