www.mooseframework.org
LogConstantDT.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 LOGCONSTANTDT_H
16 #define LOGCONSTANTDT_H
17 
18 #include "TimeStepper.h"
19 
20 class LogConstantDT;
21 
22 template <>
24 
27 class LogConstantDT : public TimeStepper
28 {
29 public:
31 
32 protected:
33  virtual Real computeInitialDT() override;
34  virtual Real computeDT() override;
35 
36 private:
38  const Real _log_dt;
39 
41  const Real _first_dt;
42 
43  const Real _dt_factor;
44 
45  const Real _growth_factor;
46 };
47 
48 #endif /* LOGCONSTANTDT_H */
Simple time-stepper which imposes a time step constant in the logarithmic space.
Definition: LogConstantDT.h:27
const Real _log_dt
distance between two time steps in the logarithmic space
Definition: LogConstantDT.h:38
virtual Real computeInitialDT() override
Called to compute _current_dt for the first timestep.
Definition: LogConstantDT.C:46
const Real _first_dt
first time step (in absolute time)
Definition: LogConstantDT.h:41
const Real _dt_factor
Definition: LogConstantDT.h:43
Base class for time stepping.
Definition: TimeStepper.h:31
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
const Real _growth_factor
Definition: LogConstantDT.h:45
virtual Real computeDT() override
Called to compute _current_dt for a normal step.
Definition: LogConstantDT.C:52
InputParameters validParams< LogConstantDT >()
Definition: LogConstantDT.C:19
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:53
LogConstantDT(const InputParameters &parameters)
Definition: LogConstantDT.C:36