PLUTO
|
Compute the MHD flux. More...
#include "pluto.h"
Go to the source code of this file.
Functions | |
void | Flux (double **ucons, double **wprim, double *a2, double **bck, double **fx, double *p, int beg, int end) |
Compute the MHD flux.
Compute the flux of the conservative MHD equations in the direction given by g_dir. This function defines the component of the hyperbolic flux tensor of the standard MHD equations.
In what follows:
VXn
, MXn
, BXn
are the velocity, momentum and magnetic field components in the direction given by g_dir (normal, "n"
)VXt
, MXt
, BXt
and VXb
, MXb
, BXb
are the transverse components (tangent "t"
and bi-tangent "b"
).Definition in file fluxes.c.
void Flux | ( | double ** | ucons, |
double ** | wprim, | ||
double * | a2, | ||
double ** | bck, | ||
double ** | fx, | ||
double * | p, | ||
int | beg, | ||
int | end | ||
) |
[in] | ucons | 1D array of conserved quantities |
[in] | wprim | 1D array of primitive quantities |
[in] | a2 | 1D array of sound speeds |
[in] | bck | 1D array of background field values |
[out] | fx | 1D array of fluxes (total pressure excluded) |
[out] | p | 1D array of pressure values |
[in] | beg | initial index of computation |
[in] | end | final index of computation |
Definition at line 23 of file fluxes.c.