Reaktoro  v2.11.0
A unified framework for modeling chemically reactive systems
StateOfMatter.hpp
1 // Reaktoro is a unified framework for modeling chemically reactive systems.
2 //
3 // Copyright © 2014-2024 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 <iostream>
22 
23 namespace Reaktoro {
24 
26 enum class StateOfMatter
27 {
28  Unspecified,
29  Solid,
30  Liquid,
31  Gas,
33  Plasma,
34  Fluid,
35  Condensed,
36 };
37 
39 inline auto operator<<(std::ostream& out, StateOfMatter option) -> std::ostream&
40 {
41  switch(option)
42  {
43  case StateOfMatter::Solid: out << "Solid"; return out;
44  case StateOfMatter::Liquid: out << "Liquid"; return out;
45  case StateOfMatter::Gas: out << "Gas"; return out;
46  case StateOfMatter::Supercritical: out << "Supercritical"; return out;
47  case StateOfMatter::Plasma: out << "Plasma"; return out;
48  case StateOfMatter::Fluid: out << "Fluid"; return out;
49  case StateOfMatter::Condensed: out << "Condensed"; return out;
50  default: out << "Unspecified"; return out;
51  }
52 }
53 
54 } // namespace Reaktoro
The namespace containing all components of the Reaktoro library.
Definition: Algorithms.hpp:29
StateOfMatter
The list of states of matter for phases.
Definition: StateOfMatter.hpp:27
@ Supercritical
when the state of matter of a phase is supercritical
@ Liquid
when the state of matter of a phase is liquid
@ Gas
when the state of matter of a phase is gas
@ Unspecified
when the state of matter of a phase is unspecified
@ Plasma
when the state of matter of a phase is plama
@ Fluid
when the state of matter of a phase can be either liquid, gas, or plasma // TODO: StateOfMatter::Flui...
@ Condensed
when the state of matter of a phase can be either liquid or solid // TODO: StateOfMatter::Condensed n...
@ Solid
when the state of matter of a phase is solid
auto operator<<(std::ostream &out, AggregateState option) -> std::ostream &
Output an AggregateState value.