|
|
|
heatTransferModel.HGo to the documentation of this file.00001 /*---------------------------------------------------------------------------*\ 00002 ========= | 00003 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 00004 \\ / O peration | 00005 \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd. 00006 \\/ M anipulation | 00007 ------------------------------------------------------------------------------- 00008 License 00009 This file is part of OpenFOAM. 00010 00011 OpenFOAM is free software; you can redistribute it and/or modify it 00012 under the terms of the GNU General Public License as published by the 00013 Free Software Foundation; either version 2 of the License, or (at your 00014 option) any later version. 00015 00016 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT 00017 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00018 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 00019 for more details. 00020 00021 You should have received a copy of the GNU General Public License 00022 along with OpenFOAM; if not, write to the Free Software Foundation, 00023 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00024 00025 Class 00026 Foam::heatTransferModel 00027 00028 Description 00029 Foam::heatTransferModel 00030 00031 \*---------------------------------------------------------------------------*/ 00032 00033 #ifndef heatTransferModel_H 00034 #define heatTransferModel_H 00035 00036 #include "IOdictionary.H" 00037 #include "autoPtr.H" 00038 #include "runTimeSelectionTables.H" 00039 00040 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00041 00042 namespace Foam 00043 { 00044 00045 /*---------------------------------------------------------------------------*\ 00046 Class heatTransferModel Declaration 00047 \*---------------------------------------------------------------------------*/ 00048 00049 class heatTransferModel 00050 00051 { 00052 00053 protected: 00054 00055 // Protected data 00056 00057 const dictionary& dict_; 00058 00059 public: 00060 00061 //- Runtime type information 00062 TypeName("heatTransferModel"); 00063 00064 00065 // Declare runtime constructor selection table 00066 00067 declareRunTimeSelectionTable 00068 ( 00069 autoPtr, 00070 heatTransferModel, 00071 dictionary, 00072 ( 00073 const dictionary& dict 00074 ), 00075 (dict) 00076 ); 00077 00078 00079 // Constructors 00080 00081 //- Construct from dictionary 00082 heatTransferModel 00083 ( 00084 const dictionary& dict 00085 ); 00086 00087 00088 // Destructor 00089 00090 virtual ~heatTransferModel(); 00091 00092 00093 // Selector 00094 00095 static autoPtr<heatTransferModel> New 00096 ( 00097 const dictionary& dict 00098 ); 00099 00100 00101 // Member Functions 00102 00103 //- heat transfer on/off 00104 virtual bool heatTransfer() const = 0; 00105 00106 //- Return Nusselt Number 00107 virtual scalar Nu 00108 ( 00109 const scalar ReynoldsNumber, 00110 const scalar PrandtlNumber 00111 ) const = 0; 00112 00113 //- Return the heat transfer relaxation time 00114 virtual scalar relaxationTime 00115 ( 00116 const scalar liquidDensity, 00117 const scalar diameter, 00118 const scalar liquidcL, 00119 const scalar kappa, 00120 const scalar ReynoldsNumber, 00121 const scalar PrandtlNumber 00122 ) const = 0; 00123 00124 //- Return the correction function f... 00125 virtual scalar fCorrection(const scalar z) const = 0; 00126 00127 }; 00128 00129 00130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00131 00132 } // End namespace Foam 00133 00134 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00135 00136 #endif 00137 00138 // ************************************************************************* // |