forked from elizakempton/Exo_Transmit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstant.h
61 lines (45 loc) · 2.35 KB
/
constant.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/* This file is part of Exo_Transmit.
Exo_Transmit is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Exo_Transmit is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Exo_Transmit. If not, see <http://www.gnu.org/licenses/>.
*/
/*----------------------- constant.h --------------------------------
Author: Eliza Kempton ([email protected])
--------------------------------------------------------------------- */
#ifndef __CONSTANT_H__
#define __CONSTANT_H__
/*---- Physical constants ------------------------------------------- */
#define CLIGHT 2.99792458E+08 /* Speed of light [m/s] */
#define HPLANCK 6.6260755E-34 /* Planck's constant [Js] */
#define KBOLTZMANN 1.380658E-23 /* Boltzmann's constant[J/K] */
#define MELECTRON 9.1093897E-31 /* Electron mass [kg] */
#define QELECTRON 1.60217733E-19 /* Electron charge [C] */
#define AMU 1.6605402E-27 /* Atomic mass unit [kg] */
#define MHATOM 1.673725E-27 /* H atom mass [kg] */
#define NAVOGADRO 6.0221420E+23 /* Avogadro's number [1/mol] */
#define R_GAS 8.314472E+00 /* Ideal gas const. [J/mol/K] */
#define SIGMA 5.6704E-08 /* Stef.-Boltz. const. [W/m^2/K^4] */
#define NL 2.6867774E+25 /* Loschmidt constant in [m^-3] */
/*---- Unit conversions --------------------------------------------- */
#define NM_TO_M 1.0E-09
#define CM_TO_M 1.0E-02
#define KM_TO_M 1.0E+03
#define MICRON_TO_NM 1.0E+03
#define ERG_TO_JOULE 1.0E-07
#define CAL_TO_JOULE 4.1840
#define G_TO_KG 1.0E-03
#define ATM_TO_PA 1.01325E+05
/*---- Mathematical constants --------------------------------------- */
#ifndef PI
#define PI 3.14159265358979
#endif
#define SQRTPI 1.77245385090551
#endif /* !__CONSTANT_H__ */
/*---- end ------------------------ constant.h ---------------------- */