44 void Foam::fv::oneResistanceHeatTransfer::readCoeffs(
const dictionary&
dict)
50 generateBlendedInterfacialModels<blendedHeatTransferModel>
69 heNames_ = heNameSet.toc();
74 Foam::fv::oneResistanceHeatTransfer::Ks()
const
82 modelIter()->interface(),
97 const word& modelType,
106 energyEquationIndex_(-1),
146 if (energyEquationIndex_ % heNames_.size() == 0) Ks_.clear();
147 energyEquationIndex_ ++;
150 const phaseModel& phase = fluid_.phases()[eqn.
psi().group()];
155 if (!interface.
contains(phase))
continue;
171 eqn += stabilisedK*(otherT -
T +
he/Cpv) -
fvm::Sp(stabilisedK/Cpv,
he);
196 energyEquationIndex_ = 0;
206 readCoeffs(coeffs(
dict));
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
Macros for easy insertion into run-time selection tables.
Generic GeometricField class.
void clear()
Clear all entries from table.
void transfer(HashTable< T, Key, Hash > &)
Transfer the contents of the argument table into this table.
virtual const volScalarField & T() const =0
Temperature [K].
virtual const volScalarField & Cpv() const =0
Heat capacity at constant pressure/volume [J/kg/K].
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
Mesh data needed to do the Finite Volume discretisation.
Finite volume model abstract base class.
static const dictionary & coeffs(const word &modelType, const dictionary &)
Return the coefficients sub-dictionary for a given model type.
virtual bool read(const dictionary &dict)
Read source dictionary.
static const wordHashSet keywords
The keywords read by this class.
const word & name() const
Return const access to the source name.
Model for heat transfer between two phases. One heat transfer coefficient is used to calculate the he...
virtual bool movePoints()
Update for mesh motion.
virtual wordList addSupFields() const
Return the list of fields for which the fvModel adds source term.
void addSup(const volScalarField &alpha, const volScalarField &rho, const volScalarField &he, fvMatrix< scalar > &eqn) const
Add a source term to the phase-compressible energy equation.
tmp< volScalarField > K(const phaseModel &phase1, const phaseModel &phase2) const
Return the heat transfer coefficient between a pair of phases.
virtual void correct()
Correct the fvModel.
virtual void topoChange(const polyTopoChangeMap &)
Update topology using the given map.
virtual void distribute(const polyDistributionMap &)
Redistribute or update using the given distribution map.
virtual bool read(const dictionary &dict)
Read source dictionary.
oneResistanceHeatTransfer(const word &name, const word &modelType, const fvMesh &mesh, const dictionary &dict)
Construct from explicit source name and mesh.
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
Class to represent an interface between phases. Derivations can further specify the configuration of ...
const phaseModel & otherPhase(const phaseModel &phase) const
Return the other phase relative to the given phase.
bool contains(const phaseModel &phase) const
Return true if this phaseInterface contains the given phase.
const dimensionedScalar & residualAlpha() const
Return the residual phase-fraction for given phase.
virtual const rhoThermo & thermo() const =0
Return the thermophysical model.
Class to represent a system of phases.
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
Class containing mesh-to-mesh mapping information.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
A class for managing temporary objects.
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
Calculate the matrix for implicit and explicit sources.
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
addToRunTimeSelectionTable(fvConstraint, bound, dictionary)
defineTypeNameAndDebug(bound, 0)
tmp< fvMatrix< Type > > Sp(const volScalarField::Internal &, const VolField< Type > &)
void T(LagrangianPatchField< Type > &f, const LagrangianPatchField< Type > &f1)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
HashSet wordHashSet
A HashSet with word keys.
fluidMulticomponentThermo & thermo