Reaktoro A unified framework for modeling chemically reactive systems
FluidMixture Class Reference

Provides a computational representation of a fluid (gaseous or liquid) mixture. More...

#include <FluidMixture.hpp>

Inheritance diagram for FluidMixture:
[legend]
Collaboration diagram for FluidMixture:
[legend]

## Public Member Functions

FluidMixture ()
Construct a default FluidMixture instance.

FluidMixture (const std::vector< FluidSpecies > &species)
Construct a FluidMixture instance with given species. More...

virtual ~FluidMixture ()
Destroy the FluidMixture instance.

auto state (Temperature T, Pressure P, VectorConstRef n) const -> FluidMixtureState
Calculate the state of the fluid (gaseous or liquid) mixture. More...

Public Member Functions inherited from GeneralMixture< FluidSpecies >
GeneralMixture ()
Construct a default GeneralMixture instance.

GeneralMixture (const std::vector< FluidSpecies > &species)
Construct a GeneralMixture instance with given species. More...

virtual ~GeneralMixture ()
Destroy the instance.

auto setName (std::string name) -> void
Set the name of the mixture.

auto numSpecies () const -> unsigned
Return the number of species in the mixture.

auto name () const -> std::string
Return the name of the mixture.

auto species () const -> const std::vector< FluidSpecies > &
Return the species that compose the mixture. More...

auto species (const Index &index) const -> const FluidSpecies &
Return a species in the mixture. More...

auto indexSpecies (const std::string &name) const -> Index
Return the index of a species in the mixture. More...

auto indexSpeciesAny (const std::vector< std::string > &names) const -> Index
Return the index of the first species in the mixture with any of the given names. More...

auto namesSpecies () const -> std::vector< std::string >
Return the names of the species in the mixture.

auto chargesSpecies () const -> Vector
Return the charges of the species in the mixture.

auto moleFractions (VectorConstRef n) const -> ChemicalVector
Calculates the mole fractions of the species and their partial derivatives. More...

auto state (Temperature T, Pressure P, VectorConstRef n) const -> MixtureState
Calculate the state of the mixture. More...

## Detailed Description

Provides a computational representation of a fluid (gaseous or liquid) mixture.

The FluidMixture class is defined as a collection of FluidSpecies objects, representing, therefore, a mixture of fluid (gaseous or liquid) species. Its main purpose is to provide the necessary operations in the calculation of activities of fluid (gaseous or liquid) species.

FluidSpecies

## ◆ FluidMixture()

 FluidMixture ( const std::vector< FluidSpecies > & species )
explicit

Construct a FluidMixture instance with given species.

Parameters
 species The species that compose the fluid (gaseous or liquid) mixture

## ◆ state()

 auto state ( Temperature T, Pressure P, VectorConstRef n ) const -> FluidMixtureState

Calculate the state of the fluid (gaseous or liquid) mixture.

Parameters
 T The temperature (in units of K) P The pressure (in units of Pa) n The molar amounts of the species in the mixture (in units of mol)

The documentation for this class was generated from the following files:
• Reaktoro/Thermodynamics/Mixtures/FluidMixture.hpp
• Reaktoro/Thermodynamics/Mixtures/FluidMixture.cpp