PLUTO
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
tc_kappa.c
Go to the documentation of this file.
1
#include "
pluto.h
"
2
3
void
TC_kappa
(
double
*v,
double
x1,
double
x2,
double
x3,
4
double
*kpar,
double
*knor,
double
*phi)
5
{
6
double
mu, nH, sqT,
T
, B2_cgs;
7
double
ctts_mu = 1.265060;
8
9
mu = ctts_mu/2.0;
10
T = v[PRS]/v[
RHO
]*(mu*
CONST_mp
*
UNIT_VELOCITY
*
UNIT_VELOCITY
/
CONST_kB
);
11
sqT = sqrt(T);
12
13
*kpar = 5.6e-7*T*T*sqT;
14
15
#if PHYSICS == MHD
16
nH = v[
RHO
]*
UNIT_DENSITY
/(mu*
CONST_mp
);
17
B2_cgs = EXPAND(v[
BX1
]*v[
BX1
], + v[
BX2
]*v[
BX2
], + v[
BX3
]*v[
BX3
]) + 1.e-12;
18
B2_cgs *= 4.0*
CONST_PI
*
UNIT_DENSITY
*
UNIT_VELOCITY
*
UNIT_VELOCITY
;
19
*knor = 3.3e-16*nH*nH/sqT/B2_cgs;
20
#else
21
*knor = 0.0;
22
#endif
23
24
*kpar *=
CONST_mp
*mu/(
UNIT_DENSITY
*UNIT_VELOCITY*
UNIT_LENGTH
*
CONST_kB
);
25
*knor *=
CONST_mp
*mu/(
UNIT_DENSITY
*UNIT_VELOCITY*
UNIT_LENGTH
*
CONST_kB
);
26
27
*phi = 0.3;
28
}
29
Sph_disk.T
tuple T
Definition:
Sph_disk.py:33
UNIT_DENSITY
#define UNIT_DENSITY
Unit density in gr/cm^3.
Definition:
pluto.h:369
RHO
#define RHO
Definition:
mod_defs.h:19
CONST_mp
#define CONST_mp
Proton mass.
Definition:
pluto.h:261
UNIT_VELOCITY
#define UNIT_VELOCITY
Unit velocity in cm/sec.
Definition:
pluto.h:377
UNIT_LENGTH
#define UNIT_LENGTH
Unit Length in cm.
Definition:
pluto.h:373
CONST_kB
#define CONST_kB
Boltzmann constant.
Definition:
pluto.h:259
TC_kappa
void TC_kappa(double *v, double x1, double x2, double x3, double *kpar, double *knor, double *phi)
Definition:
tc_kappa.c:20
BX3
#define BX3
Definition:
mod_defs.h:27
pluto.h
PLUTO main header file.
BX1
#define BX1
Definition:
mod_defs.h:25
CONST_PI
#define CONST_PI
.
Definition:
pluto.h:269
BX2
#define BX2
Definition:
mod_defs.h:26
Test_Problems
MHD
Thermal_conduction
Blast
tc_kappa.c
Generated by
1.8.10