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

A type used to define a phase and its attributes. More...

#include <Phase.hpp>

## Public Member Functions

Phase ()
Construct a default Phase object.

auto clone () const -> Phase
Return a deep copy of this Phase object.

auto withName (String name) -> Phase
Return a copy of this Phase object with a new name.

auto withSpecies (SpeciesList species) -> Phase
Return a copy of this Phase object with new list of species.

auto withStateOfMatter (StateOfMatter state) -> Phase
Return a copy of this Phase object with a new state of matter.

auto withActivityModel (const ActivityModel &model) -> Phase
Return a copy of this Phase object with a new activity model function.

auto withIdealActivityModel (const ActivityModel &model) -> Phase
Return a copy of this Phase object with a new ideal activity model function.

auto name () const -> String
Return the name of the phase.

auto stateOfMatter () const -> StateOfMatter
Return the state of matter of the phase.

auto aggregateState () const -> AggregateState
Return the common aggregate state of the species in the phase.

auto elements () const -> const ElementList &
Return the elements of the phase.

auto element (Index idx) const -> const Element &
Return the element in the phase with given index.

auto species () const -> const SpeciesList &
Return the species of the phase.

auto species (Index idx) const -> const Species &
Return the species in the phase with given index.

auto speciesMolarMasses () const -> ArrayXdConstRef
Return the molar masses of the species in the phase (in kg/mol).

auto activityModel () const -> const ActivityModel &
Return the function that computes activity properties of the phase.

auto idealActivityModel () const -> const ActivityModel &
Return the function that computes ideal activity properties of the phase.

## Detailed Description

A type used to define a phase and its attributes.