ReynoldsAnalogy Class Reference

Heat transfer coefficient calculation based on Reynolds Analogy. 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...
 
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...
 
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 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...
 
 ReynoldsAnalogy (const ReynoldsAnalogy &)=delete
 No copy construct. More...
 
void operator= (const ReynoldsAnalogy &)=delete
 No copy assignment. More...
 
- Protected Member Functions inherited from heatTransferCoeffModel
 heatTransferCoeffModel (const heatTransferCoeffModel &)=delete
 No copy construct. More...
 
void operator= (const heatTransferCoeffModel &)=delete
 No copy assignment. 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 (default = qr) 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.

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 \]

Usage
Example of function object specification:
    type            heatTransferCoeff;
    libs            (fieldFunctionObjects);
    ...
    htcModel        ReynoldsAnalogy;
    UInf            (20 0 0);
    Cp              CpInf;
    CpInf           1005;
    ...

Where the entries comprise:

Property Description Required Default value
type type name: heatTransferCoeff yes
htcModel selected htc model yes
UInf reference velocity yes
Cp specific heat capacity field name no
rho density field name no

Note:

  • to use a reference Cp, set Cp to CpInf
  • to use a reference rho, set rho to rhoInf
Source files
See also
Foam::heatTransferCoeffModel

Definition at line 125 of file ReynoldsAnalogy.H.

Constructor & Destructor Documentation

◆ ReynoldsAnalogy() [1/2]

ReynoldsAnalogy ( const ReynoldsAnalogy )
protecteddelete

No copy construct.

◆ ReynoldsAnalogy() [2/2]

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

Construct from components.

Definition at line 198 of file ReynoldsAnalogy.C.

References dict, and Foam::read().

Here is the call graph for this function:

◆ ~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(), ReynoldsAnalogy::rhoName_, and ReynoldsAnalogy::rhoRef_.

Here is the call graph for this function:

◆ Cp()

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

Definition at line 77 of file ReynoldsAnalogy.C.

References dictionary::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 104 of file ReynoldsAnalogy.C.

References Foam::dev(), dictionary::dictName(), Foam::dimViscosity, Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::fvc::grad(), transportModel::nu(), 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 162 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 247 of file ReynoldsAnalogy.C.

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

Here is the call graph for this function:

◆ operator=()

void operator= ( const ReynoldsAnalogy )
protecteddelete

No copy assignment.

◆ TypeName()

TypeName ( "ReynoldsAnalogy"  )

Runtime type information.

◆ read()

bool read ( const dictionary dict)
virtual

Read from dictionary.

Reimplemented from heatTransferCoeffModel.

Definition at line 219 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 134 of file ReynoldsAnalogy.H.

◆ URef_

vector URef_
protected

Reference velocity.

Definition at line 137 of file ReynoldsAnalogy.H.

◆ rhoName_

word rhoName_
protected

Name of density field.

Definition at line 140 of file ReynoldsAnalogy.H.

Referenced by ReynoldsAnalogy::rho().

◆ rhoRef_

scalar rhoRef_
protected

Reference density.

Definition at line 143 of file ReynoldsAnalogy.H.

Referenced by ReynoldsAnalogy::rho().

◆ CpName_

word CpName_
protected

Name of specific heat capacity field.

Definition at line 146 of file ReynoldsAnalogy.H.

◆ CpRef_

scalar CpRef_
protected

Reference specific heat capacity.

Definition at line 149 of file ReynoldsAnalogy.H.


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