PLUTO  4.4-patch2
Functions
update_stage.c File Reference

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)
 

Detailed Description

Advance the equations in conservative form by taking a single stage in the form

\[ \begin{array}{l} U_c \quad\Longleftarrow \quad U_c + \Delta t R_c(V) \\ \noalign{\medskip} U_s \quad\Longleftarrow \quad U_s + \Delta t R_s(V) \end{array} \]

where $ U_c $ and $ U_s $ 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).

Authors
A. Mignone (migno.nosp@m.ne@t.nosp@m.o.inf.nosp@m.n.it)
C. Zanni (zanni.nosp@m.@oat.nosp@m.o.ina.nosp@m.f.it)
Date
June 15, 2020

Function Documentation

◆ UpdateStage()

void UpdateStage ( Data d,
Data_Arr  Uc,
Data_Arr  Us,
double **  aflux,
double  dt,
timeStep Dts,
Grid grid 
)
Parameters
[in,out]dpointer to PLUTO Data structure
[out]Uczone-centered data array containing cons. variables at the previous time step to be updated.
[out]Usface-centered (staggered) variables at the previous time step to be updated.
[out]afluxinterface fluxes needed for refluxing operations (only with AMR)
[in]dtthe time step for the current update step
[in,out]Dtspointer to time step structure
[in]gridpointer to Grid structure