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  *kpar = g_inputParam[KAPPA]*v[RHO];
40  *knor = *kpar;
41  *phi = 1.e40;
42 }
#define KAPPA
#define RHO
Definition: mod_defs.h:19
double g_inputParam[32]
Array containing the user-defined parameters.
Definition: globals.h:131