Class for mass transfer between phases. More...
Public Types | |
typedef HashTable< autoPtr< interfaceCompositionModel >, phasePairKey, phasePairKey::hash > | massTransferModelTable |
typedef HashTable< volScalarField::Internal > | SuSpTable |
Public Member Functions | |
MassTransferPhaseSystem (const fvMesh &) | |
Construct from fvMesh. More... | |
virtual | ~MassTransferPhaseSystem ()=default |
Destructor. More... | |
tmp< volScalarField > | dmdt (const phasePairKey &key) const |
Return total interfacial mass flow rate. More... | |
virtual tmp< fvScalarMatrix > | heatTransfer (const volScalarField &T) |
Return the heat transfer matrix. More... | |
virtual tmp< fvScalarMatrix > | volTransfer (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 Foam::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::hash > | dmdtTable |
Protected Member Functions | |
tmp< volScalarField > | calculateL (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... | |
Class for mass transfer between phases.
Definition at line 51 of file MassTransferPhaseSystem.H.
typedef HashTable< autoPtr<interfaceCompositionModel>, phasePairKey, phasePairKey::hash > massTransferModelTable |
Definition at line 66 of file MassTransferPhaseSystem.H.
typedef HashTable<volScalarField::Internal> SuSpTable |
Definition at line 69 of file MassTransferPhaseSystem.H.
|
protected |
Definition at line 82 of file MassTransferPhaseSystem.H.
|
explicit |
Construct from fvMesh.
Definition at line 35 of file MassTransferPhaseSystem.C.
References IOobjectOption::AUTO_WRITE, Foam::dimDensity, Foam::dimTime, forAllConstIters(), IOobject::groupName(), mesh, Foam::name(), IOobjectOption::NO_READ, timeName, and Foam::Zero.
|
virtualdefault |
Destructor.
|
protected |
Calculate L between phases.
Definition at line 74 of file MassTransferPhaseSystem.C.
References Foam::dimEnergy, Foam::dimMass, L(), interfaceCompositionModel::L(), mesh, Foam::neg(), tmp< T >::New(), IOobjectOption::NO_READ, IOobjectOption::NO_WRITE, Foam::pos(), Foam::T(), timeName, interfaceCompositionModel::transferSpecie(), and Foam::Zero.
Foam::tmp< Foam::volScalarField > dmdt | ( | const phasePairKey & | key | ) | const |
Return total interfacial mass flow rate.
Definition at line 129 of file MassTransferPhaseSystem.C.
References Foam::dimDensity, Foam::dimTime, Foam::glTF::key(), mesh, tmp< T >::New(), timeName, and Foam::Zero.
|
virtual |
Return the heat transfer matrix.
NOTE: Call KSu and KSp with T as variable,if not provided uses dmdt.
Definition at line 158 of file MassTransferPhaseSystem.C.
References Foam::dimDensity, Foam::dimEnergy, Foam::dimTemperature, Foam::dimTime, forAllConstIters(), interfaceCompositionModel::KSp(), interfaceCompositionModel::KSu(), L(), mesh, Foam::name(), phaseModel::name(), tmp< T >::New(), phasei, tmp< T >::ref(), GeometricField< Type, PatchField, GeoMesh >::ref(), Sp, Foam::fvm::Sp(), Su, Foam::T(), interfaceCompositionModel::T, timeName, tmp< T >::valid(), and Foam::Zero.
|
virtual |
Return the volumetric rate transfer matrix.
NOTE: Call KSu and KSp with p as variable,if not provided uses dmdt.
Definition at line 300 of file MassTransferPhaseSystem.C.
References Foam::dimless, Foam::dimPressure, Foam::dimTime, Foam::dimVolume, forAllConstIters(), interfaceCompositionModel::KSp(), interfaceCompositionModel::KSu(), mesh, phaseModel::name(), tmp< T >::New(), p, interfaceCompositionModel::P, phase1, phasePair::phase1(), phase2, phasePair::phase2(), tmp< T >::ref(), Sp, Foam::fvm::Sp(), Su, timeName, tmp< T >::valid(), and Foam::Zero.
|
virtual |
Correct/calculates mass sources dmdt for phases.
NOTE: Call the kexp() for all the mass transfer models.
Definition at line 449 of file MassTransferPhaseSystem.C.
References forAllConstIters(), interfaceCompositionModel::Kexp(), Foam::name(), phaseModel::name(), phasei, tmp< T >::ref(), and Foam::T().
Calculate mass transfer for alpha's.
Definition at line 500 of file MassTransferPhaseSystem.C.
References interfaceCompositionModel::alpha, alpha1, alpha2, Foam::clamp(), Foam::fvc::div(), forAll, forAllConstIters(), Foam::gMax(), interfaceCompositionModel::includeDivU(), interfaceCompositionModel::KSu(), Foam::max(), phaseModel::name(), phase1, phasePair::phase1(), phase2, phasePair::phase2(), phi, tmp< T >::ref(), GeometricField< Type, PatchField, GeoMesh >::ref(), Sp, Su, and tmp< T >::valid().
|
virtual |
Calculate mass transfer for species.
Definition at line 701 of file MassTransferPhaseSystem.C.
References forAllConstIters(), phaseModel::name(), GeometricField< Type, PatchField, GeoMesh >::oldTime(), Sp, and Su.
|
virtual |
Add volume change in pEq.
Definition at line 723 of file MassTransferPhaseSystem.C.
References forAllIters.
|
protected |
Overall inter-phase mass transfer rates [Kg/s].
Definition at line 90 of file MassTransferPhaseSystem.H.
|
protected |
Mass transfer models.
Definition at line 95 of file MassTransferPhaseSystem.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.