PLUTO
4.4-patch2
|
Single stage integration for RK time stepping. More...
#include "pluto.h"
Functions | |
void | UpdateStage (Data *d, Data_Arr Uc, Data_Arr Us, double **aflux, double dt, timeStep *Dts, Grid *grid) |
Advance the equations in conservative form by taking a single stage in the form
where and
are a 3D arrays containing, respectively, zone-centered and staggered (conservative) variables, V = d->Vc < > is a 3D array of primitive variables,
R(V)
is the right hand side containing flux differences and source terms. Note that U
and V
may not necessarily be the map of each other, i.e., U
is not U(V)
. The right hand side can contain contributions from all directions.
When the integrator stage is the first one (predictor), this function also computes the maximum of inverse time steps for hyperbolic and parabolic terms (if the latters are included explicitly).
void UpdateStage | ( | Data * | d, |
Data_Arr | Uc, | ||
Data_Arr | Us, | ||
double ** | aflux, | ||
double | dt, | ||
timeStep * | Dts, | ||
Grid * | grid | ||
) |
[in,out] | d | pointer to PLUTO Data structure |
[out] | Uc | zone-centered data array containing cons. variables at the previous time step to be updated. |
[out] | Us | face-centered (staggered) variables at the previous time step to be updated. |
[out] | aflux | interface fluxes needed for refluxing operations (only with AMR) |
[in] | dt | the time step for the current update step |
[in,out] | Dts | pointer to time step structure |
[in] | grid | pointer to Grid structure |