ABLATE Source Documentation  0.12.34
constants.hpp
1 #ifndef ABLATE_LIBRARY_CONSTANTS_HPP
2 #define ABLATE_LIBRARY_CONSTANTS_HPP
3 
4 #include <petscsystypes.h>
5 
6 namespace ablate::utilities {
7 class Constants {
8  public:
10  constexpr inline static PetscReal sbc = 5.6696e-8;
11 
13  constexpr inline static PetscReal h = 6.62607004e-34;
14 
16  constexpr inline static PetscReal c = 299792458;
17 
19  constexpr inline static PetscReal k = 1.380622e-23;
20 
22  constexpr inline static PetscReal pi = 3.1415926535897932384626433832795028841971693993;
23 
25  constexpr inline static PetscReal tiny = 1e-30;
26 
28  constexpr inline static PetscReal small = 1e-10;
29 
31  constexpr inline static PetscReal large = 1E10;
32 };
33 } // namespace ablate::utilities
34 
35 #endif // ABLATELIBRARY_CONSTANTS_HPP
Definition: constants.hpp:7
constexpr static PetscReal pi
Pi.
Definition: constants.hpp:22
constexpr static PetscReal sbc
Stefan-Boltzman Constant (J/K)
Definition: constants.hpp:10
constexpr static PetscReal k
Boltzmann Constant.
Definition: constants.hpp:19
constexpr static PetscReal c
Speed of light.
Definition: constants.hpp:16
constexpr static PetscReal large
A somewhat large number.
Definition: constants.hpp:31
constexpr static PetscReal h
Planck Constant.
Definition: constants.hpp:13
constexpr static PetscReal small
A somewhat small number.
Definition: constants.hpp:28
constexpr static PetscReal tiny
A very tiny number.
Definition: constants.hpp:25