Reaktoro
A unified framework for modeling chemically reactive systems
Constants.hpp
1 // Reaktoro is a unified framework for modeling chemically reactive systems.
2 //
3 // Copyright (C) 2014-2018 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 namespace Reaktoro {
21 
23 constexpr auto universalGasConstant = 8.3144621;
24 
26 constexpr auto faradayConstant = 96485.3329;
27 
29 constexpr auto jouleToCalorie = 0.239005736;
30 
32 constexpr auto calorieToJoule = 4.184;
33 
35 constexpr auto barToPascal = 1.0e+05;
36 
38 constexpr auto cubicCentimeterToCubicMeter = 1.0e-06;
39 
41 constexpr auto cubicMeterToCubicCentimeter = 1.0e+06;
42 
43 } // namespace Reaktoro
constexpr auto cubicCentimeterToCubicMeter
The conversion factor from cubic centimeters to cubic meters.
Definition: Constants.hpp:38
constexpr auto calorieToJoule
The constant factor that converts calorie to joule.
Definition: Constants.hpp:32
constexpr auto faradayConstant
The Faraday constant (in units of C/mol)
Definition: Constants.hpp:26
constexpr auto universalGasConstant
The universal gas constant (in units of J/(mol*K))
Definition: Constants.hpp:23
The namespace containing all components of the Reaktoro library.
Definition: ChemicalScalar.hpp:24
constexpr auto barToPascal
The conversion factor from bar to pascal.
Definition: Constants.hpp:35
constexpr auto cubicMeterToCubicCentimeter
The conversion factor from cubic meters to cubic centimeters.
Definition: Constants.hpp:41
constexpr auto jouleToCalorie
The constant factor that converts joule to calorie.
Definition: Constants.hpp:29