www.mooseframework.org
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TimeStepMaterial Class Reference

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

#include <TimeStepMaterial.h>

Inheritance diagram for TimeStepMaterial:
[legend]

Public Member Functions

 TimeStepMaterial (const InputParameters &parameters)
 

Protected Member Functions

virtual void computeQpProperties ()
 

Protected Attributes

MaterialProperty< Real > & _prop_dt
 
MaterialProperty< Real > & _prop_time
 
MaterialProperty< Real > & _prop_time_step
 

Detailed Description

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

Definition at line 21 of file TimeStepMaterial.h.

Constructor & Destructor Documentation

TimeStepMaterial::TimeStepMaterial ( const InputParameters &  parameters)

Definition at line 24 of file TimeStepMaterial.C.

25  : Material(parameters),
26  _prop_dt(declareProperty<Real>(getParam<MaterialPropertyName>("prop_dt"))),
27  _prop_time(declareProperty<Real>(getParam<MaterialPropertyName>("prop_time"))),
28  _prop_time_step(declareProperty<Real>(getParam<MaterialPropertyName>("prop_time_step")))
29 {
30 }
MaterialProperty< Real > & _prop_dt
MaterialProperty< Real > & _prop_time_step
MaterialProperty< Real > & _prop_time

Member Function Documentation

void TimeStepMaterial::computeQpProperties ( )
protectedvirtual

Definition at line 33 of file TimeStepMaterial.C.

34 {
35  _prop_dt[_qp] = _fe_problem.dt();
36  _prop_time[_qp] = _fe_problem.time();
37  _prop_time_step[_qp] = _fe_problem.timeStep();
38 }
MaterialProperty< Real > & _prop_dt
MaterialProperty< Real > & _prop_time_step
MaterialProperty< Real > & _prop_time

Member Data Documentation

MaterialProperty<Real>& TimeStepMaterial::_prop_dt
protected

Definition at line 29 of file TimeStepMaterial.h.

Referenced by computeQpProperties().

MaterialProperty<Real>& TimeStepMaterial::_prop_time
protected

Definition at line 30 of file TimeStepMaterial.h.

Referenced by computeQpProperties().

MaterialProperty<Real>& TimeStepMaterial::_prop_time_step
protected

Definition at line 31 of file TimeStepMaterial.h.

Referenced by computeQpProperties().


The documentation for this class was generated from the following files: