Reaktoro  v2.11.0
A unified framework for modeling chemically reactive systems
ActivityModelDebyeHuckel.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 // Reaktoro includes
21 #include <Reaktoro/Core/ActivityModel.hpp>
22 
23 namespace Reaktoro {
24 
29 {
32 
35 
38 
41 
44 
47 
49  auto aion(const ChemicalFormula& ion) const -> real;
50 
52  auto bion(const ChemicalFormula& ion) const -> real;
53 
55  auto bneutral(const ChemicalFormula& neutral) const -> real;
56 
58  auto setLimitingLaw() -> void;
59 
61  auto setKielland() -> void;
62 
64  auto setWATEQ4F() -> void;
65 
67  auto setPHREEQC() -> void;
68 };
69 
74 
79 
84 
89 
94 
99 
100 //=====================================================================================================================
171 //=====================================================================================================================
172 
173 
174 //=====================================================================================================================
178 //=====================================================================================================================
179 
180 
181 //=====================================================================================================================
184 //=====================================================================================================================
185 
186 
187 //=====================================================================================================================
194 //=====================================================================================================================
195 
196 
197 //=====================================================================================================================
222 //=====================================================================================================================
223 
224 
225 //=====================================================================================================================
287 //=====================================================================================================================
288 
289 
290 //=====================================================================================================================
336 //=====================================================================================================================
337 
338 } // namespace Reaktoro
A type used to represent the chemical formula of a chemical species.
Definition: ChemicalFormula.hpp:27
The namespace containing all components of the Reaktoro library.
Definition: Algorithms.hpp:29
Fn< ActivityModel(SpeciesList const &species)> ActivityModelGenerator
The type for functions that construct an ActivityModel for a phase.
Definition: ActivityModel.hpp:53
autodiff::real real
The number type used throughout the library.
Definition: Real.hpp:26
auto ActivityModelDebyeHuckelLimitingLaw() -> ActivityModelGenerator
Return the activity model for aqueous electrolyte phases based on the Debye–Hückel limiting law model...
auto ActivityModelDebyeHuckelKielland() -> ActivityModelGenerator
Return the activity model for aqueous electrolyte phases based on the Debye–Hückel model with Kiellan...
auto ActivityModelDebyeHuckelWATEQ4F() -> ActivityModelGenerator
Return the activity model for aqueous electrolyte phases based on the Debye–Hückel model using WATEQ4...
auto ActivityModelDebyeHuckel() -> ActivityModelGenerator
Return the activity model for aqueous electrolyte phases based on the Debye–Hückel model.
auto ActivityModelDebyeHuckelPHREEQC() -> ActivityModelGenerator
Return the activity model for aqueous electrolyte phases based on the Debye–Hückel model using PHREEQ...
std::unordered_map< Key, T > Map
Convenient alias for std::unordered_map<Key, T>.
Definition: Types.hpp:74
The parameters in the Debye–Hückel activity model for aqueous electrolyte solutions.
Definition: ActivityModelDebyeHuckel.hpp:29
auto setWATEQ4F() -> void
Set the parameters å and b of the ionic species according to WATEQ4F.
auto setLimitingLaw() -> void
Set the parameters å and b of the ionic species to zero.
auto bion(const ChemicalFormula &ion) const -> real
Return the b parameter of the ionic species with given formula.
auto bneutral(const ChemicalFormula &neutral) const -> real
Return the b parameter of the neutral species with given formula.
Map< String, real > bneutrals
The parameters b of specific neutral species.
Definition: ActivityModelDebyeHuckel.hpp:46
real aiondefault
The default value of the å parameter for ionic species.
Definition: ActivityModelDebyeHuckel.hpp:31
auto aion(const ChemicalFormula &ion) const -> real
Return the å parameter of the ionic species with given formula.
Map< String, real > aions
The parameters å of specific ionic species.
Definition: ActivityModelDebyeHuckel.hpp:40
Map< String, real > bions
The parameters b of specific ionic species.
Definition: ActivityModelDebyeHuckel.hpp:43
auto setKielland() -> void
Set the parameters å of the ionic species according to Kielland (1937).
auto setPHREEQC() -> void
Set the parameters å and b of the ionic species according to PHREEQC.
real biondefault
The default value of the b parameter for ionic species.
Definition: ActivityModelDebyeHuckel.hpp:34
real bneutraldefault
The default value of the b parameter for neutral species.
Definition: ActivityModelDebyeHuckel.hpp:37