19 params.
addRequiredParam<FunctionName>(
"function",
"The initial condition function.");
21 params.
addClassDescription(
"An initial condition that uses a normal function of x, y, z to "
22 "produce values (and optionally gradients) for a field variable.");
23 params.
addParam<Real>(
"scaling_factor", 1,
"Scaling factor to apply on the function");
30 _func(getFunction(
"function")),
31 _scaling(getParam<Real>(
"scaling_factor"))
registerMooseObject("MooseApp", FVFunctionIC)
Defines a boundary condition that forces the value to be a user specified function at the boundary.
static InputParameters validParams()
const FunctionName functionName() const
virtual Real value(const Point &p) override
The value of the variable at a point.
const Function & _func
Function to evaluate to form the initial condition.
const Real _scaling
Scaling factor, to be able to use a function with multiple ICs.
FVFunctionIC(const InputParameters ¶meters)
This is a template class that implements the workhorse compute and computeNodal methods.
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,...
const std::string & name() const
Get the name of the class.