Reaktoro  v2.0.0
A unified framework for modeling chemically reactive systems

The class used to define the phases that will constitute the chemical system of interest. More...

#include <Phases.hpp>

Public Member Functions

 Phases (const Database &db)
 Construct a Phases object. More...
 
template<typename... GenericPhases>
 Phases (const Database &db, const GenericPhases &... gphases)
 Construct a Phases object with given database and generic phases. More...
 
auto add (const GenericPhase &phase) -> void
 Add a GenericPhase object into the Phases container.
 
auto add (const GenericPhasesGenerator &generator) -> void
 Add a GenericPhasesGenerator object into the Phases container.
 
auto database () const -> const Database &
 Return the database object used to construct the species and elements in the phases.
 
auto convert () const -> Vec< Phase >
 Convert this Phases object into a vector of Phase objects.
 
 operator Vec< Phase > () const
 Convert this Phases object into a vector of Phase objects.
 

Detailed Description

The class used to define the phases that will constitute the chemical system of interest.

Constructor & Destructor Documentation

◆ Phases() [1/2]

Phases ( const Database db)

Construct a Phases object.

Parameters
dbThe database used to construct the species and elements in the phases.

◆ Phases() [2/2]

Phases ( const Database db,
const GenericPhases &...  gphases 
)
inline

Construct a Phases object with given database and generic phases.

Parameters
dbThe database used to construct the species and elements in the phases.
gphasesThe generic phases that will be converted into Phase objects.

The documentation for this class was generated from the following file: