Class to provide interfacial heat and mass transfer between a number of phases according to a interface composition model. More...
Public Member Functions | |
InterfaceCompositionPhaseChangePhaseSystem (const fvMesh &) | |
Construct from fvMesh. More... | |
virtual | ~InterfaceCompositionPhaseChangePhaseSystem () |
Destructor. More... | |
virtual tmp< volScalarField > | dmdt (const phasePairKey &key) const |
Return the mass transfer rate for a pair. More... | |
virtual PtrList< volScalarField > | dmdts () const |
Return the mass transfer rates for each phase. More... | |
virtual autoPtr< phaseSystem::massTransferTable > | massTransfer () const |
Return the mass transfer matrices. More... | |
virtual void | correctInterfaceThermo () |
Correct the interface temperatures. More... | |
virtual bool | read () |
Read base phaseProperties dictionary. More... | |
Protected Types | |
typedef HashTable< autoPtr< interfaceCompositionModel >, phasePairKey, phasePairKey::hash > | interfaceCompositionModelTable |
typedef HashTable< Pair< autoPtr< BlendedInterfacialModel< massTransferModel > > >, phasePairKey, phasePairKey::hash > | massTransferModelTable |
typedef HashPtrTable< HashPtrTable< volScalarField >, phasePairKey, phasePairKey::hash > | iDmdtSuSpTable |
typedef HashPtrTable< volScalarField, phasePairKey, phasePairKey::hash > | iDmdtTable |
Protected Member Functions | |
virtual tmp< volScalarField > | iDmdt (const phasePairKey &key) const |
Return the interfacial mass transfer rate for a pair for a pair. More... | |
Protected Attributes | |
const label | nInterfaceCorrectors_ |
The number of interface correctors. More... | |
massTransferModelTable | massTransferModels_ |
Mass transfer models. More... | |
interfaceCompositionModelTable | interfaceCompositionModels_ |
Interface composition models. More... | |
iDmdtSuSpTable | iDmdtSu_ |
The explicit part of the interfacial mass transfer rates. More... | |
iDmdtSuSpTable | iDmdtSp_ |
The implicit part of the interfacial mass transfer rates. More... | |
Class to provide interfacial heat and mass transfer between a number of phases according to a interface composition model.
The interface temperature is calculated such that the net rate at which the heat is transferred to the interface is equal to the latent heat consumed by the mass transfer.
Definition at line 60 of file InterfaceCompositionPhaseChangePhaseSystem.H.
|
protected |
Definition at line 73 of file InterfaceCompositionPhaseChangePhaseSystem.H.
|
protected |
Definition at line 80 of file InterfaceCompositionPhaseChangePhaseSystem.H.
|
protected |
Definition at line 87 of file InterfaceCompositionPhaseChangePhaseSystem.H.
|
protected |
Definition at line 94 of file InterfaceCompositionPhaseChangePhaseSystem.H.
|
explicit |
Construct from fvMesh.
Definition at line 83 of file InterfaceCompositionPhaseChangePhaseSystem.C.
References Foam::dimDensity, Foam::dimTime, Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAllConstIter, IOobject::groupName(), InterfaceCompositionPhaseChangePhaseSystem< BasePhaseSystem >::iDmdtSp_, InterfaceCompositionPhaseChangePhaseSystem< BasePhaseSystem >::iDmdtSu_, phasePair::index(), InterfaceCompositionPhaseChangePhaseSystem< BasePhaseSystem >::interfaceCompositionModels_, InterfaceCompositionPhaseChangePhaseSystem< BasePhaseSystem >::massTransferModels_, phase::name(), phaseModel::name(), phasePair::name(), phasePairKey::ordered(), phasePair::phase1(), phasePair::phase2(), and HashPtrTable< T, Key, Hash >::set().
Destructor.
Definition at line 235 of file InterfaceCompositionPhaseChangePhaseSystem.C.
|
protectedvirtual |
Return the interfacial mass transfer rate for a pair for a pair.
Definition at line 37 of file InterfaceCompositionPhaseChangePhaseSystem.C.
References FixedList< T, N >::first(), forAllConstIter, phaseModel::otherPhase(), phases, and tmp< T >::ref().
|
virtual |
Return the mass transfer rate for a pair.
Definition at line 244 of file InterfaceCompositionPhaseChangePhaseSystem.C.
|
virtual |
Return the mass transfer rates for each phase.
Definition at line 255 of file InterfaceCompositionPhaseChangePhaseSystem.C.
References forAllConstIter, phasePair::phase1(), and phasePair::phase2().
|
virtual |
Return the mass transfer matrices.
Definition at line 293 of file InterfaceCompositionPhaseChangePhaseSystem.C.
References forAllConstIter, HashTable< T, Key, Hash >::found(), IOobject::groupName(), phasePair::index(), phase::name(), phaseModel::name(), Foam::name(), phasePair::phase1(), phasePair::phase2(), phase::rho(), Foam::fvm::Sp(), and interfaceCompositionModel::Yf().
|
virtual |
Correct the interface temperatures.
Definition at line 373 of file InterfaceCompositionPhaseChangePhaseSystem.C.
References Foam::average(), GeometricField< Type, PatchField, GeoMesh >::correctBoundaryConditions(), Foam::dimEnergy, DimensionedField< Type, GeoMesh >::dimensions(), heatTransferModel::dimK, Foam::dimTemperature, Foam::dimTime, Foam::dimVolume, Foam::endl(), FixedList< T, N >::first(), forAllConstIter, Foam::Info, Foam::max(), mesh, Foam::min(), phasePair::name(), phasePair::phase1(), phasePair::phase2(), GeometricField< Type, PatchField, GeoMesh >::primitiveField(), Pair< T >::second(), basicThermo::T(), phaseModel::thermo(), and timeName.
|
virtual |
Read base phaseProperties dictionary.
Definition at line 489 of file InterfaceCompositionPhaseChangePhaseSystem.C.
|
protected |
The number of interface correctors.
Definition at line 102 of file InterfaceCompositionPhaseChangePhaseSystem.H.
|
protected |
Mass transfer models.
Definition at line 105 of file InterfaceCompositionPhaseChangePhaseSystem.H.
Referenced by InterfaceCompositionPhaseChangePhaseSystem< BasePhaseSystem >::InterfaceCompositionPhaseChangePhaseSystem().
|
protected |
Interface composition models.
Definition at line 108 of file InterfaceCompositionPhaseChangePhaseSystem.H.
Referenced by InterfaceCompositionPhaseChangePhaseSystem< BasePhaseSystem >::InterfaceCompositionPhaseChangePhaseSystem().
|
mutableprotected |
The explicit part of the interfacial mass transfer rates.
Definition at line 111 of file InterfaceCompositionPhaseChangePhaseSystem.H.
Referenced by InterfaceCompositionPhaseChangePhaseSystem< BasePhaseSystem >::InterfaceCompositionPhaseChangePhaseSystem().
|
mutableprotected |
The implicit part of the interfacial mass transfer rates.
Definition at line 114 of file InterfaceCompositionPhaseChangePhaseSystem.H.
Referenced by InterfaceCompositionPhaseChangePhaseSystem< BasePhaseSystem >::InterfaceCompositionPhaseChangePhaseSystem().