ReynoldsAnalogy Class Reference

Heat transfer coefficient calculation based on Reynolds Analogy, which is used to relate turbulent momentum and heat transfer. More...

Inheritance diagram for ReynoldsAnalogy:
Collaboration diagram for ReynoldsAnalogy:

Public Member Functions

 TypeName ("ReynoldsAnalogy")
 Runtime type information. More...
 
 ReynoldsAnalogy (const dictionary &dict, const fvMesh &mesh, const word &TName)
 Construct from components. More...
 
 ReynoldsAnalogy (const ReynoldsAnalogy &)=delete
 No copy construct. More...
 
void operator= (const ReynoldsAnalogy &)=delete
 No copy assignment. More...
 
virtual ~ReynoldsAnalogy ()=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 tmp< scalarFieldrho (const label patchi) const
 Return fluid density field [kg/m^3]. More...
 
virtual tmp< scalarFieldCp (const label patchi) const
 Return heat capacity at constant pressure [J/kg/K]. More...
 
virtual tmp< volSymmTensorFielddevReff () const
 Return the effective stress tensor including the laminar stress. More...
 
tmp< FieldField< Field, scalar > > Cf () const
 Return skin friction coefficient field [-]. More...
 
virtual void htc (volScalarField &htc, const FieldField< Field, scalar > &q)
 Set the heat transfer coefficient. More...
 

Protected Attributes

word UName_
 Name of velocity field. More...
 
vector URef_
 Reference velocity. More...
 
word rhoName_
 Name of fluid density field. More...
 
scalar rhoRef_
 Reference fluid density. More...
 
word CpName_
 Name of specific heat capacity field. More...
 
scalar CpRef_
 Reference specific heat capacity. 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 based on Reynolds Analogy, which is used to relate turbulent momentum and heat transfer.

The heat transfer coefficient is derived from the skin friction coefficient:

\[ C_f = \frac{\tau_w}{0.5 \rho_{ref} |U|^2} \]

as:

\[ h = 0.5 \rho_{ref} c_{p,ref} |U_{ref}| C_f \]

where

$ h $ = Heat transfer coefficient [W/m^2/K]
$ \rho_{ref} $ = Reference fluid density [kg/m^3]
$ c_{p,ref} $ = Reference specific heat capacity at constant pressure [J/kg/K]
$ U_{ref} $ = Reference velocity [m/s]
$ C_f $ = Skin friction coefficient [-]
$ \tau_w $ = Wall shear stress [m^2/s^2]
Usage
Minimal example by using system/controlDict.functions:
heatTransferCoeff1
{
    // Inherited entries
    ...

    // Mandatory entries
    htcModel        ReynoldsAnalogy;
    UInf            <vector>;

    // Optional entries
    U               <word>;
    Cp              <word>;
    rho             <word>;

    // Conditional mandatory entries

        // when Cp == CpInf
        CpInf       <scalar>;

        // when rho == rhoInf
        rhoInf      <scalar>;
}

where the entries mean:

Property Description Type Reqd Deflt
type Model name: ReynoldsAnalogy word yes -
UInf Reference velocity vector yes -
U Name of velocity field word no U
Cp Name of reference specific heat capacity word no Cp
CpInf Reference specific heat capacity value scalar choice -
rho Name of fluid density field word no rho
rhoInf Reference fluid density value scalar choice -
Note
  • In order to use a reference Cp, set Cp to CpInf.
  • In order to use a reference rho, set rho to rhoInf.
Source files

Definition at line 187 of file ReynoldsAnalogy.H.

Constructor & Destructor Documentation

◆ ReynoldsAnalogy() [1/2]

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

Construct from components.

Definition at line 211 of file ReynoldsAnalogy.C.

References dict, and Foam::read().

Here is the call graph for this function:

◆ ReynoldsAnalogy() [2/2]

ReynoldsAnalogy ( const ReynoldsAnalogy )
delete

No copy construct.

◆ ~ReynoldsAnalogy()

virtual ~ReynoldsAnalogy ( )
virtualdefault

Destructor.

Member Function Documentation

◆ rho()

Foam::tmp< Foam::scalarField > rho ( const label  patchi) const
protectedvirtual

◆ Cp()

Foam::tmp< Foam::scalarField > Cp ( const label  patchi) const
protectedvirtual

Return heat capacity at constant pressure [J/kg/K].

Definition at line 69 of file ReynoldsAnalogy.C.

References dictionary::dictName(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, n, tmp< T >::New(), and pp().

Here is the call graph for this function:

◆ devReff()

Foam::tmp< Foam::volSymmTensorField > devReff ( ) const
protectedvirtual

Return the effective stress tensor including the laminar stress.

Definition at line 96 of file ReynoldsAnalogy.C.

References Foam::devTwoSymm(), dictionary::dictName(), Foam::dimViscosity, Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::fvc::grad(), nu, transportProperties(), turb, and U.

Here is the call graph for this function:

◆ Cf()

Foam::tmp< Foam::FieldField< Foam::Field, Foam::scalar > > Cf ( ) const
protected

Return skin friction coefficient field [-].

Definition at line 154 of file ReynoldsAnalogy.C.

References forAll, Foam::mag(), Foam::magSqr(), Foam::New(), fvPatch::nf(), fvPatchFieldBase::patch(), R, U, and Foam::Zero.

Here is the call graph for this function:

◆ htc()

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

Set the heat transfer coefficient.

Implements heatTransferCoeffModel.

Definition at line 188 of file ReynoldsAnalogy.C.

References GeometricField< Type, PatchField, GeoMesh >::boundaryFieldRef(), Cp, Foam::mag(), and rho.

Here is the call graph for this function:

◆ TypeName()

TypeName ( "ReynoldsAnalogy"  )

Runtime type information.

◆ operator=()

void operator= ( const ReynoldsAnalogy )
delete

No copy assignment.

◆ read()

bool read ( const dictionary dict)
virtual

Read from dictionary.

Reimplemented from heatTransferCoeffModel.

Definition at line 232 of file ReynoldsAnalogy.C.

References dict, and heatTransferCoeffModel::read().

Here is the call graph for this function:

Member Data Documentation

◆ UName_

word UName_
protected

Name of velocity field.

Definition at line 198 of file ReynoldsAnalogy.H.

◆ URef_

vector URef_
protected

Reference velocity.

Definition at line 203 of file ReynoldsAnalogy.H.

◆ rhoName_

word rhoName_
protected

Name of fluid density field.

Definition at line 208 of file ReynoldsAnalogy.H.

Referenced by ReynoldsAnalogy::rho().

◆ rhoRef_

scalar rhoRef_
protected

Reference fluid density.

Definition at line 213 of file ReynoldsAnalogy.H.

Referenced by ReynoldsAnalogy::rho().

◆ CpName_

word CpName_
protected

Name of specific heat capacity field.

Definition at line 218 of file ReynoldsAnalogy.H.

◆ CpRef_

scalar CpRef_
protected

Reference specific heat capacity.

Definition at line 223 of file ReynoldsAnalogy.H.


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