90 #ifndef interRegionHeatTransferModel_H 91 #define interRegionHeatTransferModel_H 107 class interRegionHeatTransferModel
109 public interRegionOption
187 TypeName(
"interRegionHeatTransferModel");
196 const word& modelType,
Intermediate class for handling inter-region heat exchanges.
TypeName("interRegionHeatTransferModel")
Runtime type information.
virtual void correct(volScalarField &field)
const fvMesh & mesh() const noexcept
Return const access to the mesh database.
void setNbrModel()
Set the neighbour interRegionHeatTransferModel.
word TName_
Name of operand temperature field.
const meshToMesh & meshInterp() const
Return const access to the mapToMap pointer.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
interRegionHeatTransferModel(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from dictionary.
word nbrModelName_
Name of the model in the neighbour mesh.
Class to calculate the cell-addressing between two overlapping meshes.
virtual void addSup(fvMatrix< scalar > &eqn, const label fieldi)
Source term to energy equation.
bool firstIter_
Flag to determine the first iteration.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
const interRegionHeatTransferModel & nbrModel() const
Return const access to the neighbour model.
virtual void calculateHtc()=0
Calculate heat transfer coefficient.
volScalarField htc_
Heat transfer coefficient [W/m2/k] times area/volume [1/m].
void correct()
Correct to calculate the inter-region heat transfer coefficient.
Generic templated field type.
A class for handling words, derived from Foam::string.
label timeIndex_
Time index - used for updating htc.
A special matrix type and solver, designed for finite volume solutions of scalar equations. Face addressing is used to make all matrix assembly and solution loops vectorise.
const word & name() const noexcept
Return const access to the source name.
const volScalarField & htc() const
Return the heat transfer coefficient.
tmp< Field< Type > > interpolate(const interRegionHeatTransferModel &nbrModel, const Field< Type > &field) const
Interpolate field with nbrModel specified.
bool semiImplicit_
Flag to activate semi-implicit coupling.
word TNbrName_
Name of operand neighbour temperature field.
const word & nbrRegionName() const
Return const access to the neighbour region name.
interRegionHeatTransferModel * nbrModel_
Pointer to neighbour interRegionHeatTransferModel.
Mesh data needed to do the Finite Volume discretisation.
A class for managing temporary objects.
virtual bool read(const dictionary &dict)
Read source dictionary.
virtual ~interRegionHeatTransferModel()=default
Destructor.