|
PLUTO
|
Compute the RMHD flux. More...
#include "pluto.h"
Go to the source code of this file.
Functions | |
| void | Flux (double **ucons, double **uprim, double *h, double **fx, real *pr, int beg, int end) |
Compute the RMHD flux.
Compute the flux of the conservative RMHD 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 ** | uprim, | ||
| double * | h, | ||
| double ** | fx, | ||
| real * | pr, | ||
| int | beg, | ||
| int | end | ||
| ) |
| [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 |
Definition at line 23 of file fluxes.c.