www.mooseframework.org
TimeStepMaterial.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
8 #ifndef TIMESTEPMATERIAL_H
9 #define TIMESTEPMATERIAL_H
10 
11 #include "Material.h"
12 
13 class TimeStepMaterial;
14 
15 template <>
16 InputParameters validParams<TimeStepMaterial>();
17 
21 class TimeStepMaterial : public Material
22 {
23 public:
24  TimeStepMaterial(const InputParameters & parameters);
25 
26 protected:
27  virtual void computeQpProperties();
28 
29  MaterialProperty<Real> & _prop_dt;
30  MaterialProperty<Real> & _prop_time;
31  MaterialProperty<Real> & _prop_time_step;
32 };
33 
34 #endif // TIMESTEPMATERIAL_H
MaterialProperty< Real > & _prop_dt
InputParameters validParams< TimeStepMaterial >()
Store current time, dt, and time step number in material properties.
virtual void computeQpProperties()
MaterialProperty< Real > & _prop_time_step
TimeStepMaterial(const InputParameters &parameters)
MaterialProperty< Real > & _prop_time