38#ifndef MultiComponentPhaseModel_H
39#define MultiComponentPhaseModel_H
41#include "phaseModel.H"
55template<
class BasePhaseModel,
class phaseThermo>
121 virtual const phaseThermo&
thermo()
const;
124 virtual phaseThermo&
thermo();
154# include "MultiComponentPhaseModel.C"
Class which represents a phase with multiple species. Returns the species' mass fractions,...
void calculateMassFractions()
Transfor volume fraction into mass fractions.
virtual void solveYi(PtrList< volScalarField::Internal > &, PtrList< volScalarField::Internal > &)
Solve species fraction equation.
virtual void correct()
Correct phase thermo.
label inertIndex() const
Return inert species index.
autoPtr< phaseThermo > thermoPtr_
Thermophysical model.
PtrList< volScalarField > X_
Ptr list of volumetric fractions for species.
scalar Sct_
Schmidt number.
virtual const phaseThermo & thermo() const
Access to thermo.
void calculateVolumeFractions()
Transfor mass fraction into volume fractions.
label inertIndex_
Inert species index.
virtual ~MultiComponentPhaseModel()=default
Destructor.
bool addDiffusion_
Add diffusion transport on Yi's Eq.
hashedWordList species_
Species table.
const hashedWordList & species() const
Species table.
virtual const PtrList< volScalarField > & Y() const
Constant access the species mass fractions.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A wordList with hashed named lookup, which can be faster in some situations than using the normal lis...
A class for handling words, derived from Foam::string.