Reaktoro
A unified framework for modeling chemically reactive systems
GaseousPhase Class Reference
Inheritance diagram for GaseousPhase:
[legend]
Collaboration diagram for GaseousPhase:
[legend]

Public Member Functions

 GaseousPhase ()
 Construct a default GaseousPhase instance.
 
 GaseousPhase (const GaseousMixture &mixture)
 Construct a GaseousPhase instance with given gaseous mixture. More...
 
- Public Member Functions inherited from FluidPhase
 FluidPhase (const std::string &name, PhaseType type)
 Construct an FluidPhase instance with given name and PhaseType.
 
 FluidPhase (const FluidMixture &mixture, const std::string &name, PhaseType type)
 Construct an FluidPhase instance with given fluid (gaseous or liquid) mixture, name and type. More...
 
auto setChemicalModelIdeal () -> FluidPhase &
 Set the chemical model of the phase with the ideal gas equation of state. More...
 
auto setChemicalModelVanDerWaals () -> FluidPhase &
 Set the chemical model of the phase with the van der Waals equation of state. More...
 
auto setChemicalModelRedlichKwong () -> FluidPhase &
 Set the chemical model of the phase with the Redlich-Kwong equation of state. More...
 
auto setChemicalModelSoaveRedlichKwong () -> FluidPhase &
 Set the chemical model of the phase with the Soave-Redlich-Kwong equation of state. More...
 
auto setChemicalModelPengRobinson (CubicEOS::Params params={}) -> FluidPhase &
 Set the chemical model of the phase with the Peng-Robinson equation of state. More...
 
auto setChemicalModelCubicEOS (CubicEOS::Params params={}) -> FluidPhase &
 Set the chemical model of the phase with a Cubic equation of state. More...
 
auto setChemicalModelSpycherPruessEnnis () -> FluidPhase &
 Set the chemical model of the phase with the Spycher et al. More...
 
auto setChemicalModelSpycherReed () -> FluidPhase &
 Set the chemical model of the phase with the Spycher and Reed (1988) equation of state. More...
 
auto mixture () const -> const FluidMixture &
 Return a const reference of the FluidMixture instance.
 
auto mixture () -> FluidMixture &
 Return the FluidMixture instance.
 
- Public Member Functions inherited from Phase
 Phase ()
 Construct a default Phase instance.
 
 Phase (std::string name, PhaseType type)
 Construct a Phase instance with given fluid name and PhaseType.
 
auto setName (std::string name) -> void
 Set the name of the phase.
 
auto setType (PhaseType type) -> void
 Set the type of the phase.
 
auto setSpecies (const std::vector< Species > &species) -> void
 Set the species of the phase.
 
auto setThermoModel (const PhaseThermoModel &model) -> void
 Set the function that calculates the standard thermodynamic properties of the phase.
 
auto setChemicalModel (const PhaseChemicalModel &model) -> void
 Set the function that calculates the chemical properties of the phase.
 
auto numElements () const -> unsigned
 Return the number of elements in the phase.
 
auto numSpecies () const -> unsigned
 Return the number of species in the phase.
 
auto name () const -> std::string
 Return the name of the phase.
 
auto type () const -> PhaseType
 Return the type of the phase.
 
auto elements () const -> const std::vector< Element > &
 Return the elements of the phase.
 
auto elements () -> std::vector< Element > &
 Return the elements of the phase.
 
auto species () const -> const std::vector< Species > &
 Return the species of the phase.
 
auto species () -> std::vector< Species > &
 Return the species of the phase.
 
auto species (Index index) const -> const Species &
 Return the species of the phase with a given index.
 
auto isFluid () const -> bool
 Return true if the state of matter of the phase is fluid, i.e., liquid, gas, or plasma.
 
auto isSolid () const -> bool
 Return true if the phase type is solid.
 
auto thermoModel () const -> const PhaseThermoModel &
 Return the thermodynamic model function of the phase. More...
 
auto chemicalModel () const -> const PhaseChemicalModel &
 Return the chemical model function of the phase. More...
 
auto indexSpecies (std::string name) const -> Index
 Return the index of a species in the phase. More...
 
auto indexSpeciesWithError (std::string name) const -> Index
 Return the index of a species in the system. More...
 
auto indexSpeciesAny (const std::vector< std::string > &names) const -> Index
 Return the index of the first species in the phase with any of the given names. More...
 
auto indexSpeciesAnyWithError (const std::vector< std::string > &names) const -> Index
 Return the index of the first species in the phase with any of the given names. More...
 
auto properties (PhaseThermoModelResult &res, double T, double P) const -> void
 Calculate the standard thermodynamic properties of the species in the phase. More...
 
auto properties (PhaseChemicalModelResult &res, double T, double P, VectorConstRef n) const -> void
 Calculate the thermodynamic and chemical properties of the chemical system. More...
 

Constructor & Destructor Documentation

◆ GaseousPhase()

GaseousPhase ( const GaseousMixture mixture)
inlineexplicit

Construct a GaseousPhase instance with given gaseous mixture.

The Peng-Robinson equation of state is chosen by default to calculate the thermodynamic and chemical properties of this GaseousPhase object.


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