Reaktoro  v2.11.0
A unified framework for modeling chemically reactive systems
Constants.hpp
1 // Reaktoro is a unified framework for modeling chemically reactive systems.
2 //
3 // Copyright © 2014-2024 Allan Leal
4 //
5 // This library is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU Lesser General Public
7 // License as published by the Free Software Foundation; either
8 // version 2.1 of the License, or (at your option) any later version.
9 //
10 // This library is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 // Lesser General Public License for more details.
14 //
15 // You should have received a copy of the GNU Lesser General Public License
16 // along with this library. If not, see <http://www.gnu.org/licenses/>.
17 
18 #pragma once
19 
20 // C++ includes
21 #include <limits>
22 
23 namespace Reaktoro {
24 
26 constexpr auto universalGasConstant = 8.3144621;
27 
29 constexpr auto faradayConstant = 96485.3329;
30 
32 constexpr auto avogadroNumber = 6.02214076e+23;
33 
35 constexpr auto vacuumPermittivity = 8.8541878128e-12;
36 
38 constexpr auto molarMassElectron = 5.4857990888e-07;
39 
41 constexpr auto jouleToCalorie = 0.239005736;
42 
44 constexpr auto calorieToJoule = 4.184;
45 
47 constexpr auto barToPascal = 1.0e+05;
48 
50 constexpr auto atmToPascal = 101325;
51 
53 constexpr auto cubicCentimeterToCubicMeter = 1.0e-06;
54 
56 constexpr auto cubicMeterToCubicCentimeter = 1.0e+06;
57 
59 constexpr auto ln10 = 2.30258509299404590109361379290930926799774169921875;
60 
62 constexpr auto inf = std::numeric_limits<double>::infinity();
63 
65 constexpr auto NaN = std::numeric_limits<double>::quiet_NaN();
66 
68 constexpr auto epsilon = std::numeric_limits<double>::epsilon();
69 
70 } // namespace Reaktoro
The namespace containing all components of the Reaktoro library.
Definition: Algorithms.hpp:29
constexpr auto avogadroNumber
The Avogadro's number (in 1/mol)
Definition: Constants.hpp:32
constexpr auto vacuumPermittivity
The vacuum permittivity (in C²/(J*m))
Definition: Constants.hpp:35
constexpr auto NaN
The value of NaN.
Definition: Constants.hpp:65
constexpr auto universalGasConstant
The universal gas constant (in J/(mol*K))
Definition: Constants.hpp:26
constexpr auto ln10
The value of ln(10)
Definition: Constants.hpp:59
constexpr auto barToPascal
The conversion factor from bar to pascal.
Definition: Constants.hpp:47
constexpr auto cubicCentimeterToCubicMeter
The conversion factor from cubic centimeters to cubic meters.
Definition: Constants.hpp:53
constexpr auto calorieToJoule
The constant factor that converts calorie to joule.
Definition: Constants.hpp:44
constexpr auto atmToPascal
The conversion factor from atm to pascal.
Definition: Constants.hpp:50
constexpr auto epsilon
The value of machine precision epsilon.
Definition: Constants.hpp:68
constexpr auto inf
The value of infinity.
Definition: Constants.hpp:62
constexpr auto cubicMeterToCubicCentimeter
The conversion factor from cubic meters to cubic centimeters.
Definition: Constants.hpp:56
constexpr auto molarMassElectron
The molar mass of an electron (in kg/mol)
Definition: Constants.hpp:38
constexpr auto jouleToCalorie
The constant factor that converts joule to calorie.
Definition: Constants.hpp:41
constexpr auto faradayConstant
The Faraday constant (in C/mol)
Definition: Constants.hpp:29