www.mooseframework.org
TimeStepMaterial.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "Material.h"
13 
14 class TimeStepMaterial;
15 
16 template <>
17 InputParameters validParams<TimeStepMaterial>();
18 
22 class TimeStepMaterial : public Material
23 {
24 public:
25  TimeStepMaterial(const InputParameters & parameters);
26 
27 protected:
28  virtual void computeQpProperties();
29 
30  MaterialProperty<Real> & _prop_dt;
31  MaterialProperty<Real> & _prop_time;
32  MaterialProperty<Real> & _prop_time_step;
33 };
34 
TimeStepMaterial::_prop_time_step
MaterialProperty< Real > & _prop_time_step
Definition: TimeStepMaterial.h:32
TimeStepMaterial::computeQpProperties
virtual void computeQpProperties()
Definition: TimeStepMaterial.C:37
TimeStepMaterial::TimeStepMaterial
TimeStepMaterial(const InputParameters &parameters)
Definition: TimeStepMaterial.C:28
validParams< TimeStepMaterial >
InputParameters validParams< TimeStepMaterial >()
Definition: TimeStepMaterial.C:16
TimeStepMaterial::_prop_time
MaterialProperty< Real > & _prop_time
Definition: TimeStepMaterial.h:31
TimeStepMaterial::_prop_dt
MaterialProperty< Real > & _prop_dt
Definition: TimeStepMaterial.h:30
TimeStepMaterial
Store current time, dt, and time step number in material properties.
Definition: TimeStepMaterial.h:22