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

Class for mass transfer between phases. More...

#include <MassTransferPhaseSystem.H>

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

Public Types

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

Public Member Functions

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

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.

Protected Attributes

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

Detailed Description

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

Class for mass transfer between phases.

Source files

Definition at line 51 of file MassTransferPhaseSystem.H.

Member Typedef Documentation

◆ massTransferModelTable

Definition at line 66 of file MassTransferPhaseSystem.H.

◆ SuSpTable

template<class BasePhaseSystem>
typedef HashTable<volScalarField::Internal> SuSpTable

Definition at line 69 of file MassTransferPhaseSystem.H.

◆ dmdtTable

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

Definition at line 82 of file MassTransferPhaseSystem.H.

Constructor & Destructor Documentation

◆ MassTransferPhaseSystem()

template<class BasePhaseSystem>
MassTransferPhaseSystem ( const fvMesh & mesh)
explicit

◆ ~MassTransferPhaseSystem()

template<class BasePhaseSystem>
virtual ~MassTransferPhaseSystem ( )
virtualdefault

Destructor.

Member Function Documentation

◆ calculateL()

template<class BasePhaseSystem>
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 74 of file MassTransferPhaseSystem.C.

References Foam::dimEnergy, Foam::dimMass, L, massTransferModels_, mesh, Foam::neg(), GeometricField< scalar, fvPatchField, volMesh >::New(), IOobjectOption::NO_REGISTER, Foam::pos(), Foam::T(), and Foam::Zero.

Referenced by heatTransfer().

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

◆ dmdt()

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

Return total interfacial mass flow rate.

Definition at line 123 of file MassTransferPhaseSystem.C.

References Foam::dimDensity, Foam::dimTime, dmdt(), dmdt_, mesh, GeometricField< scalar, fvPatchField, volMesh >::New(), IOobjectOption::NO_REGISTER, and Foam::Zero.

Referenced by alphaTransfer(), and dmdt().

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

◆ heatTransfer()

template<class BasePhaseSystem>
Foam::tmp< Foam::fvScalarMatrix > heatTransfer ( const volScalarField & T)
virtual

◆ volTransfer()

template<class BasePhaseSystem>
Foam::tmp< Foam::fvScalarMatrix > volTransfer ( const volScalarField & p)
virtual

◆ correctMassSources()

template<class BasePhaseSystem>
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 419 of file MassTransferPhaseSystem.C.

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

Here is the call graph for this function:

◆ alphaTransfer()

template<class BasePhaseSystem>
void alphaTransfer ( SuSpTable & Su,
SuSpTable & Sp )
virtual

◆ massSpeciesTransfer()

template<class BasePhaseSystem>
void massSpeciesTransfer ( const Foam::phaseModel & phase,
volScalarField::Internal & Su,
volScalarField::Internal & Sp,
const word speciesName )
virtual

Calculate mass transfer for species.

Definition at line 671 of file MassTransferPhaseSystem.C.

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

Here is the call graph for this function:

◆ includeVolChange()

template<class BasePhaseSystem>
bool includeVolChange ( )
virtual

Add volume change in pEq.

Definition at line 694 of file MassTransferPhaseSystem.C.

References forAllIters, includeVolChange(), and massTransferModels_.

Referenced by includeVolChange().

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

Member Data Documentation

◆ dmdt_

template<class BasePhaseSystem>
dmdtTable dmdt_
protected

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

Definition at line 90 of file MassTransferPhaseSystem.H.

Referenced by correctMassSources(), dmdt(), heatTransfer(), MassTransferPhaseSystem(), and volTransfer().

◆ massTransferModels_

template<class BasePhaseSystem>
massTransferModelTable massTransferModels_
protected

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