ASCOT5
|
Routines to evaluate coefficients needed to evaluate collisions. More...
Go to the source code of this file.
Macros | |
#define | mccc_coefs_cab(qa, qb, nb, clogab) |
Evaluate collision parameter [kg^2 m^3 / s^4]. | |
#define | mccc_coefs_Q(ma, qa, mb, qb, nb, vb, clogab, mu0) |
Evaluate non-relativistic drag coefficient [m/s^2]. | |
#define | mccc_coefs_dQ(ma, qa, mb, qb, nb, vb, clogab, dmu0) |
Evaluate derivative of non-relativistic drag coefficient [m/s^2]. | |
#define | mccc_coefs_F(ma, qa, mb, qb, nb, vb, clogab, mu0) |
Evaluate non-relativistic friction coefficient [m/s^2]. | |
#define | mccc_coefs_Dpara(ma, qa, va, qb, nb, vb, clogab, mu0) |
Evaluate non-relativistic parallel diffusion coefficient [m^2/s^3]. | |
#define | mccc_coefs_dDpara(ma, qa, va, qb, nb, vb, clogab, mu0, dmu0) |
Evaluate derivative of non-relativistic parallel diffusion coefficient [m/s^2]. | |
#define | mccc_coefs_Dperp(ma, qa, va, qb, nb, vb, clogab, mu1) |
Evaluate non-relativistic perpendicular diffusion coefficient [m^2/s^3]. | |
#define | mccc_coefs_K(va, Dpara, dDpara, Q) |
Evaluate guiding center drag coefficient [m/s^2]. | |
#define | mccc_coefs_nu(va, Dperp) |
Evaluate pitch collision frequency [1/s]. | |
#define | mccc_coefs_DX(xi, Dpara, Dperp, gyrofreq) |
Evaluate spatial diffusion coefficient [m^2/s]. | |
Functions | |
static void | mccc_coefs_mufun (real mufun[3], real x, mccc_data *mdata) |
Evaluate special functions needed by collision coefficients. | |
static DECLARE_TARGET_END void | mccc_coefs_clog (real *clogab, real ma, real qa, real va, int nspec, const real *mb, const real *qb, const real *nb, const real *Tb) |
Evaluate Coulomb logarithm. | |
Routines to evaluate coefficients needed to evaluate collisions.
Definition in file mccc_coefs.h.
#define mccc_coefs_cab | ( | qa, | |
qb, | |||
nb, | |||
clogab ) |
Evaluate collision parameter [kg^2 m^3 / s^4].
where
Definition at line 25 of file mccc_coefs.h.
#define mccc_coefs_Q | ( | ma, | |
qa, | |||
mb, | |||
qb, | |||
nb, | |||
vb, | |||
clogab, | |||
mu0 ) |
Evaluate non-relativistic drag coefficient [m/s^2].
where
Definition at line 43 of file mccc_coefs.h.
#define mccc_coefs_dQ | ( | ma, | |
qa, | |||
mb, | |||
qb, | |||
nb, | |||
vb, | |||
clogab, | |||
dmu0 ) |
Evaluate derivative of non-relativistic drag coefficient [m/s^2].
where
Definition at line 61 of file mccc_coefs.h.
#define mccc_coefs_F | ( | ma, | |
qa, | |||
mb, | |||
qb, | |||
nb, | |||
vb, | |||
clogab, | |||
mu0 ) |
Evaluate non-relativistic friction coefficient [m/s^2].
where
Definition at line 80 of file mccc_coefs.h.
#define mccc_coefs_Dpara | ( | ma, | |
qa, | |||
va, | |||
qb, | |||
nb, | |||
vb, | |||
clogab, | |||
mu0 ) |
Evaluate non-relativistic parallel diffusion coefficient [m^2/s^3].
or
where
Definition at line 103 of file mccc_coefs.h.
#define mccc_coefs_dDpara | ( | ma, | |
qa, | |||
va, | |||
qb, | |||
nb, | |||
vb, | |||
clogab, | |||
mu0, | |||
dmu0 ) |
Evaluate derivative of non-relativistic parallel diffusion coefficient [m/s^2].
where
Definition at line 126 of file mccc_coefs.h.
#define mccc_coefs_Dperp | ( | ma, | |
qa, | |||
va, | |||
qb, | |||
nb, | |||
vb, | |||
clogab, | |||
mu1 ) |
Evaluate non-relativistic perpendicular diffusion coefficient [m^2/s^3].
or
where
Definition at line 150 of file mccc_coefs.h.
#define mccc_coefs_K | ( | va, | |
Dpara, | |||
dDpara, | |||
Q ) |
Evaluate guiding center drag coefficient [m/s^2].
where
Definition at line 167 of file mccc_coefs.h.
#define mccc_coefs_nu | ( | va, | |
Dperp ) |
Evaluate pitch collision frequency [1/s].
where
Definition at line 180 of file mccc_coefs.h.
#define mccc_coefs_DX | ( | xi, | |
Dpara, | |||
Dperp, | |||
gyrofreq ) |
Evaluate spatial diffusion coefficient [m^2/s].
where
Definition at line 195 of file mccc_coefs.h.
Evaluate special functions needed by collision coefficients.
This function either evaluates the special functions directly or interpolates them from look-up table which should be initialized with mccc_init() before calling this function.
Special functions are
mufun | pointer to array where values are stored |
x | argument for the special functions |
mdata | pointer to mccc data |
Definition at line 275 of file mccc_coefs.h.
|
inlinestatic |
Evaluate Coulomb logarithm.
Coulomb logarithm is evaluated separately with respect to each plasma species. It is calculated as a logarithm of the ratio of maximum and minimum impact parameters. Maximum impact parameter is the Debye length and minimum impact parameter is either classical particle radius or inverse of De Broglie wavelength.
clogab | array where evaluated values for Coulomb logarithm are stored. |
ma | test particle mass [kg] |
qa | test particle charge [C] |
va | test particle velocity [m/s] |
nspec | number of plasma species |
mb | plasma species masses [kg] |
qb | plasma species charges [C] |
nb | plasma species densities [m^-3] |
Tb | plasma species temperatures [J] |
Definition at line 228 of file mccc_coefs.h.