www.mooseframework.org
ConstantDT.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
15 #ifndef CONSTANTDT_H
16 #define CONSTANTDT_H
17 
18 #include "TimeStepper.h"
19 
20 class ConstantDT;
21 
22 template <>
24 
25 class ConstantDT : public TimeStepper
26 {
27 public:
29 
30 protected:
31  virtual Real computeInitialDT() override;
32  virtual Real computeDT() override;
33 
34 private:
35  const Real _constant_dt;
36  const Real _growth_factor;
37 };
38 
39 #endif /* CONSTANTDT_H */
const Real _constant_dt
Definition: ConstantDT.h:35
const Real _growth_factor
Definition: ConstantDT.h:36
Base class for time stepping.
Definition: TimeStepper.h:31
ConstantDT(const InputParameters &parameters)
Definition: ConstantDT.C:33
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
virtual Real computeDT() override
Called to compute _current_dt for a normal step.
Definition: ConstantDT.C:47
InputParameters validParams< ConstantDT >()
Definition: ConstantDT.C:19
virtual Real computeInitialDT() override
Called to compute _current_dt for the first timestep.
Definition: ConstantDT.C:41
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:53