Class which represents a phase with multiple species. Returns the species' mass fractions, and their governing equations. More...
Public Member Functions | |
MultiComponentPhaseModel (const multiphaseInterSystem &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... | |
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... | |
Protected Member Functions | |
void | calculateMassFractions () |
Transfor volume fraction into mass fractions. More... | |
void | calculateVolumeFractions () |
Transfor mass fraction into volume fractions. More... | |
Protected Attributes | |
hashedWordList | species_ |
Species table. More... | |
label | inertIndex_ |
Inert species index. More... | |
autoPtr< phaseThermo > | thermoPtr_ |
Thermophysical model. More... | |
PtrList< volScalarField > | X_ |
Ptr list of volumetric fractions for species. More... | |
bool | addDiffusion_ |
Add diffusion transport on Yi's Eq. More... | |
scalar | Sct_ |
Schmidt number. More... | |
dimensionedScalar | Sct_ |
Turbulent Schmidt number. More... | |
dimensionedScalar | residualAlpha_ |
Residual phase fraction. More... | |
UPtrList< volScalarField > | YActive_ |
Pointer list to active species. More... | |
Class which represents a phase with multiple species. Returns the species' mass fractions, and their governing equations.
Definition at line 55 of file MultiComponentPhaseModel.H.
MultiComponentPhaseModel | ( | const multiphaseInterSystem & | fluid, |
const word & | phaseName | ||
) |
Definition at line 46 of file MultiComponentPhaseModel.C.
References MultiComponentPhaseModel< BasePhaseModel, phaseThermo >::addDiffusion_, MultiComponentPhaseModel< BasePhaseModel, phaseThermo >::calculateVolumeFractions(), basicThermo::dictName, autoPtr< T >::empty(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, hashedWordList::find(), fluid, forAll, IOobject::groupName(), MultiComponentPhaseModel< BasePhaseModel, phaseThermo >::inertIndex_, twoPhaseSystem::mesh(), IOobject::NO_READ, IOobject::NO_WRITE, basicThermo::phasePropertyName(), autoPtr< T >::reset(), MultiComponentPhaseModel< BasePhaseModel, phaseThermo >::Sct_, MultiComponentPhaseModel< BasePhaseModel, phaseThermo >::species_, MultiComponentPhaseModel< BasePhaseModel, phaseThermo >::thermoPtr_, fvMesh::time(), Time::timeName(), MultiComponentPhaseModel< BasePhaseModel, phaseThermo >::X_, and MultiComponentPhaseModel< BasePhaseModel, phaseThermo >::Y().
|
virtualdefault |
Destructor.
Definition at line 93 of file MultiComponentPhaseModel.C.
MultiComponentPhaseModel | ( | const phaseSystem & | fluid, |
const word & | phaseName, | ||
const label | index | ||
) |
Definition at line 44 of file MultiComponentPhaseModel.C.
References Foam::dimless, forAll, MultiComponentPhaseModel< BasePhaseModel, phaseThermo >::inertIndex_, inertSpecie(), MultiComponentPhaseModel< BasePhaseModel, phaseThermo >::Y(), and MultiComponentPhaseModel< BasePhaseModel, phaseThermo >::YActive_.
|
virtual |
Destructor.
|
protected |
Transfor volume fraction into mass fractions.
Definition at line 161 of file MultiComponentPhaseModel.C.
References composition, Foam::endl(), forAll, Foam::Info, Foam::max(), Foam::min(), and Y.
|
protected |
Transfor mass fraction into volume fractions.
Definition at line 117 of file MultiComponentPhaseModel.C.
References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), composition, GeometricField< Type, PatchField, GeoMesh >::correctBoundaryConditions(), Foam::dimMass, Foam::dimMoles, fvPatchField< Type >::fixesValue(), forAll, dimensioned< Type >::value(), and Y.
Referenced by MultiComponentPhaseModel< BasePhaseModel, phaseThermo >::MultiComponentPhaseModel().
|
inline |
Species table.
Definition at line 111 of file MultiComponentPhaseModel.H.
References MultiComponentPhaseModel< BasePhaseModel, phaseThermo >::species_.
|
virtual |
Access to thermo.
Definition at line 184 of file MultiComponentPhaseModel.C.
|
virtual |
Access non-const thermo.
Definition at line 192 of file MultiComponentPhaseModel.C.
|
virtual |
Correct phase thermo.
Definition at line 199 of file MultiComponentPhaseModel.C.
|
virtual |
Solve species fraction equation.
Definition at line 206 of file MultiComponentPhaseModel.C.
References alpha, alpha1, alpha2, GeometricField< Type, PatchField, GeoMesh >::boundaryField(), GeometricField< Type, PatchField, GeoMesh >::boundaryFieldRef(), fvsPatchField< Type >::coupled(), Foam::fvc::ddt(), Foam::fvm::ddt(), TimeState::deltaT(), Foam::MULES::explicitSolve(), fluid, fvMatrix< Type >::flux(), Foam::fvc::flux(), forAll, forAllConstIter, dictionary::get(), dictionary::getOrDefault(), Foam::fvm::laplacian(), Foam::MULES::limit(), Foam::mag(), fvMesh::magSf(), GeometricField< Type, PatchField, GeoMesh >::max(), Foam::max(), mesh, DimensionedField< Type, GeoMesh >::mesh(), Foam::min(), IOobject::name(), nut, phases, phi, twoPhaseSystem::phi(), phic(), phir(), PtrList< T >::set(), fvMatrix< Type >::solve(), solution::solver(), solution::solverDict(), Sp, Foam::fvm::Sp(), Su, fvMesh::time(), turbulence, dimensioned< Type >::value(), and Yt().
|
virtual |
Constant access the species mass fractions.
Definition at line 439 of file MultiComponentPhaseModel.C.
Referenced by MultiComponentPhaseModel< BasePhaseModel, phaseThermo >::MultiComponentPhaseModel().
|
virtual |
Access the species mass fractions.
Definition at line 447 of file MultiComponentPhaseModel.C.
Foam::label inertIndex |
Return inert species index.
Definition at line 455 of file MultiComponentPhaseModel.C.
|
virtual |
Correct the thermodynamics.
Definition at line 100 of file MultiComponentPhaseModel.C.
References Foam::dimless, fluid, forAll, IOobject::groupName(), 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 alpha, Foam::fvc::ddt(), Foam::fvm::ddt(), Foam::fvm::div(), Foam::fvc::interpolate(), Foam::fvm::laplacian(), IOobject::name(), and rho.
|
virtual |
Return the species mass fractions.
|
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 |
Species table.
Definition at line 64 of file MultiComponentPhaseModel.H.
Referenced by MultiComponentPhaseModel< BasePhaseModel, phaseThermo >::MultiComponentPhaseModel(), and MultiComponentPhaseModel< BasePhaseModel, phaseThermo >::species().
|
protected |
Inert species index.
Definition at line 67 of file MultiComponentPhaseModel.H.
Referenced by MultiComponentPhaseModel< BasePhaseModel, phaseThermo >::MultiComponentPhaseModel().
|
protected |
Thermophysical model.
Definition at line 70 of file MultiComponentPhaseModel.H.
Referenced by MultiComponentPhaseModel< BasePhaseModel, phaseThermo >::MultiComponentPhaseModel().
|
protected |
Ptr list of volumetric fractions for species.
Definition at line 73 of file MultiComponentPhaseModel.H.
Referenced by MultiComponentPhaseModel< BasePhaseModel, phaseThermo >::MultiComponentPhaseModel().
|
protected |
Add diffusion transport on Yi's Eq.
Definition at line 76 of file MultiComponentPhaseModel.H.
Referenced by MultiComponentPhaseModel< BasePhaseModel, phaseThermo >::MultiComponentPhaseModel().
|
protected |
Schmidt number.
Definition at line 79 of file MultiComponentPhaseModel.H.
Referenced by MultiComponentPhaseModel< BasePhaseModel, phaseThermo >::MultiComponentPhaseModel().
|
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 |
Pointer list to active species.
Definition at line 70 of file MultiComponentPhaseModel.H.
Referenced by MultiComponentPhaseModel< BasePhaseModel, phaseThermo >::MultiComponentPhaseModel().