FLAME
devel
Main Page
Related Pages
Classes
Files
File List
All
Classes
Functions
Variables
Typedefs
Enumerations
Pages
src
flame
constants.h
1
#ifndef CONSTANTS_H
2
#define CONSTANTS_H
3
4
#include <math.h>
5
6
// Phase-space units.
7
#if false
8
// Use [m, rad, m, rad, rad, eV/u].
9
#define MtoMM 1e0
10
#define MeVtoeV 1e0
11
#else
12
// Use [mm, rad, mm, rad, rad, MeV/u].
13
#define MtoMM 1e3
14
#define MeVtoeV 1e6
15
#endif
16
17
// Physical constants
18
19
#ifndef M_PI
20
// normally from math.h
21
# define M_PI 3.14159265358979323846
/* pi */
22
#endif
23
24
// Speed of light [m/s].
25
# define C0 2.99792458e8
26
// Atomic mass unit [eV/c^2].
27
# define AU (931.49432e6/MeVtoeV)
28
// Vacuum permeability.
29
# define MU0 4e0*M_PI*1e-7
30
31
32
#endif // CONSTANTS_H
Generated on Mon Jul 18 2016 13:55:44 for FLAME by
1.8.8