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 > | dmdtf (const phaseInterfaceKey &key) const |
Return the mass transfer rate for an interface. More... | |
virtual PtrList< volScalarField > | dmdts () const |
Return the mass transfer rates for each phase. More... | |
virtual autoPtr< phaseSystem::momentumTransferTable > | momentumTransfer () |
Return the momentum transfer matrices for the cell-based algorithm. More... | |
virtual autoPtr< phaseSystem::momentumTransferTable > | momentumTransferf () |
Return the momentum transfer matrices for the face-based algorithm. More... | |
virtual autoPtr< phaseSystem::heatTransferTable > | heatTransfer () const |
Return the heat transfer matrices. More... | |
virtual autoPtr< phaseSystem::specieTransferTable > | specieTransfer () const |
Return the specie transfer matrices. More... | |
virtual void | correct () |
Correct the fluid properties other than those listed below. More... | |
virtual void | correctSpecies () |
Correct the mass transfer rates for the new species mass fractions. More... | |
virtual void | correctInterfaceThermo () |
Correct the interface temperatures. More... | |
virtual bool | read () |
Read base phaseProperties dictionary. 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 57 of file InterfaceCompositionPhaseChangePhaseSystem.H.
InterfaceCompositionPhaseChangePhaseSystem | ( | const fvMesh & | mesh | ) |
Construct from fvMesh.
Definition at line 150 of file InterfaceCompositionPhaseChangePhaseSystem.C.
References IOobject::AUTO_WRITE, Foam::dimDensity, Foam::dimTime, Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAllConstIter, HashTable< T, Key, Hash >::found(), IOobject::groupName(), SidedInterfacialModel< ModelType >::haveModelInThe(), HashTable< T, Key, Hash >::insert(), SidedInterfacialModel< ModelType >::interface(), SidedInterfacialModel< ModelType >::modelInThe(), IOobject::NO_READ, IOobject::READ_IF_PRESENT, interfaceCompositionModel::species(), and Foam::Zero.
Destructor.
Definition at line 364 of file InterfaceCompositionPhaseChangePhaseSystem.C.
|
virtual |
Return the mass transfer rate for an interface.
Definition at line 373 of file InterfaceCompositionPhaseChangePhaseSystem.C.
References tmp< T >::ref().
|
virtual |
Return the mass transfer rates for each phase.
Definition at line 391 of file InterfaceCompositionPhaseChangePhaseSystem.C.
References Foam::addField(), forAllConstIter, phaseInterface::phase1(), and phaseInterface::phase2().
|
virtual |
Return the momentum transfer matrices for the cell-based algorithm.
Definition at line 409 of file InterfaceCompositionPhaseChangePhaseSystem.C.
|
virtual |
Return the momentum transfer matrices for the face-based algorithm.
Definition at line 425 of file InterfaceCompositionPhaseChangePhaseSystem.C.
|
virtual |
Return the heat transfer matrices.
Definition at line 441 of file InterfaceCompositionPhaseChangePhaseSystem.C.
|
virtual |
Return the specie transfer matrices.
Definition at line 464 of file InterfaceCompositionPhaseChangePhaseSystem.C.
References forAllConstIter, HashTable< T, Key, Hash >::found(), IOobject::groupName(), SidedInterfacialModel< ModelType >::haveModelInThe(), SidedInterfacialModel< ModelType >::interface(), SidedInterfacialModel< ModelType >::modelInThe(), phaseModel::name(), Foam::fvm::Sp(), interfaceCompositionModel::species(), and phaseModel::Y().
|
virtual |
Correct the fluid properties other than those listed below.
Definition at line 527 of file InterfaceCompositionPhaseChangePhaseSystem.C.
References Foam::MULES::correct(), interfaceCompositionModel::D(), forAllConstIter, SidedInterfacialModel< ModelType >::haveModelInThe(), SidedInterfacialModel< ModelType >::interface(), K, SidedInterfacialModel< ModelType >::modelInThe(), phaseModel::rho(), interfaceCompositionModel::species(), and interfaceCompositionModel::Yf().
|
virtual |
Correct the mass transfer rates for the new species mass fractions.
Definition at line 587 of file InterfaceCompositionPhaseChangePhaseSystem.C.
|
virtual |
Correct the interface temperatures.
Definition at line 597 of file InterfaceCompositionPhaseChangePhaseSystem.C.
References Foam::average(), GeometricField< Type, PatchField, GeoMesh >::correctBoundaryConditions(), interfaceCompositionModel::D(), Foam::dimEnergy, Foam::dimensions(), heatTransferModel::dimK, Foam::dimTemperature, Foam::dimTime, Foam::dimVolume, interfaceCompositionModel::dY(), interfaceCompositionModel::dYfPrime(), Foam::endl(), forAllConstIter, forAllIter, IOobject::groupName(), SidedInterfacialModel< ModelType >::haveModelInThe(), Foam::Info, SidedInterfacialModel< ModelType >::interface(), heatTransferModel::K(), diffusiveMassTransferModel::K(), Foam::max(), Foam::min(), SidedInterfacialModel< ModelType >::modelInThe(), GeometricField< Type, PatchField, GeoMesh >::New(), GeometricField< Type, PatchField, GeoMesh >::primitiveField(), tmp< T >::ref(), phaseModel::rho(), Foam::sign(), interfaceCompositionModel::species(), GeometricField< Type, PatchField, GeoMesh >::T(), and interfaceCompositionModel::update().
|
virtual |
Read base phaseProperties dictionary.
Definition at line 749 of file InterfaceCompositionPhaseChangePhaseSystem.C.
References Foam::blockMeshTools::read().