Reaktoro
A unified framework for modeling chemically reactive systems
SpeciesElectroStateHKF.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/Common/ThermoScalar.hpp>
22 
23 namespace Reaktoro {
24 
25 // Forward declarations
26 class AqueousSpecies;
27 struct SpeciesElectroState;
28 struct WaterThermoState;
29 
31 struct FunctionG
32 {
35 
38 
41 
44 
47 
50 };
51 
53 auto functionG(Temperature T, Pressure P, const WaterThermoState& wts) -> FunctionG;
54 
56 auto speciesElectroStateHKF(const FunctionG& g, const AqueousSpecies& species) -> SpeciesElectroState;
57 
60 
61 } // namespace Reaktoro
ThermoScalar gPP
The second-order partial derivative of function g with respect to pressure.
Definition: SpeciesElectroStateHKF.hpp:49
A type that describes pressure in units of Pa.
Definition: ThermoScalar.hpp:194
auto functionG(Temperature T, Pressure P, const WaterThermoState &wts) -> FunctionG
Calculate the function g of the HKF model.
Definition: SpeciesElectroStateHKF.cpp:36
A type to represent an aqueous species.
Definition: AqueousSpecies.hpp:32
The namespace containing all components of the Reaktoro library.
Definition: ChemicalScalar.hpp:24
Definition: WaterThermoState.hpp:26
A type that describes temperature in units of K.
Definition: ThermoScalar.hpp:177
Definition: SpeciesElectroState.hpp:26
ThermoScalar gP
The first-order partial derivative of function g with respect to pressure.
Definition: SpeciesElectroStateHKF.hpp:40
auto speciesElectroStateHKF(const FunctionG &g, const AqueousSpecies &species) -> SpeciesElectroState
Calculate the electrostatic state of the aqueous species using the g-function state.
Definition: SpeciesElectroStateHKF.cpp:126
ThermoScalar gT
The first-order partial derivative of function g with respect to temperature.
Definition: SpeciesElectroStateHKF.hpp:37
ThermoScalar gTT
The second-order partial derivative of function g with respect to temperature.
Definition: SpeciesElectroStateHKF.hpp:43
ThermoScalar g
The function g at temperature T and pressure P.
Definition: SpeciesElectroStateHKF.hpp:34
ThermoScalar gTP
The second-order partial derivative of function g with respect to temperature and pressure.
Definition: SpeciesElectroStateHKF.hpp:46
A type used to describe the function g of the HKF model and its partial temperature and pressure deri...
Definition: SpeciesElectroStateHKF.hpp:32