58 const scalar eps = ROOTVSMALL;
65 htcBf[patchi] =
q[patchi]/(tTc - Tbf[patchi] + eps);
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
A field of fields is a PtrList of fields with reference counting.
GeometricBoundaryField< scalar, fvPatchField, volMesh > Boundary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Mesh data needed to do the Finite Volume discretisation.
A base class for heat transfer coefficient models.
const word TName_
Name of temperature field.
const fvMesh & mesh() const noexcept
Return const reference to the mesh.
const fvMesh & mesh_
Const reference to the mesh.
heatTransferCoeffModel(const dictionary &dict, const fvMesh &mesh, const word &TName)
Construct from components.
virtual bool read(const dictionary &dict)
Read the function-object dictionary.
tmp< FieldField< Field, scalar > > q() const
Return boundary fields of heat-flux field.
const word & TName() const noexcept
Return const reference to name of temperature field.
labelList patchIDs_
List of (wall) patches to process (selected by name).
Heat transfer coefficient calculation that employs the patch internal field as the reference temperat...
virtual bool read(const dictionary &dict)
Read the function-object dictionary.
localReferenceTemperature(const localReferenceTemperature &)=delete
No copy construct.
virtual void htc(volScalarField &htc, const FieldField< Field, scalar > &q)
Set the heat transfer coefficient.
const Type & lookupObject(const word &name, const bool recursive=false) const
Lookup and return const reference to the object of the given Type. Fatal if not found or the wrong ty...
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
A namespace for various heat transfer coefficient model implementations.
bool read(const char *buf, int32_t &val)
Same as readInt32.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)