Compute the resistive MHD flux. More...
#include "pluto.h"
Functions | |
void | ResistiveFlux (Data_Arr V, double **RF, double **dcoeff, int beg, int end, Grid *grid) |
Compute the resistive fluxes for the induction and energy equations. In the induction equation, fluxes are computed by explicitly writing the curl operator in components. In Cartesian components, for instance, one has
where is the resistive diagonal tensor and
is the current density. The corresponding contribution to the energy equation is
References
void ResistiveFlux | ( | Data_Arr | V, |
double ** | RF, | ||
double ** | dcoeff, | ||
int | beg, | ||
int | end, | ||
Grid * | grid | ||
) |
Compute resistive fluxes for the induction and energy equations. Also, compute the diffusion coefficient. Called by either ParabolicFlux or ParabolicRHS.
[in] | V | 3D data array of primitive variables |
[out] | RF | the resistive fluxes |
[out] | dcoeff | the diffusion coefficients evaluated at cell interfaces |
[in] | beg | initial index of computation |
[in] | end | final index of computation |
[in] | grid | pointer to an array of Grid structures. |