www.mooseframework.org
LStableDirk2.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 LSTABLEDIRK2_H
16 #define LSTABLEDIRK2_H
17 
18 #include "TimeIntegrator.h"
19 
20 class LStableDirk2;
21 
22 template <>
24 
50 {
51 public:
53  virtual ~LStableDirk2();
54 
55  virtual int order() { return 2; }
56  virtual void computeTimeDerivatives();
57  virtual void solve();
58  virtual void postStep(NumericVector<Number> & residual);
59 
60 protected:
62  unsigned int _stage;
63 
65  NumericVector<Number> & _residual_stage1;
66 
68  NumericVector<Number> & _residual_stage2;
69 
70  // The parameter of the method, set at construction time and cannot be changed.
71  const Real _alpha;
72 };
73 
74 #endif /* LSTABLEDIRK2_H */
LStableDirk2(const InputParameters &parameters)
Definition: LStableDirk2.C:28
virtual ~LStableDirk2()
Definition: LStableDirk2.C:37
const Real _alpha
Definition: LStableDirk2.h:71
virtual void solve()
Definition: LStableDirk2.C:53
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
InputParameters validParams< LStableDirk2 >()
Definition: LStableDirk2.C:22
virtual void postStep(NumericVector< Number > &residual)
Callback to the TimeIntegrator called immediately after the residuals are computed in NonlinearSystem...
Definition: LStableDirk2.C:84
Base class for time integrators.
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:53
unsigned int _stage
Indicates the current stage (1 or 2).
Definition: LStableDirk2.h:62
virtual void computeTimeDerivatives()
Definition: LStableDirk2.C:40
NumericVector< Number > & _residual_stage2
Buffer to store non-time residual from second stage solve.
Definition: LStableDirk2.h:68
Second order diagonally implicit Runge Kutta method (Dirk) with two stages.
Definition: LStableDirk2.h:49
virtual int order()
Definition: LStableDirk2.h:55
NumericVector< Number > & _residual_stage1
Buffer to store non-time residual from first stage solve.
Definition: LStableDirk2.h:65