Reaktoro
A unified framework for modeling chemically reactive systems
WaterUtils.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/ScalarTypes.hpp>
22 #include <Reaktoro/Thermodynamics/Common/StateOfMatter.hpp>
23 
24 namespace Reaktoro {
25 
30 auto waterDensityHGK(Temperature T, Pressure P, StateOfMatter stateofmatter) -> ThermoScalar;
31 
36 auto waterDensityWagnerPruss(Temperature T, Pressure P, StateOfMatter stateofmatter) -> ThermoScalar;
37 
42 auto waterLiquidDensityHGK(Temperature T, Pressure P) -> ThermoScalar;
43 
48 auto waterLiquidDensityWagnerPruss(Temperature T, Pressure P) -> ThermoScalar;
49 
54 auto waterVaporDensityHGK(Temperature T, Pressure P) -> ThermoScalar;
55 
60 auto waterVaporDensityWagnerPruss(Temperature T, Pressure P) -> ThermoScalar;
61 
66 auto waterPressureHGK(Temperature T, ThermoScalar D) -> ThermoScalar;
67 
72 auto waterPressureWagnerPruss(Temperature T, ThermoScalar D) -> ThermoScalar;
73 
77 auto waterSaturatedPressureWagnerPruss(Temperature T) -> ThermoScalar;
78 
83 
88 
89 } // namespace Reaktoro
auto waterLiquidDensityWagnerPruss(Temperature T, Pressure P) -> ThermoScalar
Calculate the density of liquid water using the Wagner and Pruss (1995) equation of state.
Definition: WaterUtils.cpp:107
auto waterDensityHGK(Temperature T, Pressure P, StateOfMatter stateofmatter) -> ThermoScalar
Calculate the density of water using the Haar–Gallagher–Kell (1984) equation of state.
Definition: WaterUtils.cpp:87
StateOfMatter
A type to define the possible states of matter of a phase or substance.
Definition: StateOfMatter.hpp:24
auto waterVaporDensityWagnerPruss(Temperature T, Pressure P) -> ThermoScalar
Calculate the density of vapor water using the Wagner and Pruss (1995) equation of state.
Definition: WaterUtils.cpp:112
The namespace containing all components of the Reaktoro library.
Definition: ChemicalScalar.hpp:24
auto waterVaporDensityHGK(Temperature T, Pressure P) -> ThermoScalar
Calculate the density of vapor water using the Haar–Gallagher–Kell (1984) equation of state.
Definition: WaterUtils.cpp:97
auto waterLiquidDensityHGK(Temperature T, Pressure P) -> ThermoScalar
Calculate the density of liquid water using the Haar–Gallagher–Kell (1984) equation of state.
Definition: WaterUtils.cpp:92
auto waterDensityWagnerPruss(Temperature T, Pressure P, StateOfMatter stateofmatter) -> ThermoScalar
Calculate the density of water using the Wagner and Pruss (1995) equation of state.
Definition: WaterUtils.cpp:102
auto waterPressureHGK(Temperature T, ThermoScalar D) -> ThermoScalar
Calculate the pressure of water using the Haar–Gallagher–Kell (1984) equation of state.
Definition: WaterUtils.cpp:124
auto waterSaturatedPressureWagnerPruss(Temperature T) -> ThermoScalar
Calculate the saturated pressure of water using the Wagner and Pruss (1995) equation of state.
Definition: WaterUtils.cpp:134
auto waterSaturatedVapourDensityWagnerPruss(Temperature T) -> ThermoScalar
Calculate the saturated vapour-density of water using the Wagner and Pruss (1995) equation of state.
Definition: WaterUtils.cpp:179
auto waterSaturatedLiquidDensityWagnerPruss(Temperature T) -> ThermoScalar
Calculate the saturated liquid-density of water using the Wagner and Pruss (1995) equation of state.
Definition: WaterUtils.cpp:156
auto waterPressureWagnerPruss(Temperature T, ThermoScalar D) -> ThermoScalar
Calculate the pressure of water using the Wagner and Pruss (1995) equation of state.
Definition: WaterUtils.cpp:129
ThermoScalarBase< double > ThermoScalar
A type that defines a scalar thermo property.
Definition: ScalarTypes.hpp:40