A base class for heat transfer coefficient models. More...
Public Member Functions | |
TypeName ("heatTransferCoeffModel") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, heatTransferCoeffModel, dictionary,(const dictionary &dict, const fvMesh &mesh, const word &TName),(dict, mesh, TName)) | |
heatTransferCoeffModel (const dictionary &dict, const fvMesh &mesh, const word &TName) | |
Construct from components. More... | |
heatTransferCoeffModel (const heatTransferCoeffModel &)=delete | |
No copy construct. More... | |
void | operator= (const heatTransferCoeffModel &)=delete |
No copy assignment. More... | |
virtual | ~heatTransferCoeffModel ()=default |
Destructor. More... | |
const fvMesh & | mesh () const noexcept |
Return const reference to the mesh. More... | |
const labelHashSet & | patchSet () const noexcept |
Return const reference to wall patches to process. More... | |
const word & | TName () const noexcept |
Return const reference to name of temperature field. More... | |
const word & | qrName () const noexcept |
Return const reference to name of radiative heat-flux field. More... | |
tmp< FieldField< Field, scalar > > | q () const |
Return boundary fields of heat-flux field. More... | |
virtual bool | calc (volScalarField &result, const FieldField< Field, scalar > &q) |
Calculate the heat transfer coefficient field and return true if successful. More... | |
virtual bool | read (const dictionary &dict) |
Read from dictionary. More... | |
Static Public Member Functions | |
static autoPtr< heatTransferCoeffModel > | New (const dictionary &dict, const fvMesh &mesh, const word &TName) |
Return a reference to the selected heat transfer coefficient model. More... | |
Protected Member Functions | |
virtual void | htc (volScalarField &htc, const FieldField< Field, scalar > &q)=0 |
Set the heat transfer coefficient. More... | |
Protected Attributes | |
const fvMesh & | mesh_ |
Const reference to the mesh. More... | |
labelHashSet | patchSet_ |
List of (wall) patches to process. More... | |
const word | TName_ |
Name of temperature field. More... | |
word | qrName_ |
Name of radiative heat flux field. More... | |
A base class for heat transfer coefficient models.
Definition at line 57 of file heatTransferCoeffModel.H.
heatTransferCoeffModel | ( | const dictionary & | dict, |
const fvMesh & | mesh, | ||
const word & | TName | ||
) |
Construct from components.
Definition at line 39 of file heatTransferCoeffModel.C.
|
delete |
No copy construct.
|
virtualdefault |
Destructor.
|
protectedpure virtual |
Set the heat transfer coefficient.
Implemented in ReynoldsAnalogy, fixedReferenceTemperature, and localReferenceTemperature.
TypeName | ( | "heatTransferCoeffModel" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
heatTransferCoeffModel | , | ||
dictionary | , | ||
(const dictionary &dict, const fvMesh &mesh, const word &TName) | , | ||
(dict, mesh, TName) | |||
) |
|
static |
Return a reference to the selected heat transfer coefficient model.
Definition at line 28 of file heatTransferCoeffModelNew.C.
References dict, Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInLookup, Foam::Info, and mesh.
Referenced by heatTransferCoeffModel::q().
|
delete |
No copy assignment.
|
inlinenoexcept |
Return const reference to the mesh.
Definition at line 169 of file heatTransferCoeffModel.H.
References heatTransferCoeffModel::mesh_.
|
inlinenoexcept |
Return const reference to wall patches to process.
Definition at line 177 of file heatTransferCoeffModel.H.
References heatTransferCoeffModel::patchSet_.
|
inlinenoexcept |
Return const reference to name of temperature field.
Definition at line 185 of file heatTransferCoeffModel.H.
References heatTransferCoeffModel::TName_.
|
inlinenoexcept |
Return const reference to name of radiative heat-flux field.
Definition at line 193 of file heatTransferCoeffModel.H.
References heatTransferCoeffModel::qrName_.
Foam::tmp< Foam::FieldField< Foam::Field, Foam::scalar > > q | ( | ) | const |
Return boundary fields of heat-flux field.
Definition at line 55 of file heatTransferCoeffModel.C.
References Foam::constant::atomic::alpha, alphaEff(), objectRegistry::cfindObject(), dictionary::dictName(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, objectRegistry::foundObject(), he, objectRegistry::lookupObject(), heatTransferCoeffModel::mesh_, heatTransferCoeffModel::New(), Foam::nl, heatTransferCoeffModel::patchSet_, heatTransferCoeffModel::qrName_, Foam::T(), heatTransferCoeffModel::TName_, turb, and Foam::Zero.
|
virtual |
Calculate the heat transfer coefficient field and return true if successful.
Definition at line 131 of file heatTransferCoeffModel.C.
|
virtual |
Read from dictionary.
Reimplemented in ReynoldsAnalogy, faceZoneReferenceTemperature, fixedReferenceTemperature, and localReferenceTemperature.
Definition at line 142 of file heatTransferCoeffModel.C.
References dict, dictionary::get(), and dictionary::readIfPresent().
Referenced by faceZoneReferenceTemperature::read(), and ReynoldsAnalogy::read().
|
protected |
Const reference to the mesh.
Definition at line 66 of file heatTransferCoeffModel.H.
Referenced by heatTransferCoeffModel::mesh(), heatTransferCoeffModel::q(), and ReynoldsAnalogy::rho().
|
protected |
List of (wall) patches to process.
Definition at line 71 of file heatTransferCoeffModel.H.
Referenced by heatTransferCoeffModel::patchSet(), and heatTransferCoeffModel::q().
|
protected |
Name of temperature field.
Definition at line 76 of file heatTransferCoeffModel.H.
Referenced by heatTransferCoeffModel::q(), and heatTransferCoeffModel::TName().
|
protected |
Name of radiative heat flux field.
Definition at line 81 of file heatTransferCoeffModel.H.
Referenced by heatTransferCoeffModel::q(), and heatTransferCoeffModel::qrName().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.