Reaktoro 
A unified framework for modeling chemically reactive systems
GaseousSpecies.hpp
1 // Reaktoro is a unified framework for modeling chemically reactive systems.
2 //
3 // Copyright (C) 2014-2015 Allan Leal
4 //
5 // This program is free software: you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation, either version 3 of the License, or
8 // (at your option) any later version.
9 //
10 // This program 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
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program. 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 GaseousSpecies : public Species
31 {
32 public:
35 
37  GaseousSpecies(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 GaseousSpeciesThermoData& 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 GaseousSpeciesThermoData&;
62 
63 private:
64  struct Impl;
65 
66  std::shared_ptr<Impl> pimpl;
67 };
68 
69 } // namespace Reaktoro
A type used to describe a species and its attributes.
Definition: Species.hpp:41
auto setCriticalTemperature(double val) -> void
Set the critical temperature of the gaseous species (in units of K)
Definition: GaseousSpecies.cpp:48
auto acentricFactor() const -> double
Return the acentric factor of the gaseous species.
Definition: GaseousSpecies.cpp:82
auto setAcentricFactor(double val) -> void
Set the acentric factor of the gaseous species.
Definition: GaseousSpecies.cpp:62
A type for storing the thermodynamic data of a gaseous species.
Definition: ThermoData.hpp:246
auto setThermoData(const GaseousSpeciesThermoData &thermo) -> void
Set the thermodynamic data of the gaseous species.
Definition: GaseousSpecies.cpp:67
auto criticalPressure() const -> double
Return the critical pressure of the gaseous species (in units of Pa)
Definition: GaseousSpecies.cpp:77
GaseousSpecies()
Construct a default GaseousSpecies instance.
Definition: GaseousSpecies.cpp:40
auto criticalTemperature() const -> double
Return the critical temperature of the gaseous species (in units of K)
Definition: GaseousSpecies.cpp:72
auto thermoData() const -> const GaseousSpeciesThermoData &
Return the thermodynamic data of the gaseous species.
Definition: GaseousSpecies.cpp:87
The namespace containing all components of the Reaktoro library.
Definition: ChemicalScalar.hpp:24
auto setCriticalPressure(double val) -> void
Set the critical pressure of the gaseous species (in units of Pa)
Definition: GaseousSpecies.cpp:55
A type to describe the attributes of a gaseous species.
Definition: GaseousSpecies.hpp:30