PLUTO
|
Compute the thermal conduction flux. More...
#include "pluto.h"
Go to the source code of this file.
Macros | |
#define | TC_SATURATED_FLUX YES |
#define | HYPERBOLIC_SAT_FLUX YES |
Functions | |
void | TC_Flux (double ***T, const State_1D *state, double **dcoeff, int beg, int end, Grid *grid) |
Compute the thermal conduction flux.
Compute the thermal conduction flux along one row of computational zones for the HD and MHD modules according to Spitzer (1962):
where is the classical (hydrodynamic) thermal conduction flux,
is the saturated flux. Temperature is, at present, simply computed as
.
The classical flux is purely parabolic, and it is discretized using standard finite differences. The saturated flux is included only when the macro TC_SATURATED_FLUX is enabled and it is treated in an upwind manner following the guidelines given in the appendix of Mignone et al. 2012 (see also Balsara (2008) for alternative discretization methods).
In MHD, the classical flux further splits into 2 components, along and across the magnetic field lines (see Eq. [7] of Mignone et al.).
This function also computes the inverse of the time step and return its maximum over the current sweep.
References
Definition in file tc_flux.c.
#define HYPERBOLIC_SAT_FLUX YES |
#define TC_SATURATED_FLUX YES |
void TC_Flux | ( | double *** | T, |
const State_1D * | state, | ||
double ** | dcoeff, | ||
int | beg, | ||
int | end, | ||
Grid * | grid | ||
) |
Compute the thermal conduction flux, state->par_flx.
[in] | T | 3D array containing the dimensionless temperature |
[in,out] | state | pointer to a State_1D structure |
[out] | dcoeff | the diffusion coefficient needed for computing the time step. |
[in] | beg | initial index of computation |
[in] | end | final index of computation |
[in] | grid | pointer to an array of Grid structures |
Definition at line 57 of file tc_flux.c.