variableHeatTransfer.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
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
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
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
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  Foam::fv::variableHeatTransfer
26 
27 Description
28  Variable heat transfer model depending on local values. The area of contact
29  between regions (area) must be provided. The Nu number is calculated as:
30 
31  Nu = a*pow(Re, b)*pow(Pr, c)
32 
33  and the heat transfer coefficient as:
34 
35  htc = Nu*K/ds
36 
37  where:
38  K is the heat conduction
39  ds is the strut diameter
40 
41 \*---------------------------------------------------------------------------*/
42 
43 #ifndef variableHeatTransfer_H
44 #define variableHeatTransfer_H
45 
47 #include "autoPtr.H"
48 
49 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50 
51 namespace Foam
52 {
53 namespace fv
54 {
55 
56 /*---------------------------------------------------------------------------*\
57  Class variableHeatTransfer Declaration
58 \*---------------------------------------------------------------------------*/
59 
61 :
63 {
64 private:
65 
66  // Private data
67 
68  //- Name of neighbour velocity field; default = U
69  word UNbrName_;
70 
71  //- Model constants
72  scalar a_;
73  scalar b_;
74  scalar c_;
75 
76  //- Strut diameter
77  scalar ds_;
78 
79  //- Fluid Prandt number
80  scalar Pr_;
81 
82  //- Area per unit volume of heat exchanger
84 
85 
86 public:
87 
88  //- Runtime type information
89  TypeName("variableHeatTransfer");
90 
91 
92  // Constructors
93 
94  //- Construct from dictionary
96  (
97  const word& name,
98  const word& modelType,
99  const dictionary& dict,
100  const fvMesh& mesh
101  );
102 
103 
104  //- Destructor
105  virtual ~variableHeatTransfer();
106 
107 
108  // Public Functions
109 
110  //- Calculate the heat transfer coefficient
111  virtual void calculateHtc();
112 
113 
114  // IO
115 
116  //- Read dictionary
117  virtual bool read(const dictionary& dict) ;
118 };
119 
120 
121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122 
123 } // End namespace fv
124 } // End namespace Foam
125 
126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127 
128 #endif
129 
130 // ************************************************************************* //
dictionary dict
Base class for inter region heat exchange. The derived classes must provide the heat transfer coeffis...
virtual ~variableHeatTransfer()
Destructor.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
const fvMesh & mesh() const
Return const access to the mesh database.
Definition: fvOptionI.H:34
Variable heat transfer model depending on local values. The area of contact between regions (area) mu...
A class for handling words, derived from string.
Definition: word.H:59
labelList fv(nPoints)
virtual void calculateHtc()
Calculate the heat transfer coefficient.
const word & name() const
Return const access to the source name.
Definition: fvOptionI.H:28
variableHeatTransfer(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from dictionary.
TypeName("variableHeatTransfer")
Runtime type information.
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:52
virtual bool read(const dictionary &dict)
Read dictionary.
Namespace for OpenFOAM.