www.mooseframework.org
ExplicitTVDRK2.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 EXPLICITTVDRK2_H
16 #define EXPLICITTVDRK2_H
17 
18 #include "TimeIntegrator.h"
19 
20 class ExplicitTVDRK2;
21 
22 template <>
24 
57 {
58 public:
60  virtual ~ExplicitTVDRK2();
61 
62  virtual void preSolve();
63  virtual int order() { return 2; }
64 
65  virtual void computeTimeDerivatives();
66  virtual void solve();
67  virtual void postStep(NumericVector<Number> & residual);
68 
69 protected:
70  unsigned int _stage;
71 
73  NumericVector<Number> & _residual_old;
74 };
75 
76 #endif /* EXPLICITTVDRK2_H */
unsigned int _stage
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
InputParameters validParams< ExplicitTVDRK2 >()
virtual int order()
NumericVector< Number > & _residual_old
Buffer to store non-time residual from the first stage.
virtual void preSolve()
virtual void postStep(NumericVector< Number > &residual)
Callback to the TimeIntegrator called immediately after the residuals are computed in NonlinearSystem...
virtual ~ExplicitTVDRK2()
virtual void computeTimeDerivatives()
virtual void solve()
Base class for time integrators.
ExplicitTVDRK2(const InputParameters &parameters)
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:53
Explicit TVD (total-variation-diminishing) second-order Runge-Kutta time integration methods: ...