Go to the documentation of this file.
24 params.
addRequiredParam<std::vector<FunctionName>>(
"function",
"The initial condition function.");
31 std::vector<FunctionName> funcs = getParam<std::vector<FunctionName>>(
"function");
32 if (funcs.size() !=
_ncomp)
33 mooseError(
"number of functions must be equal to the scalar variable order");
35 for (
const auto & func_name : funcs)
virtual Real value() override
The value of the variable.
void mooseError(Args &&... args) const
const Point & _point_zero
Zero point.
const Function & getFunctionByName(const FunctionName &name) const
Get a function with a given name.
defineLegacyParams(FunctionScalarIC)
std::vector< const Function * > _func
static InputParameters validParams()
FunctionScalarIC(const InputParameters ¶meters)
registerMooseObject("MooseApp", FunctionScalarIC)
InitialConditions are objects that set the initial value of variables.
static InputParameters validParams()