Loading...
Searching...
No Matches
ThermalPhaseChangePhaseSystem< BasePhaseSystem > Class Template Reference

Class to provide interfacial heat and mass transfer between a number of phases according the interfacial temperature approximated by the saturation temperature. More...

#include <ThermalPhaseChangePhaseSystem.H>

Inheritance diagram for ThermalPhaseChangePhaseSystem< BasePhaseSystem >:
Collaboration diagram for ThermalPhaseChangePhaseSystem< BasePhaseSystem >:

Public Member Functions

 ThermalPhaseChangePhaseSystem (const fvMesh &)
 Construct from fvMesh.
virtual ~ThermalPhaseChangePhaseSystem ()
 Destructor.
const saturationModelsaturation () const
 Return the saturationModel.
virtual tmp< volScalarFielddmdt (const phasePairKey &key) const
 Return the mass transfer rate for a pair.
virtual PtrList< volScalarFielddmdts () const
 Return the mass transfer rates for each phase.
virtual autoPtr< phaseSystem::heatTransferTableheatTransfer () const
 Return the heat transfer matrices.
virtual autoPtr< phaseSystem::massTransferTablemassTransfer () const
 Return the mass transfer matrices.
virtual void correctInterfaceThermo ()
 Correct the interface thermodynamics.
virtual bool read ()
 Read base phaseProperties dictionary.

Protected Types

typedef HashPtrTable< volScalarField, phasePairKey, phasePairKey::hashiDmdtTable
typedef HashPtrTable< volScalarField, phasePairKey, phasePairKey::hashwDmdtTable
typedef HashPtrTable< volScalarField, phasePairKey, phasePairKey::hashwMDotLTable

Protected Member Functions

tmp< volScalarFieldiDmdt (const phasePairKey &key) const
 Return the interfacial mass transfer rate for a pair.
tmp< volScalarFieldwDmdt (const phasePairKey &key) const
 Return the boundary mass transfer rate for a pair.

Protected Attributes

word volatile_
 Name of the volatile specie.
autoPtr< saturationModelsaturationModel_
 The saturation model used to evaluate Tsat = Tf.
Switch phaseChange_
iDmdtTable iDmdt_
 Interfacial Mass transfer rate.
wDmdtTable wDmdt_
 Boundary Mass transfer rate.
wMDotLTable wMDotL_
 Boundary thermal energy transfer rate.

Detailed Description

template<class BasePhaseSystem>
class Foam::ThermalPhaseChangePhaseSystem< BasePhaseSystem >

Class to provide interfacial heat and mass transfer between a number of phases according the interfacial temperature approximated by the saturation temperature.

Source files

Definition at line 51 of file ThermalPhaseChangePhaseSystem.H.

Member Typedef Documentation

◆ iDmdtTable

template<class BasePhaseSystem>
typedef HashPtrTable<volScalarField, phasePairKey, phasePairKey::hash> iDmdtTable
protected

Definition at line 61 of file ThermalPhaseChangePhaseSystem.H.

◆ wDmdtTable

template<class BasePhaseSystem>
typedef HashPtrTable<volScalarField, phasePairKey, phasePairKey::hash> wDmdtTable
protected

Definition at line 64 of file ThermalPhaseChangePhaseSystem.H.

◆ wMDotLTable

template<class BasePhaseSystem>
typedef HashPtrTable<volScalarField, phasePairKey, phasePairKey::hash> wMDotLTable
protected

Definition at line 67 of file ThermalPhaseChangePhaseSystem.H.

Constructor & Destructor Documentation

◆ ThermalPhaseChangePhaseSystem()

template<class BasePhaseSystem>
ThermalPhaseChangePhaseSystem ( const fvMesh & mesh)

◆ ~ThermalPhaseChangePhaseSystem()

template<class BasePhaseSystem>
~ThermalPhaseChangePhaseSystem ( )
virtual

Destructor.

Definition at line 160 of file ThermalPhaseChangePhaseSystem.C.

Member Function Documentation

◆ iDmdt()

template<class BasePhaseSystem>
Foam::tmp< Foam::volScalarField > iDmdt ( const phasePairKey & key) const
protected

Return the interfacial mass transfer rate for a pair.

Definition at line 31 of file ThermalPhaseChangePhaseSystem.C.

References Pair< T >::compare(), phaseSystem::dmdt(), and iDmdt_.

Referenced by correctInterfaceThermo(), dmdt(), dmdts(), heatTransfer(), and massTransfer().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ wDmdt()

template<class BasePhaseSystem>
Foam::tmp< Foam::volScalarField > wDmdt ( const phasePairKey & key) const
protected

Return the boundary mass transfer rate for a pair.

Definition at line 49 of file ThermalPhaseChangePhaseSystem.C.

References Pair< T >::compare(), phaseSystem::dmdt(), and wDmdt_.

Referenced by correctInterfaceThermo(), dmdt(), dmdts(), heatTransfer(), and massTransfer().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ saturation()

template<class BasePhaseSystem>
const Foam::saturationModel & saturation ( ) const

Return the saturationModel.

Definition at line 169 of file ThermalPhaseChangePhaseSystem.C.

References saturationModel_.

◆ dmdt()

template<class BasePhaseSystem>
Foam::tmp< Foam::volScalarField > dmdt ( const phasePairKey & key) const
virtual

Return the mass transfer rate for a pair.

Definition at line 177 of file ThermalPhaseChangePhaseSystem.C.

References iDmdt(), and wDmdt().

Referenced by heatTransfer(), and massTransfer().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dmdts()

template<class BasePhaseSystem>
Foam::PtrList< Foam::volScalarField > dmdts ( ) const
virtual

Return the mass transfer rates for each phase.

Definition at line 188 of file ThermalPhaseChangePhaseSystem.C.

References dmdts(), forAllConstIter, iDmdt(), iDmdt_, phasePair::phase1(), phasePair::phase2(), wDmdt(), and wDmdt_.

Referenced by dmdts().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ heatTransfer()

template<class BasePhaseSystem>
Foam::autoPtr< Foam::phaseSystem::heatTransferTable > heatTransfer ( ) const
virtual

Return the heat transfer matrices.

Definition at line 216 of file ThermalPhaseChangePhaseSystem.C.

References dmdt(), forAllConstIter, iDmdt(), Foam::negPart(), phasePairKey::ordered(), phasePair::phase1(), phase1, phasePair::phase2(), phase2, Foam::posPart(), wDmdt(), and wMDotL_.

Here is the call graph for this function:

◆ massTransfer()

template<class BasePhaseSystem>
Foam::autoPtr< Foam::phaseSystem::massTransferTable > massTransfer ( ) const
virtual

Return the mass transfer matrices.

Definition at line 278 of file ThermalPhaseChangePhaseSystem.C.

References dmdt(), forAll, forAllConstIter, IOobject::groupName(), iDmdt(), Foam::name(), phase::name(), phaseModel::name(), name, phasePairKey::ordered(), phasePair::phase1(), phasePair::phase2(), volatile_, and wDmdt().

Here is the call graph for this function:

◆ correctInterfaceThermo()

◆ read()

template<class BasePhaseSystem>
bool read ( )
virtual

Read base phaseProperties dictionary.

Definition at line 544 of file ThermalPhaseChangePhaseSystem.C.

Member Data Documentation

◆ volatile_

template<class BasePhaseSystem>
word volatile_
protected

Name of the volatile specie.

Definition at line 75 of file ThermalPhaseChangePhaseSystem.H.

Referenced by massTransfer(), and ThermalPhaseChangePhaseSystem().

◆ saturationModel_

template<class BasePhaseSystem>
autoPtr<saturationModel> saturationModel_
protected

The saturation model used to evaluate Tsat = Tf.

Definition at line 80 of file ThermalPhaseChangePhaseSystem.H.

Referenced by correctInterfaceThermo(), saturation(), and ThermalPhaseChangePhaseSystem().

◆ phaseChange_

template<class BasePhaseSystem>
Switch phaseChange_
protected

◆ iDmdt_

template<class BasePhaseSystem>
iDmdtTable iDmdt_
protected

Interfacial Mass transfer rate.

Definition at line 88 of file ThermalPhaseChangePhaseSystem.H.

Referenced by correctInterfaceThermo(), dmdts(), iDmdt(), and ThermalPhaseChangePhaseSystem().

◆ wDmdt_

template<class BasePhaseSystem>
wDmdtTable wDmdt_
protected

Boundary Mass transfer rate.

Definition at line 93 of file ThermalPhaseChangePhaseSystem.H.

Referenced by correctInterfaceThermo(), dmdts(), ThermalPhaseChangePhaseSystem(), and wDmdt().

◆ wMDotL_

template<class BasePhaseSystem>
wMDotLTable wMDotL_
protected

Boundary thermal energy transfer rate.

Definition at line 98 of file ThermalPhaseChangePhaseSystem.H.

Referenced by correctInterfaceThermo(), heatTransfer(), and ThermalPhaseChangePhaseSystem().


The documentation for this class was generated from the following files: