ASCOT5
|
Methods to evaluate elementary physical quantities. More...
Go to the source code of this file.
Macros | |
#define | physlib_gamma_vnorm(v) |
Evaluate Lorentz factor from velocity norm. | |
#define | physlib_vnorm_gamma(gamma) |
Evaluate velocity norm from Lorentz factor. | |
#define | physlib_gamma_pnorm(m, p) |
Evaluate Lorentz factor from momentum norm. | |
#define | physlib_gamma_vpar(m, mu, vpar, B) |
Evaluate Lorentz factor from parallel velocity. | |
#define | physlib_gamma_ppar(m, mu, ppar, B) |
Evaluate Lorentz factor from parallel momentum. | |
#define | physlib_Ekin_gamma(m, gamma) ( ( gamma - 1.0 ) * m * CONST_C2 ) |
Evaluate kinetic energy [J] from Lorentz factor. | |
#define | physlib_gamma_Ekin(m, ekin) ( ekin / ( m * CONST_C2 ) + 1.0 ) |
Evaluate Lorentz factor from kinetic energy [J]. | |
#define | physlib_Ekin_pnorm(m, p) |
Evaluate kinetic energy [J] from momentum norm. | |
#define | physlib_Ekin_ppar(m, mu, ppar, B) |
Evaluate kinetic energy [J] from parallel momentum. | |
#define | physlib_vnorm_pnorm(m, p) |
Evaluate velocity norm [m/s] from momentum norm. | |
#define | physlib_pnorm_vnorm(m, v) ( m * v * physlib_gamma_vnorm(v) ) |
Evaluate momentum norm [kg m/s] from velocity norm. | |
#define | physlib_gc_ppar(p, xi) ( p * xi ) |
Evaluate guiding center parallel momentum [kg m/s] from momentum norm and pitch. | |
#define | physlib_gc_mu(m, p, xi, B) |
Evaluate guiding center magnetic moment [J/T] from momentum norm and pitch. | |
#define | physlib_gc_p(m, mu, ppar, B) |
Evaluate guiding center momentum norm [kg m/s] from parallel momentum and magnetic moment. | |
#define | physlib_gc_xi(m, mu, ppar, B) |
Evaluate guiding center pitch from parallel momentum and magnetic moment. | |
#define | physlib_gyrolength_p(q, p, B) |
Evaluate gyroradius [m] from momentum vector. | |
#define | phys_gyrolength_ppar(m, q, mu, ppar, B) |
Evaluate gyroradius [m] from parallel momentum and magnetic moment. | |
#define | phys_gyrofreq_pnorm(m, q, p, B) |
Evaluate gyrofrequency [rad/s] from momentum norm. | |
#define | phys_gyrofreq_ppar(m, q, mu, ppar, B) |
Evaluate gyrofrequency [rad/s] from parallel momentum and magnetic moment. | |
#define | phys_ptoroid_fo(q, R, pphi, psi) |
Evaluate toroidal canonical momentum for particle. | |
#define | phys_ptoroid_gc(q, R, ppar, psi, B, Bphi) |
Evaluate toroidal canonical momentum for guiding center. | |
Methods to evaluate elementary physical quantities.
Definition in file physlib.h.
#define physlib_gamma_vnorm | ( | v | ) |
#define physlib_vnorm_gamma | ( | gamma | ) |
#define physlib_gamma_pnorm | ( | m, | |
p ) |
Evaluate Lorentz factor from momentum norm.
where
#define physlib_gamma_vpar | ( | m, | |
mu, | |||
vpar, | |||
B ) |
Evaluate Lorentz factor from parallel velocity.
where
#define physlib_gamma_ppar | ( | m, | |
mu, | |||
ppar, | |||
B ) |
#define physlib_Ekin_gamma | ( | m, | |
gamma ) ( ( gamma - 1.0 ) * m * CONST_C2 ) |
#define physlib_gamma_Ekin | ( | m, | |
ekin ) ( ekin / ( m * CONST_C2 ) + 1.0 ) |
#define physlib_Ekin_pnorm | ( | m, | |
p ) |
Evaluate kinetic energy [J] from momentum norm.
where
#define physlib_Ekin_ppar | ( | m, | |
mu, | |||
ppar, | |||
B ) |
Evaluate kinetic energy [J] from parallel momentum.
where
#define physlib_vnorm_pnorm | ( | m, | |
p ) |
#define physlib_pnorm_vnorm | ( | m, | |
v ) ( m * v * physlib_gamma_vnorm(v) ) |
#define physlib_gc_ppar | ( | p, | |
xi ) ( p * xi ) |
#define physlib_gc_mu | ( | m, | |
p, | |||
xi, | |||
B ) |
#define physlib_gc_p | ( | m, | |
mu, | |||
ppar, | |||
B ) |
Evaluate guiding center momentum norm [kg m/s] from parallel momentum and magnetic moment.
where
#define physlib_gc_xi | ( | m, | |
mu, | |||
ppar, | |||
B ) |
Evaluate guiding center pitch from parallel momentum and magnetic moment.
where
#define physlib_gyrolength_p | ( | q, | |
p, | |||
B ) |
Evaluate gyroradius [m] from momentum vector.
where
#define phys_gyrolength_ppar | ( | m, | |
q, | |||
mu, | |||
ppar, | |||
B ) |
Evaluate gyroradius [m] from parallel momentum and magnetic moment.
where
#define phys_gyrofreq_pnorm | ( | m, | |
q, | |||
p, | |||
B ) |
Evaluate gyrofrequency [rad/s] from momentum norm.
where
#define phys_gyrofreq_ppar | ( | m, | |
q, | |||
mu, | |||
ppar, | |||
B ) |
Evaluate gyrofrequency [rad/s] from parallel momentum and magnetic moment.
where
#define phys_ptoroid_fo | ( | q, | |
R, | |||
pphi, | |||
psi ) |