Compute the hydro (HD) flux.
More...
|
void | Flux (double **u, double **w, double *a2, double **fx, double *p, int beg, int end) |
|
Compute the flux of the conservative HD equations in the direction given by g_dir. This function defines the component of the hyperbolic flux tensor of the standard HD equations.
In what follows:
- VXn, MXn are the velocity, momentum components in the direction given by g_dir (normal, "n")
- VXt, MXt and VXb, MXb 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 ** |
u, |
|
|
double ** |
w, |
|
|
double * |
a2, |
|
|
double ** |
fx, |
|
|
double * |
p, |
|
|
int |
beg, |
|
|
int |
end |
|
) |
| |
- Parameters
-
[in] | u | 1D array of conserved quantities |
[in] | w | 1D array of primitive quantities |
[in] | a2 | 1D array of sound speeds |
[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.