PLUTO
4.4-patch2
|
Compute the MHD flux. More...
#include "pluto.h"
Functions | |
void | Flux (const State *state, int beg, int end) |
Compute the flux of the conservative MHD equations in the direction given by g_dir. A useful formulary is
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"
).Normal, tangent and bitangent indices are set in the SetVectorIndices() function.
void Flux | ( | const State * | state, |
int | beg, | ||
int | end | ||
) |
Compute the component of the flux tensor normal to the direction of integration.
[in,out] | state | Pointer to a state structure |
[in] | beg | initial index of computation |
[in] | end | final index of computation |