|
METHOD
|
#include <rkSplit.h>


Public Member Functions | |
| RKSplit (Data *data, Model *model, Bcs *bcs, FluxMethod *fluxMethod, ModelExtension *modelExtension=NULL) | |
| virtual | ~RKSplit () |
Public Member Functions inherited from RK2 | |
| RK2 (Data *data, Model *model, Bcs *bcs, FluxMethod *fluxMethod, ModelExtension *modelExtension=NULL) | |
| virtual | ~RK2 () |
| void | predictorStep (double *cons, double *prims, double *aux, double dt) |
| void | correctorStep (double *cons, double *prims, double *aux, double dt) |
| void | step (double *cons, double *prims, double *aux, double dt=0) |
Public Member Functions inherited from TimeIntegrator | |
| TimeIntegrator (Data *data, Model *model, Bcs *bcs, FluxMethod *fluxMethod, ModelExtension *modelExtension=NULL) | |
| virtual | ~TimeIntegrator () |
| void | finalise (double *cons, double *prims, double *aux) |
Public Member Functions inherited from TimeIntegratorBase | |
| TimeIntegratorBase (Data *data, Model *model, Bcs *bcs, FluxMethod *fluxMethod, ModelExtension *modelExtension=NULL) | |
| virtual | ~TimeIntegratorBase () |
Additional Inherited Members | |
Public Attributes inherited from RK2 | |
| double * | p1cons |
| double * | p1prims |
| double * | p1aux |
| double * | args1 |
| double * | args2 |
Public Attributes inherited from TimeIntegratorBase | |
| Data * | data |
| Model * | model |
| Bcs * | bcs |
| FluxMethod * | fluxMethod |
| ModelExtension * | modelExtension |
Operator splitting RK2 integrator, first order accurate in time
\begin{align} U^{*} = \frac{1}{2} U^n + \frac{1}{2} U^{(1)} + \frac{1}{2} \Delta t \mathcal{F}(U^{(1)}) \end{align}
where the first stage result is\begin{align} U^{(1)} = U^n + \Delta t \mathcal{F}(U^n), \end{align}
and then adds the source due to this stage,\begin{align} U^{n+1} = U^* + \Delta t \Psi(U^*), \end{align}
where \(\Psi(U)\) is the source vector due to the state \(U\).
|
inline |
Constructor.
Constructor requires simulation data and the flux and source functions from the model class.
| [in] | *data | pointer to Data class containing global simulation data |
| [in] | *model | pointer to Model object |
| [in] | *bcs | pointer to Bcs object |
| [in] | *fluxMethod | pointer to FluxMethod object |
| [in] | *modelExtension | pointer to the ModelExtension object |