Go to the documentation of this file.
38 #ifndef MultiComponentPhaseModel_H
39 #define MultiComponentPhaseModel_H
41 #include "phaseModel.H"
55 template<
class BasePhaseModel,
class phaseThermo>
115 virtual const phaseThermo&
thermo()
const;
118 virtual phaseThermo&
thermo();
148 # include "MultiComponentPhaseModel.C"
autoPtr< phaseThermo > thermoPtr_
Thermophysical model.
A class for handling words, derived from Foam::string.
virtual void solveYi(PtrList< volScalarField::Internal > &, PtrList< volScalarField::Internal > &)
Solve species fraction equation.
virtual ~MultiComponentPhaseModel()=default
Destructor.
label inertIndex_
Inert species index.
virtual const PtrList< volScalarField > & Y() const
Constant access the species mass fractions.
Class which represents a phase with multiple species. Returns the species' mass fractions,...
void calculateMassFractions()
Transfor volume fraction into mass fractions.
MultiComponentPhaseModel(const phaseSystem &fluid, const word &phaseName)
label inertIndex() const
Return inert species index.
A wordList with hashed named lookup, which can be faster in some situations than using the normal lis...
virtual void correct()
Correct phase thermo.
PtrList< volScalarField > X_
Ptr list of volumetric fractions for species.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
hashedWordList species_
Species table.
Class to represent a system of phases and model interfacial transfers between them.
void calculateVolumeFractions()
Transfor mass fraction into volume fractions.
const hashedWordList & species() const
Species table.
virtual const phaseThermo & thermo() const
Access to thermo.