constant Class Reference

Constant heat transfer model. The heat transfer coefficient [W/m^2/K] (htc) must be provided as a value in the coefficients dictionary or as a field in constant. More...

Inheritance diagram for constant:
Collaboration diagram for constant:

Public Member Functions

 TypeName ("constant")
 Runtime type information. More...
 
 constant (const dictionary &dict, const fvMesh &mesh)
 Construct from dictionary and mesh. More...
 
 constant (const dictionary &dict, const interRegionModel &model)
 Construct from dictionary and model. More...
 
virtual ~constant ()
 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

Constant heat transfer model. The heat transfer coefficient [W/m^2/K] (htc) must be provided as a value in the coefficients dictionary or as a field in constant.

Usage
Example usage:
{
    heatTransferCoefficientModel constant;

    htc         1e5;
}

Definition at line 61 of file constant.H.

Constructor & Destructor Documentation

◆ constant() [1/2]

constant ( const dictionary dict,
const fvMesh mesh 
)

Construct from dictionary and mesh.

Definition at line 91 of file constant.C.

References dict.

◆ constant() [2/2]

constant ( const dictionary dict,
const interRegionModel model 
)

Construct from dictionary and model.

Definition at line 105 of file constant.C.

◆ ~constant()

~constant ( )
virtual

Destructor.

Definition at line 117 of file constant.C.

Member Function Documentation

◆ TypeName()

TypeName ( "constant"  )

Runtime type information.

◆ htc()

Foam::tmp< Foam::volScalarField > htc ( ) const
virtual

Get the heat transfer coefficient.

Implements heatTransferCoefficientModel.

Definition at line 124 of file constant.C.

References GeometricField< Type, PatchField, GeoMesh >::New(), and Foam::typedName().

Here is the call graph for this function:

◆ correct()

void correct ( )
virtual

Correct the heat transfer coefficient.

Implements heatTransferCoefficientModel.

Definition at line 137 of file constant.C.

◆ read()

bool read ( const dictionary dict)
virtual

Read dictionary.

Reimplemented from heatTransferCoefficientModel.

Definition at line 141 of file constant.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: