Reaktoro
A unified framework for modeling chemically reactive systems
GlobalOptions.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 // Reaktoro includes
21 #include <Reaktoro/Equilibrium/EquilibriumOptions.hpp>
22 #include <Reaktoro/Equilibrium/EquilibriumPath.hpp>
23 #include <Reaktoro/Kinetics/KineticOptions.hpp>
24 #include <Reaktoro/Kinetics/KineticPath.hpp>
25 
26 namespace Reaktoro {
27 namespace global {
28 
31 {
33  std::string temperature_units = "celsius";
34 
36  std::string pressure_units = "bar";
37 
39  std::vector<double> temperatures;
40 
42  std::vector<double> pressures;
43 };
44 
47 {
52 
57 };
58 
61 {
64 };
65 
68 {
70  struct HKF
71  {
74  double ionic_strength_limit = 6.0;
75  };
76 
78  struct DebyeHuckel
79  {
82  double ionic_strength_limit = 6.0;
83  };
84 
87 
90 };
91 
94 {
97 
100 
103 
106 
109 
112 
115 };
116 
117 extern GlobalOptions options;
118 
119 } // namespace global
120 } // namespace Reaktoro
The options for the equilibrium calculations.
Definition: EquilibriumOptions.hpp:55
bool enforce_temperature_bounds
The boolean flag that indicates if temperature bounds should be enforced.
Definition: GlobalOptions.hpp:51
A type used to describe all options related to interpolation.
Definition: GlobalOptions.hpp:31
A struct to describe the options for a chemical kinetics calculation.
Definition: KineticOptions.hpp:36
double ionic_strength_limit
The limit on the ionic strength of the model.
Definition: GlobalOptions.hpp:82
A type used to describe all options related to aqueous models.
Definition: GlobalOptions.hpp:68
double ionic_strength_limit
The limit on the ionic strength of the model.
Definition: GlobalOptions.hpp:74
A type used to describe all options related to database management.
Definition: GlobalOptions.hpp:61
AqueousOptions aqueous
The options used for aqueous properties calculations.
Definition: GlobalOptions.hpp:114
EquilibriumPathOptions equilibriumpath
The options used for the equilibrium path calculations.
Definition: GlobalOptions.hpp:99
InterpolationOptions interpolation
The options used for the property interpolation.
Definition: GlobalOptions.hpp:105
A type used to describe all options related to chemical calculations.
Definition: GlobalOptions.hpp:94
The namespace containing all components of the Reaktoro library.
Definition: ChemicalScalar.hpp:24
KineticOptions kinetics
The options used for the kinetic calculations.
Definition: GlobalOptions.hpp:102
std::string pressure_units
The units of the pressure values (default: bar).
Definition: GlobalOptions.hpp:36
EquilibriumOptions equilibrium
The options used for the equilibrium calculations.
Definition: GlobalOptions.hpp:96
std::vector< double > pressures
The pressure points used for interpolation.
Definition: GlobalOptions.hpp:42
bool enforce_pressure_bounds
The boolean flag that indicates if pressure bounds should be enforced.
Definition: GlobalOptions.hpp:56
A struct that describes the options from an equilibrium path calculation.
Definition: EquilibriumPath.hpp:41
A type used to describe all options related to Debye-Huckel model.
Definition: GlobalOptions.hpp:79
ExceptionOptions exception
The options used for the exception handling.
Definition: GlobalOptions.hpp:108
A type used to describe all options related to HKF model.
Definition: GlobalOptions.hpp:71
std::vector< double > temperatures
The temperature points used for interpolation.
Definition: GlobalOptions.hpp:39
A type used to describe all options related to exception handling.
Definition: GlobalOptions.hpp:47
HKF hkf
The options for the HKF model.
Definition: GlobalOptions.hpp:86
std::string temperature_units
The units of the temperature values (default: celsius).
Definition: GlobalOptions.hpp:33
bool exclude_species_with_missing_data
When true, causes all species with missing data to be ignored during initialization.
Definition: GlobalOptions.hpp:63
DebyeHuckel debye_huckel
The options for the Debye-Huckel model.
Definition: GlobalOptions.hpp:89
DatabaseOptions database
The options used for managing and inializing databases.
Definition: GlobalOptions.hpp:111