Compute the MHD flux.
More...
|
void | Flux (double **ucons, double **wprim, double *a2, double **bck, double **fx, double *p, int beg, int end) |
|
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").
- Author
- A. Mignone (migno.nosp@m.ne@p.nosp@m.h.uni.nosp@m.to.i.nosp@m.t)
- Date
- Aug 16, 2012
void Flux |
( |
double ** |
ucons, |
|
|
double ** |
wprim, |
|
|
double * |
a2, |
|
|
double ** |
bck, |
|
|
double ** |
fx, |
|
|
double * |
p, |
|
|
int |
beg, |
|
|
int |
end |
|
) |
| |
- Parameters
-
[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 |
- Returns
- This function has no return value.