-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconstants.h
38 lines (34 loc) · 1.33 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
/*
* constants.h
*
* Copyright (c) 2011-2017 Stefan Bender
*
* Initial version created on: 20.04.2011
* Author: Stefan Bender
*
* This file is part of scia_retrieval_2d
*
* scia_retrieval_2d is free software: you can redistribute it or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 2.
* See accompanying COPYING.GPL2 file or http://www.gnu.org/licenses/gpl-2.0.html.
*/
#ifndef CONSTANTS_H_
#define CONSTANTS_H_
#define PHYS_h 6.62606896e-34 // Planck constant h [Js]
#define PHYS_h_eV 4.13566733e-15 // Planck constant h [eV*s]
#define PHYS_c 299792458 // speed of light in vacuum [m/s]
#define PHYS_k 1.3806504e-23 // Boltzmann constant k [J/K]
#define PHYS_k_eV 8.617343e-5 // Boltzmann constant k [eV/K]
#define PHYS_k2 69.50356 // k/hc [1/(m*K)]
#define PHYS_flux 8.829e-21 // pi*e^2/mc^2, [cm^2/Å]
namespace phys {
const double h = 6.62606896e-34; // Planck constant h [Js]
const double h_eV = 4.13566733e-15; // Planck constant h [eV*s]
const double c = 299792458.; // speed of light in vacuum [m/s]
const double k = 1.3806504e-23; // Boltzmann constant k [J/K]
const double k_eV = 8.617343e-5; // Boltzmann constant k [eV/K]
const double k2 = 69.50356; // k/hc [1/(m*K)]
const double flux = 8.829e-21; // pi*e^2/mc^2, [cm^2/Å]
}
#endif /* CONSTANTS_H_ */