www.mooseframework.org
DT2.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 DT2_H
16 #define DT2_H
17 
18 // MOOSE includes
19 #include "TimeStepper.h"
20 
21 // Forward declarations
22 class DT2;
23 
24 namespace libMesh
25 {
26 template <typename T>
27 class NumericVector;
28 }
29 
30 template <>
32 
38 class DT2 : public TimeStepper
39 {
40 public:
41  DT2(const InputParameters & parameters);
42 
43  virtual void preExecute() override;
44  virtual void preSolve() override;
45  virtual void step() override;
46 
47  virtual void rejectStep() override;
48  virtual bool converged() override;
49 
50 protected:
51  virtual Real computeInitialDT() override;
52  virtual Real computeDT() override;
53 
55  NumericVector<Number> *_u_diff, *_u1, *_u2;
56  NumericVector<Number> *_u_saved, *_u_older_saved;
57  NumericVector<Number> *_aux1, *_aux_saved, *_aux_older_saved;
58 
60  Real _error;
62  Real _e_tol;
64  Real _e_max;
67 };
68 
69 #endif /* DT2_H */
NumericVector< Number > * _aux_saved
Definition: DT2.h:57
Real _error
global relative time discretization error estimate
Definition: DT2.h:60
InputParameters validParams< DT2 >()
Definition: DT2.C:34
Base class for time stepping.
Definition: TimeStepper.h:31
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
The following methods are specializations for using the libMesh::Parallel::packed_range_* routines fo...
NumericVector< Number > * _u_diff
Definition: DT2.h:55
Real _max_increase
maximum increase ratio
Definition: DT2.h:66
An adaptive timestepper that compares the solution obtained from a single step of size dt with two st...
Definition: DT2.h:38
Real _e_tol
error tolerance
Definition: DT2.h:62
NumericVector< Number > * _u_saved
Definition: DT2.h:56
Real _e_max
maximal error
Definition: DT2.h:64