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"))
const Function & _func
Function to evaluate to form the initial condition.
virtual Real value(const Point &p) override
The value of the variable at a point.
virtual const std::string & name() const
Get the name of the class.
registerMooseObject("MooseApp", FVFunctionIC)
const FunctionName functionName() const
Defines a boundary condition that forces the value to be a user specified function at the boundary...
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
FVFunctionIC(const InputParameters ¶meters)
static InputParameters validParams()
const Real _scaling
Scaling factor, to be able to use a function with multiple ICs.
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...
This is a template class that implements the workhorse compute and computeNodal methods.