PLUTO
|
Compute flux for passive scalars. More...
#include "pluto.h"
Go to the source code of this file.
Macros | |
#define | USE_CMA NO |
Functions | |
void | AdvectFlux (const State_1D *state, int beg, int end, Grid *grid) |
Compute flux for passive scalars.
Compute the interface upwind flux for passive scalars q
obeying advection equations of the form:
Fluxes are computed using an upwind selection rule based on the density flux, already computed during a previous Riemann solver:
where is the density flux computed with the employed Riemann solver.
When ionization fractions are present, we employ a technique similar to the CMA (Consistent multi-fluid advection method) to normalize the sum of mass fractions to one.
The CMA can also be switched on for standard tracers ( #define USE_CMA YES
)
Reference "The consistent multi-fluid advection method" Plewa and Muller, A&A (1999) 342, 179.
Definition in file adv_flux.c.
#define USE_CMA NO |
Definition at line 43 of file adv_flux.c.
[in,out] | state | |
[in] | beg | initial index of computation |
[in] | end | final index of computation |
Definition at line 47 of file adv_flux.c.