22 "base_function",
"The function used as a basis for the generated periodic function.");
24 std::numeric_limits<Real>::max(),
26 "The period for repetition of the base function in time");
29 std::numeric_limits<Real>::max(),
31 "The period for repetition of the base function in the x direction");
34 std::numeric_limits<Real>::max(),
36 "The period for repetition of the base function in the y direction");
39 std::numeric_limits<Real>::max(),
41 "The period for repetition of the base function in the y direction");
43 "Provides a periodic function by repeating a user-supplied base function in time and/or any "
44 "of the three Cartesian coordinate directions");
51 _base_function(getFunctionByName(getParam<FunctionName>(
"base_function"))),
52 _period_time(getParam<Real>(
"period_time")),
53 _period_x(getParam<Real>(
"period_x")),
54 _period_y(getParam<Real>(
"period_y")),
55 _period_z(getParam<Real>(
"period_z"))
71template <
typename T,
typename P>
92 P p_base(x_base, y_base, z_base);
DualNumber< Real, DNDerivativeType, true > ADReal
registerMooseObject("MooseApp", PeriodicFunction)
Interface for objects that need to use functions.
Base class for function objects.
static InputParameters validParams()
Class constructor.
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,...
PeriodicFunction(const InputParameters ¶meters)
const Real _period_z
Period for repetition of the base function in the z direction.
static InputParameters validParams()
T valueInternal(const T &t, const P &p) const
Templated function where the actual computation of the value as a function of time and spatial coordi...
virtual Real value(Real t, const Point &p) const override
Override this to evaluate the scalar function at point (t,x,y,z), by default this returns zero,...
const Real _period_y
Period for repetition of the base function in the y direction.
const Real _period_x
Period for repetition of the base function in the x direction.
const Function & _base_function
Function used as a basis for the periodic function.
const Real _period_time
Period for repetition of the base function in time.