PLaSK library

Loading...
Searching...
No Matches
constants.hpp
Go to the documentation of this file.
1/*
2 * This file is part of PLaSK (https://plask.app) by Photonics Group at TUL
3 * Copyright (c) 2022 Lodz University of Technology
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, version 3.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 */
14#ifndef PLASK__PHYS_CONSTANTS_H
15#define PLASK__PHYS_CONSTANTS_H
16
22#include "../math.hpp"
23
24 namespace plask {
25
29 namespace phys {
30
31 constexpr double qe = 1.60217733e-19;
32 constexpr double me = 9.10938291e-31;
33 constexpr double c = 299792458.;
34 constexpr double mu0 = 4e-7 * PI;
35 constexpr double epsilon0 = 1./mu0/c/c;
36 constexpr double Z0 = 376.73031346177066;
37 constexpr double h_J = 6.62606957e-34;
38 constexpr double h_eV = 4.135667516e-15;
39 constexpr double hb_J = 0.5*h_J/PI;
40 constexpr double hb_eV = 0.5*h_eV/PI;
41 constexpr double SB = 5.670373e-8;
42 constexpr double kB_J = 1.3806503e-23;
43 constexpr double kB_eV = 8.6173423e-5;
44 constexpr double h_eVc1e9 = 1239.84193009;
45
46}} // namespace plask::phys
47
48#endif // PLASK__PHYS_CONSTANTS_H