ASCOT5
Loading...
Searching...
No Matches
Macros
consts.h File Reference

Header file containing physical and mathematical constants. More...

#include "ascot5.h"

Go to the source code of this file.

Macros

#define CONST_PI   3.1415926535897932384626
 pi

 
#define CONST_2PI   6.2831853071795862319959
 2*pi

 
#define CONST_SQRTPI   1.7724538509055160272982
 sqrt(pi)

 
#define CONST_SQRT2PI   2.5066282746310005024158
 sqr(2*pi)

 
#define CONST_C   299792458.0
 Speed of light [m/s]

 
#define CONST_C2   89875517873681760.0
 Speed of light squared [m^2/s^2]

 
#define CONST_U   1.660538921e-27
 Atomic mass unit in kilograms [kg]

 
#define CONST_E   1.602176565e-19
 Elementary charge [C]

 
#define CONST_KB   1.3807e-23
 Boltzmann constant [J/K]

 
#define CONST_M_E   9.1094e-31
 Electron mass [kg]

 
#define CONST_E0   8.8542e-12
 Electric constant [m^-3*kg^-1*s^4*A^2]

 
#define CONST_HBAR   1.0546e-34
 Reduced Planck constant [m^2*kg/s]

 
#define CONST_MU0   1.25663706212e-6
 Magnetic constant [kg*m*s^-2*A^-2]

 

Detailed Description

Header file containing physical and mathematical constants.

Definition in file consts.h.

Macro Definition Documentation

◆ CONST_PI

#define CONST_PI   3.1415926535897932384626

pi

Definition at line 11 of file consts.h.

◆ CONST_2PI

#define CONST_2PI   6.2831853071795862319959

2*pi

Definition at line 14 of file consts.h.

◆ CONST_SQRTPI

#define CONST_SQRTPI   1.7724538509055160272982

sqrt(pi)

Definition at line 17 of file consts.h.

◆ CONST_SQRT2PI

#define CONST_SQRT2PI   2.5066282746310005024158

sqr(2*pi)

Definition at line 20 of file consts.h.

◆ CONST_C

#define CONST_C   299792458.0

Speed of light [m/s]

Definition at line 23 of file consts.h.

◆ CONST_C2

#define CONST_C2   89875517873681760.0

Speed of light squared [m^2/s^2]

Definition at line 26 of file consts.h.

◆ CONST_U

#define CONST_U   1.660538921e-27

Atomic mass unit in kilograms [kg]

Definition at line 29 of file consts.h.

◆ CONST_E

#define CONST_E   1.602176565e-19

Elementary charge [C]

Definition at line 32 of file consts.h.

◆ CONST_KB

#define CONST_KB   1.3807e-23

Boltzmann constant [J/K]

Definition at line 35 of file consts.h.

◆ CONST_M_E

#define CONST_M_E   9.1094e-31

Electron mass [kg]

Definition at line 38 of file consts.h.

◆ CONST_E0

#define CONST_E0   8.8542e-12

Electric constant [m^-3*kg^-1*s^4*A^2]

Definition at line 41 of file consts.h.

◆ CONST_HBAR

#define CONST_HBAR   1.0546e-34

Reduced Planck constant [m^2*kg/s]

Definition at line 44 of file consts.h.

◆ CONST_MU0

#define CONST_MU0   1.25663706212e-6

Magnetic constant [kg*m*s^-2*A^-2]

Definition at line 47 of file consts.h.