Reaktoro
A unified framework for modeling chemically reactive systems
PhaseChemicalModel.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 // C++ includes
21 #include <functional>
22 
23 // Reaktoro includes
24 #include <Reaktoro/Common/ThermoScalar.hpp>
25 #include <Reaktoro/Common/ChemicalScalar.hpp>
26 #include <Reaktoro/Common/ChemicalVector.hpp>
27 
28 namespace Reaktoro {
29 
31 template<typename ScalarType, typename VectorType>
33 {
36 
38  VectorType ln_activities;
39 
42 
44  ScalarType molar_volume;
45 
48 
51 
54 
57 };
58 
61 
64 
67 
68 } // namespace Reaktoro
VectorType ln_activity_coefficients
The natural log of the activity coefficients of the species in the phase.
Definition: PhaseChemicalModel.hpp:35
The result of a chemical model function that calculates the chemical properties of species.
Definition: PhaseChemicalModel.hpp:33
A type that describes pressure in units of Pa.
Definition: ThermoScalar.hpp:194
ScalarType residual_molar_heat_capacity_cv
The residual molar isochoric heat capacity of the phase w.r.t. to its ideal state (in units of J/(mol...
Definition: PhaseChemicalModel.hpp:56
The namespace containing all components of the Reaktoro library.
Definition: ChemicalScalar.hpp:24
A type that describes temperature in units of K.
Definition: ThermoScalar.hpp:177
VectorType ln_activities
The natural log of the activities of the species in the phase.
Definition: PhaseChemicalModel.hpp:38
ScalarType molar_volume
The molar volume of the phase (in units of m3/mol).
Definition: PhaseChemicalModel.hpp:44
ScalarType residual_molar_gibbs_energy
The residual molar Gibbs energy of the phase w.r.t. to its ideal state (in units of J/mol).
Definition: PhaseChemicalModel.hpp:47
ScalarType residual_molar_heat_capacity_cp
The residual molar isobaric heat capacity of the phase w.r.t. to its ideal state (in units of J/(mol*...
Definition: PhaseChemicalModel.hpp:53
ScalarType residual_molar_enthalpy
The residual molar enthalpy of the phase w.r.t. to its ideal state (in units of J/mol).
Definition: PhaseChemicalModel.hpp:50
std::function< void(PhaseChemicalModelResult &, Temperature, Pressure, VectorConstRef)> PhaseChemicalModel
The signature of the chemical model function that calculates the chemical properties of the species i...
Definition: PhaseChemicalModel.hpp:66
Eigen::Ref< const Eigen::VectorXd > VectorConstRef
< Alias to Eigen type Ref<VectorXd>.
Definition: Matrix.hpp:31
VectorType partial_molar_volumes
The partial molar volumes of the species in the phase (in units of m3/mol).
Definition: PhaseChemicalModel.hpp:41