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:
[legend]
Collaboration diagram for ReynoldsAnalogy:
[legend]

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
 The mesh reference. More...
 
const labelHashSetpatchSet () const
 Wall patches to process. More...
 
const wordTName () const
 Temperature name. More...
 
const wordqrName () const
 Name of radiative heat flux. More...
 
virtual bool read (const dictionary &dict)
 Read from dictionary. More...
 
virtual bool calc (volScalarField &result, const FieldField< Field, scalar > &q)
 
tmp< FieldField< Field, scalar > > q () const
 Return q boundary fields. More...
 

Protected Member Functions

virtual tmp< Field< scalar > > rho (const label patchi) const
 
virtual tmp< Field< scalar > > Cp (const label patchi) const
 
virtual tmp< volSymmTensorFielddevReff () const
 
tmp< FieldField< Field, scalar > > Cf () const
 
virtual void htc (volScalarField &htc, const FieldField< Field, scalar > &q)
 Set the heat transfer coefficient. More...
 
virtual void htc (volScalarField &htc, const FieldField< Field, scalar > &q)=0
 Set the heat transfer coefficient. More...
 

Protected Attributes

word UName_
 Name of velocity field. More...
 
vector URef_
 Reference velocity. More...
 
word rhoName_
 Name of density field. More...
 
scalar rhoRef_
 Reference 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_
 Mesh reference. More...
 
labelHashSet patchSet_
 Optional list of (wall) patches to process. More...
 
const word TName_
 Temperature name. More...
 
word qrName_
 Name of radiative heat flux. 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_\infty |U|^2} \]

as:

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

where

\( h \) = Convective heat transfer coefficient of the flow
\( \rho_\infty \) = Reference fluid density
\( c_{p,\infty} \) = Reference specific heat capacity at constant pressure
\( U_{\infty} \) = Reference velocity
\( C_f \) = Skin friction coefficient
\( \tau_w \) = Wall shear stress
Usage
Minimal example by using system/controlDict.functions:
heatTransferCoeff1
{
    // Mandatory and other optional entries
    ...
    htcModel        ReynoldsAnalogy;

    // Conditional mandatory entries (runtime modifiable)
    UInf            (10 0 0);

    // Conditional optional entries (runtime modifiable)
    Cp              <CpName>;
    rho             <rhoName>;

    // mandatory if Cp == CpInf
    CpInf           1005;

    // mandatory if rho == rhoInf
    rhoInf          1;
}

where the entries mean:

Property Description Type Reqd Dflt
type Model name: ReynoldsAnalogy word yes -
UInf Reference velocity scalar yes -
Cp Name of reference specific heat capacity word no Cp
CpInf Reference specific heat capacity value scalar cndtnl -
rho Name of reference fluid density word no rho
rhoInf Reference fluid density value scalar cndtnl -
Note
  • to use a reference Cp, set Cp to CpInf
  • to use a reference rho, set rho to rhoInf
See also
Source files

Definition at line 186 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 196 of file ReynoldsAnalogy.C.

References dict, and ReynoldsAnalogy::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::Field< Foam::scalar > > rho ( const label  patchi) const
protectedvirtual

Definition at line 54 of file ReynoldsAnalogy.C.

References fvMesh::boundary(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, objectRegistry::foundObject(), objectRegistry::lookupObject(), heatTransferCoeffModel::mesh_, n, heatTransferCoeffModel::New(), rho, ReynoldsAnalogy::rhoName_, ReynoldsAnalogy::rhoRef_, and UPtrList< T >::size().

Here is the call graph for this function:

◆ Cp()

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

Definition at line 76 of file ReynoldsAnalogy.C.

References basicThermo::dictName, Foam::exit(), Foam::FatalError, FatalErrorInFunction, n, and Foam::New().

Here is the call graph for this function:

◆ devReff()

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

Definition at line 103 of file ReynoldsAnalogy.C.

References Foam::dev(), basicThermo::dictName, Foam::dimViscosity, Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::fvc::grad(), nu, transportProperties(), turb, Foam::twoSymm(), and U.

Here is the call graph for this function:

◆ Cf()

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

Definition at line 161 of file ReynoldsAnalogy.C.

References forAll, Foam::mag(), Foam::magSqr(), Foam::New(), fvPatch::nf(), fvPatchField< Type >::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 245 of file ReynoldsAnalogy.C.

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

Referenced by ReynoldsAnalogy::htc().

Here is the call graph for this function:
Here is the caller 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 217 of file ReynoldsAnalogy.C.

References dict, and kEpsilonLopesdaCosta< BasicTurbulenceModel >::read().

Referenced by ReynoldsAnalogy::ReynoldsAnalogy().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ UName_

word UName_
protected

Name of velocity field.

Definition at line 195 of file ReynoldsAnalogy.H.

◆ URef_

vector URef_
protected

Reference velocity.

Definition at line 198 of file ReynoldsAnalogy.H.

◆ rhoName_

word rhoName_
protected

Name of density field.

Definition at line 201 of file ReynoldsAnalogy.H.

Referenced by ReynoldsAnalogy::rho().

◆ rhoRef_

scalar rhoRef_
protected

Reference density.

Definition at line 204 of file ReynoldsAnalogy.H.

Referenced by ReynoldsAnalogy::rho().

◆ CpName_

word CpName_
protected

Name of specific heat capacity field.

Definition at line 207 of file ReynoldsAnalogy.H.

◆ CpRef_

scalar CpRef_
protected

Reference specific heat capacity.

Definition at line 210 of file ReynoldsAnalogy.H.


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