AlmaBTE  1.3
A solver of the space- and time-dependent Boltzmann transport equation for phonons
constants.hpp
Go to the documentation of this file.
1 // Copyright 2015-2018 The ALMA Project Developers
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
12 // implied. See the License for the specific language governing
13 // permissions and limitations under the License.
14 
15 #pragma once
16 
22 
23 #include <cmath>
24 #include <complex>
25 
26 namespace alma {
27 namespace constants {
29 constexpr double amu = 1.660538921e-27;
31 constexpr double e = 1.602176565e-19;
33 constexpr double a0 = 0.52917721092e-10;
35 constexpr double NA = 6.02214129e23;
37 constexpr double kB = 1.3806488e-23;
39 constexpr double epsilon0 = 8.854187817e-12;
41 constexpr double me = 9.10938291e-31;
43 constexpr double mu0 = 12.566370614e-7;
45 constexpr double h = 6.62606957e-34;
47 constexpr double hbar = 1.054571726e-34;
49 constexpr double c = 299792458.;
51 constexpr double pi = 3.1415926535897932384626433832795028841953;
53 constexpr char alphabet[] = "abcdefghijklmnopqrstuwxyz";
56 constexpr double nsigma = 2.828427124746190097603377448419396157138;
58 constexpr std::complex<double> imud(0.0, 1.0);
59 } // namespace constants
60 } // namespace alma
Definition: analytic1d.hpp:26
constexpr double e
Atomic unit of charge, C.
Definition: constants.hpp:31
constexpr double mu0
Magnetic constant, Wb.
Definition: constants.hpp:43
constexpr double hbar
Dirac constant, J s.
Definition: constants.hpp:47
constexpr std::complex< double > imud(0.0, 1.0)
Imaginary unit in double precision.
constexpr double nsigma
A Gaussian PDF is considered to be zero at any point beyond nsigma standard deviations from its mean...
Definition: constants.hpp:56
constexpr double me
Electron mass, kg.
Definition: constants.hpp:41
constexpr double epsilon0
Electric constant, F / m.
Definition: constants.hpp:39
constexpr double h
Planck constant, J s.
Definition: constants.hpp:45
constexpr double c
Speed of light in vacuum, m/s.
Definition: constants.hpp:49
constexpr double a0
Bohr radius, m.
Definition: constants.hpp:33
constexpr double amu
Atomic mass unit, kg.
Definition: constants.hpp:29
constexpr double kB
Boltzmann constant, J / K.
Definition: constants.hpp:37
constexpr double pi
Value of pi (to 128 bits)
Definition: constants.hpp:51
constexpr double NA
Avogadro constant, mol^{-1}.
Definition: constants.hpp:35
constexpr char alphabet[]
Lower-case English alphabet.
Definition: constants.hpp:53