variable Class Reference

Variable heat transfer model depending on local values. The Nusselt number is calculated as: More...

Inheritance diagram for variable:
Collaboration diagram for variable:

Public Member Functions

 TypeName ("variable")
 Runtime type information. More...
 
 variable (const dictionary &dict, const fvMesh &mesh)
 Construct from dictionary and mesh. More...
 
 variable (const dictionary &dict, const interRegionModel &model)
 Construct from dictionary and model. More...
 
virtual ~variable ()
 Destructor. More...
 
virtual tmp< volScalarFieldhtc () const
 Get the heat transfer coefficient. More...
 
virtual void correct ()
 Correct the heat transfer coefficient. More...
 
virtual bool read (const dictionary &dict)
 Read dictionary. More...
 
- Public Member Functions inherited from heatTransferCoefficientModel
 TypeName ("heatTransferCoefficientModel")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, heatTransferCoefficientModel, mesh,(const dictionary &dict, const fvMesh &mesh),(dict, mesh))
 
 declareRunTimeSelectionTable (autoPtr, heatTransferCoefficientModel, model,(const dictionary &dict, const interRegionModel &model),(dict, model))
 
 heatTransferCoefficientModel (const word &modelType, const dictionary &dict, const fvMesh &mesh)
 Construct from dictionary and mesh. More...
 
 heatTransferCoefficientModel (const word &modelType, const dictionary &dict, const interRegionModel &model)
 Construct from dictionary and model. More...
 
 heatTransferCoefficientModel (const heatTransferCoefficientModel &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~heatTransferCoefficientModel ()
 Destructor. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from heatTransferCoefficientModel
static autoPtr< heatTransferCoefficientModelNew (const dictionary &dict, const fvMesh &mesh)
 Select from dictionary and mesh. More...
 
static autoPtr< heatTransferCoefficientModelNew (const dictionary &dict, const interRegionModel &model)
 Select from dictionary and model. More...
 
- Protected Attributes inherited from heatTransferCoefficientModel
const fvMeshmesh_
 Reference to the mesh. More...
 

Detailed Description

Variable heat transfer model depending on local values. The Nusselt number is calculated as:

\[ Nu = a*Re^b*Pr^c \]

And the heat transfer coefficient is calculated as:

\[ htc = Nu*\kappa/L \]

Where:

$ \kappa $ = Conductivity
$ L $ = Length scale
Usage
Example usage:
{
    heatTransferCoefficientModel variable;

    a           1;
    b           2;
    c           3;
    Pr          0.7;
    L           1e-3;
}

Definition at line 89 of file variable.H.

Constructor & Destructor Documentation

◆ variable() [1/2]

variable ( const dictionary dict,
const fvMesh mesh 
)

Construct from dictionary and mesh.

Definition at line 66 of file variable.C.

References dict.

◆ variable() [2/2]

variable ( const dictionary dict,
const interRegionModel model 
)

Construct from dictionary and model.

Definition at line 98 of file variable.C.

References dict.

◆ ~variable()

~variable ( )
virtual

Destructor.

Definition at line 112 of file variable.C.

Member Function Documentation

◆ TypeName()

TypeName ( "variable"  )

Runtime type information.

◆ htc()

virtual tmp<volScalarField> htc ( ) const
inlinevirtual

Get the heat transfer coefficient.

Implements heatTransferCoefficientModel.

Definition at line 145 of file variable.H.

◆ correct()

void correct ( )
virtual

Correct the heat transfer coefficient.

Implements heatTransferCoefficientModel.

Definition at line 118 of file variable.C.

References thermophysicalTransportModel::kappaEff(), Foam::mag(), fluidThermophysicalTransportModel::momentumTransport(), Foam::pow(), Foam::Re(), and U.

Here is the call graph for this function:

◆ read()

bool read ( const dictionary dict)
virtual

Read dictionary.

Reimplemented from heatTransferCoefficientModel.

Definition at line 137 of file variable.C.

References dict, and heatTransferCoefficientModel::read().

Here is the call graph for this function:

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