www.mooseframework.org
Classes | Functions
TimeStepMaterial.h File Reference

Go to the source code of this file.

Classes

class  TimeStepMaterial
 Store current time, dt, and time step number in material properties. More...
 

Functions

template<>
InputParameters validParams< TimeStepMaterial > ()
 

Function Documentation

template<>
InputParameters validParams< TimeStepMaterial > ( )

Definition at line 12 of file TimeStepMaterial.C.

13 {
14  InputParameters params = validParams<Material>();
15  params.addParam<MaterialPropertyName>(
16  "prop_dt", "dt", "Material property to store the current dt");
17  params.addParam<MaterialPropertyName>(
18  "prop_time", "time", "Material property to store the current time");
19  params.addParam<MaterialPropertyName>(
20  "prop_time_step", "time_step", "Material property to store the current time step number");
21  return params;
22 }