Class which represents a phase with multiple species. Returns the species' mass fractions, and their governing equations. More...
Public Member Functions | |
| MultiComponentPhaseModel (const phaseSystem &fluid, const word &phaseName, const label index) | |
| virtual | ~MultiComponentPhaseModel () |
| Destructor. More... | |
| virtual void | correctThermo () |
| Correct the thermodynamics. More... | |
| virtual bool | pure () const |
| Return whether the phase is pure (i.e., not multi-component) More... | |
| virtual tmp< fvScalarMatrix > | YiEqn (volScalarField &Yi) |
| Return the species fraction equation. More... | |
| virtual const PtrList< volScalarField > & | Y () const |
| Return the species mass fractions. More... | |
| virtual const volScalarField & | Y (const word &name) const |
| Return a species mass fraction by name. More... | |
| virtual PtrList< volScalarField > & | YRef () |
| Access the species mass fractions. More... | |
| virtual const UPtrList< volScalarField > & | YActive () const |
| Return the active species mass fractions. More... | |
| virtual UPtrList< volScalarField > & | YActiveRef () |
| Access the active species mass fractions. More... | |
| MultiComponentPhaseModel (const phaseSystem &fluid, const word &phaseName) | |
| virtual | ~MultiComponentPhaseModel ()=default |
| Destructor. More... | |
| const hashedWordList & | species () const |
| Species table. More... | |
| virtual const phaseThermo & | thermo () const |
| Access to thermo. More... | |
| virtual phaseThermo & | thermo () |
| Access non-const thermo. More... | |
| virtual void | correct () |
| Correct phase thermo. More... | |
| virtual void | solveYi (PtrList< volScalarField::Internal > &, PtrList< volScalarField::Internal > &) |
| Solve species fraction equation. More... | |
| virtual const PtrList< volScalarField > & | Y () const |
| Constant access the species mass fractions. More... | |
| virtual PtrList< volScalarField > & | Y () |
| Access the species mass fractions. More... | |
| label | inertIndex () const |
| Return inert species index. More... | |
Protected Member Functions | |
| void | calculateMassFractions () |
| Transfor volume fraction into mass fractions. More... | |
| void | calculateVolumeFractions () |
| Transfor mass fraction into volume fractions. More... | |
Protected Attributes | |
| dimensionedScalar | Sct_ |
| Turbulent Schmidt number. More... | |
| dimensionedScalar | residualAlpha_ |
| Residual phase fraction. More... | |
| label | inertIndex_ |
| Inert species index. More... | |
| UPtrList< volScalarField > | YActive_ |
| Pointer list to active species. More... | |
| hashedWordList | species_ |
| Species table. More... | |
| autoPtr< phaseThermo > | thermoPtr_ |
| Thermophysical model. More... | |
| PtrList< volScalarField > | X_ |
| Ptr list of volumetric fractions for species. More... | |
Class which represents a phase with multiple species. Returns the species' mass fractions, and their governing equations.
Definition at line 52 of file MultiComponentPhaseModel.H.
| MultiComponentPhaseModel | ( | const phaseSystem & | fluid, |
| const word & | phaseName, | ||
| const label | index | ||
| ) |
Definition at line 45 of file MultiComponentPhaseModel.C.
References forAll, inertSpecie(), and Y.
|
virtual |
Destructor.
Definition at line 93 of file MultiComponentPhaseModel.C.
| MultiComponentPhaseModel | ( | const phaseSystem & | fluid, |
| const word & | phaseName | ||
| ) |
|
virtualdefault |
Destructor.
|
virtual |
Correct the thermodynamics.
Definition at line 100 of file MultiComponentPhaseModel.C.
References correctThermo(), Foam::dimless, fluid, forAll, mesh, Foam::name(), timeName, and Yt().
|
virtual |
Return whether the phase is pure (i.e., not multi-component)
Definition at line 143 of file MultiComponentPhaseModel.C.
|
virtual |
Return the species fraction equation.
Definition at line 151 of file MultiComponentPhaseModel.C.
References Foam::constant::atomic::alpha, Foam::fac::ddt(), Foam::fac::div(), Foam::fac::interpolate(), Foam::fac::laplacian(), R, rho, and thermo.
|
virtual |
Return the species mass fractions.
Definition at line 179 of file MultiComponentPhaseModel.C.
|
virtual |
Return a species mass fraction by name.
Definition at line 187 of file MultiComponentPhaseModel.C.
References Foam::name().
|
virtual |
Access the species mass fractions.
Definition at line 195 of file MultiComponentPhaseModel.C.
|
virtual |
Return the active species mass fractions.
Definition at line 203 of file MultiComponentPhaseModel.C.
|
virtual |
Access the active species mass fractions.
Definition at line 211 of file MultiComponentPhaseModel.C.
|
protected |
Transfor volume fraction into mass fractions.
|
protected |
Transfor mass fraction into volume fractions.
|
inline |
Species table.
Definition at line 105 of file MultiComponentPhaseModel.H.
References MultiComponentPhaseModel< BasePhaseModel >::species_.
|
virtual |
Access to thermo.
|
virtual |
Access non-const thermo.
|
virtual |
Correct phase thermo.
|
virtual |
Solve species fraction equation.
|
virtual |
Constant access the species mass fractions.
|
virtual |
Access the species mass fractions.
| label inertIndex | ( | ) | const |
Return inert species index.
|
protected |
Turbulent Schmidt number.
Definition at line 61 of file MultiComponentPhaseModel.H.
|
protected |
Residual phase fraction.
Definition at line 64 of file MultiComponentPhaseModel.H.
|
protected |
Inert species index.
Definition at line 67 of file MultiComponentPhaseModel.H.
|
protected |
Pointer list to active species.
Definition at line 70 of file MultiComponentPhaseModel.H.
|
protected |
Species table.
Definition at line 64 of file MultiComponentPhaseModel.H.
Referenced by MultiComponentPhaseModel< BasePhaseModel >::species().
|
protected |
Thermophysical model.
Definition at line 70 of file MultiComponentPhaseModel.H.
|
protected |
Ptr list of volumetric fractions for species.
Definition at line 73 of file MultiComponentPhaseModel.H.