-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConstants.h
68 lines (53 loc) · 1.62 KB
/
Constants.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
62
63
64
65
66
67
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: Constants.h
* Author: dawid
*
* Created on February 3, 2016, 11:12 AM
*/
#ifndef CONSTANTS_H
#define CONSTANTS_H
// Constants in SI units
namespace consts {
typedef const double type;
// Electron charge [C]
type electronCharge = 1.602176565e-19;
//Mass of Calcium [kg]
type MCa = (40.078 * 1.660538921e-27);
// m/q ratio
type qDivM = electronCharge / MCa;
// Pi
type pi = 3.141592653589793;
// Dielectric constant of vacuum
type epsilon0 = 8.854187818E-12; /* epsilon0 +- .000000071E-12 F/m */
// Force on one ion
type forceconstant = (electronCharge*electronCharge / (4. * pi*epsilon0)) / MCa;
// speed of light, [m/s]
type C = 299792458.;
// millimiter [m]
type mm = 1. / 1000.;
// Megahertz SI units [s]
type MHz = 1000000.;
// nano SI prefix
type nano = 1.0e-9;
// Planck constant, in [J s]
type hbar = 1.054571726e-34;
// Planck / C, 2 * pi * hbar / C
type h_div_c = 2 * pi * hbar / C;
// Boltzmann constant, in [J/K]
type k_B = 1.3806488e-23;
// Resonance lifetime, in [s]
type tau = 6.904 * nano;
// Resonance linewidth, in [Hz]
type gamma = 1 / (tau);
// Resonance laser wavelength
type wavelength = 396.95925 * nano;
// Resonance laser frequency, in [Hz]
type resonance_f = C / wavelength;
type m_over_kb = 0.00480933;
}
#endif /* CONSTANTS_H */