PLUTO
tc_kappa.c File Reference
#include "pluto.h"
Include dependency graph for tc_kappa.c:

Go to the source code of this file.

Functions

void TC_kappa (double *v, double x1, double x2, double x3, double *kappar, double *kapnor, double *phi)
 

Function Documentation

void TC_kappa ( double *  v,
double  x1,
double  x2,
double  x3,
double *  kappar,
double *  kapnor,
double *  phi 
)

Compute thermal conduction coefficients.

Parameters
[in]varray of primitive variables
[in]x1coordinate in the X1 direction
[in]x2coordinate in the X2 direction
[in]x3coordinate in the X3 direction
[out]kparpointer to the conduction coefficient $ \kappa_\parallel $ in the direction of magnetic field
[out]knorpointer to the conduction coefficient $ \kappa_\perp $ perpendicular to magnetic field
[out]phipointer to the parameter $ \phi $ controlling the magnitude of the saturated flux.

Definition at line 3 of file tc_kappa.c.

5 {
6  double a0, T0, a, ap, scrh;
7 
8  ap = 4.412;
9  T0 = 6.05736872274111e7;
10  a0 = 1.e16/pow(T0,2.5);
11  a = ap/a0;
12 
13  *phi = 1.0e14;
14 
15  scrh = v[RHO] * a * pow(v[PRS]/v[RHO], 2.5) / (g_gamma - 1.0);
16 
17  *kappar = scrh;
18  *kapnor = 0.0;
19 
20 }
static double a
Definition: init.c:135
double g_gamma
Definition: globals.h:112
#define RHO
Definition: mod_defs.h:19
tuple scrh
Definition: configure.py:200

Here is the caller graph for this function: