53 void Foam::fv::interRegionHeatTransfer::readCoeffs()
62 heatTransferAv_.reset(
new heatTransferAv(
coeffs(),
mesh()));
64 heatTransferCoefficientModel_ =
71 Foam::fv::interRegionHeatTransfer::nbrHeatTransfer()
const
73 return refCast<const interRegionHeatTransfer>(nbrModel());
82 const word& modelType,
90 TNbrName_(
word::null),
91 heatTransferAv_(nullptr),
92 heatTransferCoefficientModel_(nullptr)
109 mesh().lookupObject<
basicThermo>(physicalProperties::typeName);
127 nbrMesh().lookupObject<volScalarField>(TNbrName_),
128 tTnbr->primitiveFieldRef()
153 *heatTransferCoefficientModel_->htc()
154 *heatTransferAv_->Av();
159 nbrHeatTransfer().heatTransferCoefficientModel_->htc()
160 *nbrHeatTransfer().heatTransferAv_->Av();
177 mesh().lookupObject<
basicThermo>(physicalProperties::typeName);
192 eqn += htcAv*(Tnbr -
T);
212 heatTransferCoefficientModel_->correct();
Macros for easy insertion into run-time selection tables.
Generic GeometricField class.
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, const Internal &, const PtrList< PatchField< Type >> &, const HashPtrTable< Source > &=HashPtrTable< Source >())
Return a temporary field constructed from name,.
Base-class for fluid and solid thermodynamic properties.
A list of keyword definitions, which are a keyword followed by any number of values (e....
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T, if not found return the given default.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
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.
const dictionary & coeffs() const
Return dictionary.
const fvMesh & mesh() const
Return const access to the mesh database.
static autoPtr< heatTransferCoefficientModel > New(const dictionary &dict, const fvMesh &mesh)
Select from dictionary and mesh.
Model for inter-region heat exchange. Requires specification of a model for the heat transfer coeffic...
virtual bool movePoints()
Update for mesh motion.
virtual wordList addSupFields() const
Return the list of fields for which the fvModel adds source term.
interRegionHeatTransfer(const word &name, const word &modelType, const fvMesh &mesh, const dictionary &dict)
Construct from dictionary.
virtual void correct()
Correct the model.
virtual void addSup(const volScalarField &he, fvMatrix< scalar > &eqn) const
Source term to energy equation.
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 dictionary.
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
virtual ~interRegionHeatTransfer()
Destructor.
Base class for inter-region exchange.
bool master() const
Return whether the master region.
virtual bool read(const dictionary &dict)
Read dictionary.
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.
T & ref() const
Return non-const reference or generate a fatal error.
A class for handling words, derived from string.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Volume integrate volField creating a volField.
Calculate the matrix for implicit and explicit sources.
addToRunTimeSelectionTable(fvConstraint, bound, dictionary)
defineTypeNameAndDebug(bound, 0)
static tmp< SurfaceField< Type > > interpolate(const VolField< Type > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
tmp< fvMatrix< Type > > Sp(const volScalarField::Internal &, const VolField< Type > &)
List< word > wordList
A List of words.
const dimensionSet dimEnergy
const HashTable< dimensionSet > & dimensions()
Get the table of dimension sets.
word name(const bool)
Return a word representation of a bool.
const dimensionSet dimless
const dimensionSet dimTemperature
const dimensionSet dimMass
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
fluidMulticomponentThermo & thermo