PLUTO
tc_kappa.c
Go to the documentation of this file.
1 /* ///////////////////////////////////////////////////////////////////// */
2 /*!
3  \file
4  \brief Define the thermal conduction coefficients.
5 
6  Use this function to supply the thermal conduction coefficients \f$
7  \kappa_\| \f$ and \f$ \kappa_\bot \f$ along and across magnetic
8  field lines and the \f$ \phi \f$ parameter used to control the magnitude
9  of the saturated flux \f$ F_{\rm sat} = 5\phi\rho c_{\rm iso}^3 \f$.
10  To exclude saturation, simply set \f$ \phi \f$ to a very large number.
11 
12  \authors A. Mignone (mignone@ph.unito.it)\n
13  T. Matsakos
14  \date Oct 31, 2012
15 */
16 /* ///////////////////////////////////////////////////////////////////// */
17 #include "pluto.h"
18 
19 /* ********************************************************************* */
20 void TC_kappa(double *v, double x1, double x2, double x3,
21  double *kpar, double *knor, double *phi)
22 /*!
23  * Compute thermal conduction coefficients.
24  *
25  * \param [in] v array of primitive variables
26  * \param [in] x1 coordinate in the X1 direction
27  * \param [in] x2 coordinate in the X2 direction
28  * \param [in] x3 coordinate in the X3 direction
29  * \param [out] kpar pointer to the conduction coefficient
30  * \f$ \kappa_\parallel \f$ in the direction of magnetic
31  * field
32  * \param [out] knor pointer to the conduction coefficient
33  * \f$ \kappa_\perp \f$ perpendicular to magnetic field
34  * \param [out] phi pointer to the parameter \f$ \phi \f$ controlling the
35  * magnitude of the saturated flux.
36  *
37  *********************************************************************** */
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
void TC_kappa(double *v, double x1, double x2, double x3, double *kpar, double *knor, double *phi)
Definition: tc_kappa.c:20
PLUTO main header file.