PLUTO
tc_kappa.c File Reference

Define the thermal conduction coefficients. More...

#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 *kpar, double *knor, double *phi)
 

Detailed Description

Define the thermal conduction coefficients.

Use this function to supply the thermal conduction coefficients $ \kappa_\| $ and $ \kappa_\bot $ along and across magnetic field lines and the $ \phi $ parameter used to control the magnitude of the saturated flux $ F_{\rm sat} = 5\phi\rho c_{\rm iso}^3 $. To exclude saturation, simply set $ \phi $ to a very large number.

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

Definition in file tc_kappa.c.

Function Documentation

void TC_kappa ( double *  v,
double  x1,
double  x2,
double  x3,
double *  kpar,
double *  knor,
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 20 of file tc_kappa.c.

38 {
39  double mu, T, B2_cgs, nH;
40 
41  mu = 0.5;
42  T = v[PRS]/v[RHO]*mu*KELVIN;
43 
44  *kpar = 5.6e-7*T*T*sqrt(T);
45  #if PHYSICS == MHD
46  B2_cgs = EXPAND(v[BX1]*v[BX1], + v[BX2]*v[BX2], + v[BX3]*v[BX3]) + 1.e-12;
48  nH = v[RHO]*UNIT_DENSITY/CONST_mp;
49  *knor = 3.3e-16*nH*nH/(sqrt(T)*B2_cgs);
50  #endif
51 
52  *phi = 0.3;
53 }
tuple T
Definition: Sph_disk.py:33
#define UNIT_DENSITY
Unit density in gr/cm^3.
Definition: pluto.h:369
#define RHO
Definition: mod_defs.h:19
#define KELVIN
Definition: pluto.h:401
#define CONST_mp
Proton mass.
Definition: pluto.h:261
#define UNIT_VELOCITY
Unit velocity in cm/sec.
Definition: pluto.h:377
#define BX3
Definition: mod_defs.h:27
#define BX1
Definition: mod_defs.h:25
#define CONST_PI
.
Definition: pluto.h:269
#define BX2
Definition: mod_defs.h:26