Reaktoro
A unified framework for modeling chemically reactive systems
FluidMixture.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/Thermodynamics/Species/FluidSpecies.hpp>
22 #include <Reaktoro/Thermodynamics/Mixtures/GeneralMixture.hpp>
23 
24 namespace Reaktoro {
25 
28 {};
29 
37 class FluidMixture : public GeneralMixture<FluidSpecies>
38 {
39 public:
41  FluidMixture();
42 
45  explicit FluidMixture(const std::vector<FluidSpecies>& species);
46 
48  virtual ~FluidMixture();
49 
54  auto state(Temperature T, Pressure P, VectorConstRef n) const->FluidMixtureState;
55 };
56 
57 } // namespace Reaktoro
Provide a base of implementation for the mixture classes.
Definition: GeneralMixture.hpp:58
auto state(Temperature T, Pressure P, VectorConstRef n) const -> FluidMixtureState
Calculate the state of the fluid (gaseous or liquid) mixture.
Definition: FluidMixture.cpp:33
A type that describes pressure in units of Pa.
Definition: ThermoScalar.hpp:194
auto species() const -> const std::vector< FluidSpecies > &
Return the species that compose the mixture.
Definition: GeneralMixture.hpp:155
Provides a computational representation of a fluid (gaseous or liquid) mixture.
Definition: FluidMixture.hpp:38
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
A type used to describe the state of a mixture.
Definition: GeneralMixture.hpp:37
virtual ~FluidMixture()
Destroy the FluidMixture instance.
Definition: FluidMixture.cpp:30
FluidMixture()
Construct a default FluidMixture instance.
Definition: FluidMixture.cpp:22
A type used to describe the state of a fluid (gaseous or liquid) mixture.
Definition: FluidMixture.hpp:28
Eigen::Ref< const Eigen::VectorXd > VectorConstRef
< Alias to Eigen type Ref<VectorXd>.
Definition: Matrix.hpp:31