fixedReferenceTemperature Class Reference

Heat transfer coefficient calculation that employs a fixed reference temperature. More...

Inheritance diagram for fixedReferenceTemperature:
Collaboration diagram for fixedReferenceTemperature:

Public Member Functions

 TypeName ("fixedReferenceTemperature")
 Runtime type information. More...
 
 fixedReferenceTemperature (const dictionary &dict, const fvMesh &mesh, const word &TName)
 Construct from components. More...
 
 fixedReferenceTemperature (const fixedReferenceTemperature &)=delete
 No copy construct. More...
 
void operator= (const fixedReferenceTemperature &)=delete
 No copy assignment. More...
 
virtual ~fixedReferenceTemperature ()=default
 Destructor. More...
 
virtual bool read (const dictionary &dict)
 Read from dictionary. More...
 
- Public Member Functions inherited from heatTransferCoeffModel
 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 fvMeshmesh () const noexcept
 Return const reference to the mesh. More...
 
const labelListpatchIDs () const noexcept
 Return const reference to wall patches to process. More...
 
const wordTName () const noexcept
 Return const reference to name of temperature field. More...
 
const wordqrName () 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...
 

Protected Member Functions

virtual void htc (volScalarField &htc, const FieldField< Field, scalar > &q)
 Set the heat transfer coefficient. More...
 

Protected Attributes

scalar TRef_
 Reference temperature [K]. More...
 
- Protected Attributes inherited from heatTransferCoeffModel
const fvMeshmesh_
 Const reference to the mesh. More...
 
labelList patchIDs_
 List of (wall) patches to process (selected by name) More...
 
const word TName_
 Name of temperature field. More...
 
word qrName_
 Name of radiative heat flux field. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from heatTransferCoeffModel
static autoPtr< heatTransferCoeffModelNew (const dictionary &dict, const fvMesh &mesh, const word &TName)
 Return a reference to the selected heat transfer coefficient model. More...
 

Detailed Description

Heat transfer coefficient calculation that employs a fixed reference temperature.

The heat transfer coefficient is calculated by:

\[ h = \frac{q}{T_{ref} - T_p} \]

where

$ h $ = Heat transfer coefficient [W/m^2/K]
$ q $ = Heat flux [W/m^2]
$ T_{ref} $ = User-specified reference temperature [K]
$ T_p $ = Patch temperature field [K]
Usage
Minimal example by using system/controlDict.functions:
heatTransferCoeff1
{
    // Inherited entries
    ...

    // Mandatory entries
    htcModel        fixedReferenceTemperature;
    Tref            <scalar>;
}

where the entries mean:

Property Description Type Reqd Deflt
type Model name: fixedReferenceTemperature word yes -
Tref User-specied reference temperature scalar yes -
Source files

Definition at line 118 of file fixedReferenceTemperature.H.

Constructor & Destructor Documentation

◆ fixedReferenceTemperature() [1/2]

fixedReferenceTemperature ( const dictionary dict,
const fvMesh mesh,
const word TName 
)

Construct from components.

Definition at line 65 of file fixedReferenceTemperature.C.

References dict, and Foam::blockMeshTools::read().

Here is the call graph for this function:

◆ fixedReferenceTemperature() [2/2]

No copy construct.

◆ ~fixedReferenceTemperature()

virtual ~fixedReferenceTemperature ( )
virtualdefault

Destructor.

Member Function Documentation

◆ htc()

void htc ( volScalarField htc,
const FieldField< Field, scalar > &  q 
)
protectedvirtual

Set the heat transfer coefficient.

Implements heatTransferCoeffModel.

Definition at line 44 of file fixedReferenceTemperature.C.

References GeometricField< Type, PatchField, GeoMesh >::boundaryFieldRef(), and T.

Here is the call graph for this function:

◆ TypeName()

TypeName ( "fixedReferenceTemperature"  )

Runtime type information.

◆ operator=()

void operator= ( const fixedReferenceTemperature )
delete

No copy assignment.

◆ read()

bool read ( const dictionary dict)
virtual

Read from dictionary.

Reimplemented from heatTransferCoeffModel.

Definition at line 81 of file fixedReferenceTemperature.C.

References dict, and Foam::blockMeshTools::read().

Here is the call graph for this function:

Member Data Documentation

◆ TRef_

scalar TRef_
protected

Reference temperature [K].

Definition at line 129 of file fixedReferenceTemperature.H.


The documentation for this class was generated from the following files: