18 params.
addClassDescription(
"Provide various time stepping quantities as material properties.");
19 params.
addParam<MaterialPropertyName>(
20 "prop_dt",
"dt",
"Material property to store the current dt");
21 params.
addParam<MaterialPropertyName>(
22 "prop_time",
"time",
"Material property to store the current time");
23 params.
addParam<MaterialPropertyName>(
24 "prop_time_step",
"time_step",
"Material property to store the current time step number");
30 _prop_dt(declareProperty<
Real>(getParam<MaterialPropertyName>(
"prop_dt"))),
31 _prop_time(declareProperty<
Real>(getParam<MaterialPropertyName>(
"prop_time"))),
32 _prop_time_step(declareProperty<
Real>(getParam<MaterialPropertyName>(
"prop_time_step")))
MaterialProperty< Real > & _prop_dt
FEProblemBase & _fe_problem
virtual Real & time() const
Store current time, dt, and time step number in material properties.
static InputParameters validParams()
virtual void computeQpProperties()
MaterialProperty< Real > & _prop_time_step
TimeStepMaterial(const InputParameters ¶meters)
virtual int & timeStep() const
registerMooseObject("PhaseFieldApp", TimeStepMaterial)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static InputParameters validParams()
virtual Real & dt() const
MaterialProperty< Real > & _prop_time