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