PLUTO  4.0
 All Data Structures Files Functions Variables Enumerations Macros Pages
Macros | Functions
tc_flux.c File Reference

Compute the thermal conduction flux. More...

#include "pluto.h"

Macros

#define HYPERBOLIC_SAT_FLUX   YES
 

Functions

void TC_Flux (double ***T, const State_1D *state, double **dcoeff, int beg, int end, Grid *grid)
 

Detailed Description

Compute the thermal conduction flux along one row of computational zones for the HD and MHD modules according to Spitzer (1962):

\[ F_c = F_{\rm class}/(|F_{\rm class}| + q) \]

where $ F_{\rm class} $ is the classical thermal conduction flux, $ q $ is the saturated flux. Since the first term is purely parabolic, it is discretized using standard finite difference. The saturated flux is treated in an upwind manner following the guidelines given in Balsara (2008) (see also Mignone et al. 2012)

The classical MHD flux further splits into 2 components, along and across the magnetic field lines. This function also computes the inverse of the time step and return its maximum over the current sweep.

References

Authors
A. Mignone (migno.nosp@m.ne@p.nosp@m.h.uni.nosp@m.to.i.nosp@m.t)
T. Matsakos
Date
Sep 13, 2012

Macro Definition Documentation

#define HYPERBOLIC_SAT_FLUX   YES

When set to YES, saturated flux is computed using an upwind selection rule. When set to NO, staurated flux is treated in the same manner as the conduction flux.

Function Documentation

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.

Parameters
[in]T3D array containing the dimensionless temperature
[in,out]statepointer to a State_1D structure
[out]dcoeffthe diffusion coefficient needed for computing the time step.
[in]beginitial index of computation
[in]endfinal index of computation
[in]gridpointer to an array of Grid structures
Returns
This function has no return value.