Reaktoro
A unified framework for modeling chemically reactive systems
FluidSpecies.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 <string>
22 
23 // Reaktoro includes
24 #include <Reaktoro/Core/Species.hpp>
25 #include <Reaktoro/Thermodynamics/Species/ThermoData.hpp>
26 
27 namespace Reaktoro {
28 
30 class FluidSpecies : public Species
31 {
32 public:
34  FluidSpecies();
35 
37  FluidSpecies(const Species& species);
38 
40  auto setCriticalTemperature(double val) -> void;
41 
43  auto setCriticalPressure(double val) -> void;
44 
46  auto setAcentricFactor(double val) -> void;
47 
49  auto setThermoData(const FluidSpeciesThermoData& thermo) -> void;
50 
52  auto criticalTemperature() const -> double;
53 
55  auto criticalPressure() const -> double;
56 
58  auto acentricFactor() const -> double;
59 
61  auto thermoData() const -> const FluidSpeciesThermoData&;
62 
63 private:
64  struct Impl;
65 
66  std::shared_ptr<Impl> pimpl;
67 };
68 
69 } // namespace Reaktoro
auto setAcentricFactor(double val) -> void
Set the acentric factor of the fluids (gaseous or liquid) species.
Definition: FluidSpecies.cpp:62
auto acentricFactor() const -> double
Return the acentric factor of the fluids (gaseous or liquid) species.
Definition: FluidSpecies.cpp:82
FluidSpecies()
Construct a default FluidSpecies instance.
Definition: FluidSpecies.cpp:40
auto setCriticalTemperature(double val) -> void
Set the critical temperature of the fluids (gaseous or liquid) species (in units of K)
Definition: FluidSpecies.cpp:48
The namespace containing all components of the Reaktoro library.
Definition: ChemicalScalar.hpp:24
auto setThermoData(const FluidSpeciesThermoData &thermo) -> void
Set the thermodynamic data of the fluids (gaseous or liquid) species.
Definition: FluidSpecies.cpp:67
A type for storing the thermodynamic data of fluid (gaseous or liquid) species.
Definition: ThermoData.hpp:231
auto thermoData() const -> const FluidSpeciesThermoData &
Return the thermodynamic data of the fluids (gaseous or liquid) species.
Definition: FluidSpecies.cpp:87
auto setCriticalPressure(double val) -> void
Set the critical pressure of the fluids (gaseous or liquid) species (in units of Pa)
Definition: FluidSpecies.cpp:55
A type used to describe a species and its attributes.
Definition: Species.hpp:42
A type to describe the attributes of a fluids (gaseous or liquid) species.
Definition: FluidSpecies.hpp:31
auto criticalPressure() const -> double
Return the critical pressure of the fluids (gaseous or liquid) species (in units of Pa)
Definition: FluidSpecies.cpp:77
auto criticalTemperature() const -> double
Return the critical temperature of the fluids (gaseous or liquid) species (in units of K)
Definition: FluidSpecies.cpp:72