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

◆ validParams< TimeStepMaterial >()

template<>
InputParameters validParams< TimeStepMaterial > ( )

Definition at line 16 of file TimeStepMaterial.C.

17 {
18  InputParameters params = validParams<Material>();
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");
25  return params;
26 }