1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software; you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation; either version 2 of the License, or (at your
14 option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM; if not, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 Foam::heatTransferModel
29 Foam::heatTransferModel
31 \*---------------------------------------------------------------------------*/
33 #ifndef heatTransferModel_H
34 #define heatTransferModel_H
36 #include "IOdictionary.H"
38 #include "runTimeSelectionTables.H"
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 /*---------------------------------------------------------------------------*\
46 Class heatTransferModel Declaration
47 \*---------------------------------------------------------------------------*/
49 class heatTransferModel
57 const dictionary& dict_;
61 //- Runtime type information
62 TypeName("heatTransferModel");
65 // Declare runtime constructor selection table
67 declareRunTimeSelectionTable
73 const dictionary& dict
81 //- Construct from dictionary
84 const dictionary& dict
90 virtual ~heatTransferModel();
95 static autoPtr<heatTransferModel> New
97 const dictionary& dict
103 //- heat transfer on/off
104 virtual bool heatTransfer() const = 0;
106 //- Return Nusselt Number
109 const scalar ReynoldsNumber,
110 const scalar PrandtlNumber
113 //- Return the heat transfer relaxation time
114 virtual scalar relaxationTime
116 const scalar liquidDensity,
117 const scalar diameter,
118 const scalar liquidcL,
120 const scalar ReynoldsNumber,
121 const scalar PrandtlNumber
124 //- Return the correction function f...
125 virtual scalar fCorrection(const scalar z) const = 0;
130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
132 } // End namespace Foam
134 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
138 // ************************************************************************* //