MassTransferPhaseSystem< BasePhaseSystem > Class Template Reference

Class for mass transfer between phases. More...

Inheritance diagram for MassTransferPhaseSystem< BasePhaseSystem >:
[legend]
Collaboration diagram for MassTransferPhaseSystem< BasePhaseSystem >:
[legend]

Public Types

typedef HashTable< autoPtr< interfaceCompositionModel >, phasePairKey, phasePairKey::hashmassTransferModelTable
 
typedef HashTable< volScalarField::InternalSuSpTable
 

Public Member Functions

 MassTransferPhaseSystem (const fvMesh &)
 Construct from fvMesh. More...
 
virtual ~MassTransferPhaseSystem ()=default
 Destructor. More...
 
tmp< volScalarFielddmdt (const phasePairKey &key) const
 Return total interfacial mass flow rate. More...
 
virtual tmp< fvScalarMatrixheatTransfer (const volScalarField &T)
 Return the heat transfer matrix. More...
 
virtual tmp< fvScalarMatrixvolTransfer (const volScalarField &p)
 Return the volumetric rate transfer matrix. More...
 
virtual void correctMassSources (const volScalarField &T)
 Correct/calculates mass sources dmdt for phases. More...
 
virtual void alphaTransfer (SuSpTable &Su, SuSpTable &Sp)
 Calculate mass transfer for alpha's. More...
 
virtual void massSpeciesTransfer (const phaseModel &phase, volScalarField::Internal &Su, volScalarField::Internal &Sp, const word speciesName)
 Calculate mass transfer for species. More...
 
virtual bool includeVolChange ()
 Add volume change in pEq. More...
 

Protected Types

typedef HashPtrTable< volScalarField, phasePairKey, phasePairKey::hashdmdtTable
 

Protected Member Functions

tmp< volScalarFieldcalculateL (const volScalarField &dmdtNetki, const phasePairKey &keyik, const phasePairKey &keyki, const volScalarField &T) const
 Calculate L between phases. More...
 

Protected Attributes

dmdtTable dmdt_
 Overall inter-phase mass transfer rates [Kg/s]. More...
 
massTransferModelTable massTransferModels_
 Mass transfer models. More...
 

Detailed Description

template<class BasePhaseSystem>
class Foam::MassTransferPhaseSystem< BasePhaseSystem >

Class for mass transfer between phases.

Source files

Definition at line 53 of file MassTransferPhaseSystem.H.

Member Typedef Documentation

◆ massTransferModelTable

◆ SuSpTable

◆ dmdtTable

Constructor & Destructor Documentation

◆ MassTransferPhaseSystem()

MassTransferPhaseSystem ( const fvMesh mesh)
explicit

Construct from fvMesh.

Definition at line 40 of file MassTransferPhaseSystem.C.

References Foam::dimDensity, Foam::dimTime, forAllConstIters(), mesh, Foam::name(), timeName, and Foam::Zero.

Here is the call graph for this function:

◆ ~MassTransferPhaseSystem()

virtual ~MassTransferPhaseSystem ( )
virtualdefault

Destructor.

Member Function Documentation

◆ calculateL()

Foam::tmp< Foam::volScalarField > calculateL ( const volScalarField dmdtNetki,
const phasePairKey keyik,
const phasePairKey keyki,
const volScalarField T 
) const
protected

Calculate L between phases.

Definition at line 79 of file MassTransferPhaseSystem.C.

References Foam::dimEnergy, Foam::dimMass, L(), interfaceCompositionModel::L(), mesh, Foam::neg(), Foam::New(), Foam::pos(), T, timeName, interfaceCompositionModel::transferSpecie(), and Foam::Zero.

Here is the call graph for this function:

◆ dmdt()

Foam::tmp< Foam::volScalarField > dmdt ( const phasePairKey key) const

Return total interfacial mass flow rate.

Definition at line 134 of file MassTransferPhaseSystem.C.

References Foam::dimDensity, Foam::dimTime, Foam::glTF::key(), mesh, Foam::New(), timeName, and Foam::Zero.

Here is the call graph for this function:

◆ heatTransfer()

Foam::tmp< Foam::fvScalarMatrix > heatTransfer ( const volScalarField T)
virtual

Return the heat transfer matrix.

NOTE: Call KSu and KSp with T as variable,if not provided uses dmdt.

Definition at line 163 of file MassTransferPhaseSystem.C.

References Foam::dimDensity, Foam::dimEnergy, Foam::dimTemperature, Foam::dimTime, forAllConstIters(), interfaceCompositionModel::KSp(), interfaceCompositionModel::KSu(), L(), mesh, Foam::name(), phaseModel::name(), Foam::New(), phasei, tmp< T >::ref(), GeometricField< Type, PatchField, GeoMesh >::ref(), Sp, Su, T, timeName, tmp< T >::valid(), and Foam::Zero.

Here is the call graph for this function:

◆ volTransfer()

Foam::tmp< Foam::fvScalarMatrix > volTransfer ( const volScalarField p)
virtual

Return the volumetric rate transfer matrix.

NOTE: Call KSu and KSp with p as variable,if not provided uses dmdt.

Definition at line 305 of file MassTransferPhaseSystem.C.

References Foam::dimless, Foam::dimPressure, Foam::dimTime, Foam::dimVolume, forAllConstIters(), interfaceCompositionModel::KSp(), interfaceCompositionModel::KSu(), mesh, Foam::New(), p, phase1, phasePair::phase1(), phase2, phasePair::phase2(), tmp< T >::ref(), Sp, Su, timeName, tmp< T >::valid(), and Foam::Zero.

Here is the call graph for this function:

◆ correctMassSources()

void correctMassSources ( const volScalarField T)
virtual

Correct/calculates mass sources dmdt for phases.

NOTE: Call the kexp() for all the mass transfer models.

Definition at line 454 of file MassTransferPhaseSystem.C.

References forAllConstIters(), interfaceCompositionModel::Kexp(), Foam::name(), phaseModel::name(), phasei, tmp< T >::ref(), and T.

Here is the call graph for this function:

◆ alphaTransfer()

void alphaTransfer ( SuSpTable Su,
SuSpTable Sp 
)
virtual

Calculate mass transfer for alpha's.

Definition at line 505 of file MassTransferPhaseSystem.C.

References Foam::constant::atomic::alpha, alpha1, alpha2, Foam::fac::div(), forAll, forAllConstIters(), Foam::gMax(), interfaceCompositionModel::includeDivU(), interfaceCompositionModel::KSu(), Foam::max(), Foam::min(), phase1, phasePair::phase1(), phase2, phasePair::phase2(), phi, tmp< T >::ref(), GeometricField< Type, PatchField, GeoMesh >::ref(), Sp, Su, and tmp< T >::valid().

Here is the call graph for this function:

◆ massSpeciesTransfer()

void massSpeciesTransfer ( const phaseModel phase,
volScalarField::Internal Su,
volScalarField::Internal Sp,
const word  speciesName 
)
virtual

Calculate mass transfer for species.

Definition at line 709 of file MassTransferPhaseSystem.C.

References forAllConstIters(), phaseModel::name(), GeometricField< Type, PatchField, GeoMesh >::oldTime(), Sp, and Su.

Here is the call graph for this function:

◆ includeVolChange()

bool includeVolChange ( )
virtual

Add volume change in pEq.

Definition at line 731 of file MassTransferPhaseSystem.C.

References forAllIters.

Member Data Documentation

◆ dmdt_

dmdtTable dmdt_
protected

Overall inter-phase mass transfer rates [Kg/s].

Definition at line 90 of file MassTransferPhaseSystem.H.

◆ massTransferModels_

massTransferModelTable massTransferModels_
protected

Mass transfer models.

Definition at line 93 of file MassTransferPhaseSystem.H.


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