28 #include "BlendedInterfacialModel.H" 29 #include "heatTransferModel.H" 39 template<
class BasePhaseSystem>
53 template<
class BasePhaseSystem>
60 template<
class BasePhaseSystem>
63 const phaseModel& phase
70 template<
class BasePhaseSystem>
74 const phasePairKey& key
77 return tmp<volScalarField>
86 this->phasePairs_[key]->
name()
98 template<
class BasePhaseSystem>
105 return tmp<volScalarField>(NULL);
109 template<
class BasePhaseSystem>
113 autoPtr<phaseSystem::heatTransferTable> eqnsPtr
122 const phaseModel& phase = this->phaseModels_[
phasei];
135 heatTransferModelIter
140 const phasePair& pair(this->phasePairs_[heatTransferModelIter.key()]);
142 const phaseModel* phase = &pair.phase1();
143 const phaseModel* otherPhase = &pair.phase2();
150 *eqns[phase->name()] +=
151 K*(otherPhase->thermo().T() - phase->thermo().T() +
he/Cpv)
154 Swap(phase, otherPhase);
162 template<
class BasePhaseSystem>
166 autoPtr<phaseSystem::massTransferTable> eqnsPtr
175 template<
class BasePhaseSystem>
fvMatrix< scalar > fvScalarMatrix
#define forAll(list, i)
Loop across all elements in list.
tmp< fvMatrix< Type > > Sp(const DimensionedField< scalar, volMesh > &, const GeometricField< Type, fvPatchField, volMesh > &)
virtual autoPtr< phaseSystem::massTransferTable > massTransfer() const
Return the mass transfer matrices.
CGAL::Exact_predicates_exact_constructions_kernel K
virtual tmp< volScalarField > dmdt(const phasePairKey &key) const
Return the interfacial mass flow rate.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
HashPtrTable< fvScalarMatrix, word, string::hash > heatTransferTable
bool read(const char *, int32_t &)
static word groupName(Name name, const word &group)
HashTable< HashTable< autoPtr< BlendedInterfacialModel< heatTransferModel > > >, phasePairKey, phasePairKey::hash > heatTransferModelTable
virtual ~HeatTransferPhaseSystem()
Destructor.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
Calculate the divergence of the given field.
word name(const complex &)
Return a string representation of a complex.
const dimensionSet dimEnergy
const dimensionSet dimDensity
virtual bool transfersMass(const phaseModel &phase) const
Return true if there is mass transfer for phase.
heatTransferModelTable heatTransferModels_
Heat transfer models.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
HashPtrTable< fvScalarMatrix, word, string::hash > massTransferTable
A class for managing temporary objects.
HeatTransferPhaseSystem(const fvMesh &)
Construct from fvMesh.
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
virtual autoPtr< phaseSystem::heatTransferTable > heatTransfer() const
Return the heat transfer matrices.
virtual bool read()
Read base phaseProperties dictionary.
Calculate the matrix for implicit and explicit sources.