tabulatedHeatTransfer.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | Copyright (C) 2011-2016 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::tabulatedHeatTransfer
26 
27 Description
28  Tabulated heat transfer model. The heat exchange area per unit volume
29  must be provided. The 2D table returns the heat transfer coefficient
30  by querying the local and neighbour region velocities
31 
32 \*---------------------------------------------------------------------------*/
33 
34 #ifndef tabulatedHeatTransfer_H
35 #define tabulatedHeatTransfer_H
36 
38 #include "autoPtr.H"
39 #include "interpolation2DTable.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 namespace fv
46 {
47 
48 /*---------------------------------------------------------------------------*\
49  Class tabulatedHeatTransfer Declaration
50 \*---------------------------------------------------------------------------*/
51 
53 :
55 {
56 private:
57 
58  // Private data
59 
60  //- Name of velocity field; default = U
61  word UName_;
62 
63  //- Name of neighbour velocity field; default = U
64  word UNbrName_;
65 
66  //- 2D look up table
68 
69  //- Area per unit volume of heat exchanger
71 
72  //- Heat transfer coefficient table
73  const interpolation2DTable<scalar>& hTable();
74 
75  //- Field of area divided by volume
76  const volScalarField& AoV();
77 
78  //- Start time name
79  const word startTimeName_;
80 
81 
82 public:
83 
84  //- Runtime type information
85  TypeName("tabulatedHeatTransfer");
86 
87 
88  // Constructors
89 
90  //- Construct from dictionary
92  (
93  const word& name,
94  const word& modelType,
95  const dictionary& dict,
96  const fvMesh& mesh
97  );
98 
99 
100  //- Destructor
101  virtual ~tabulatedHeatTransfer();
102 
103 
104  // Public Functions
105 
106  //- Calculate the heat transfer coefficient
107  virtual void calculateHtc();
108 
109 
110  // IO
111 
112  //- Read dictionary
113  virtual bool read(const dictionary& dict);
114 };
115 
116 
117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 
119 } // End namespace fv
120 } // End namespace Foam
121 
122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123 
124 
125 #endif
126 
127 // ************************************************************************* //
dictionary dict
Base class for inter region heat exchange. The derived classes must provide the heat transfer coeffis...
virtual bool read(const dictionary &dict)
Read dictionary.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
tabulatedHeatTransfer(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from dictionary.
const fvMesh & mesh() const
Return const access to the mesh database.
Definition: fvOptionI.H:34
TypeName("tabulatedHeatTransfer")
Runtime type information.
virtual ~tabulatedHeatTransfer()
Destructor.
A class for handling words, derived from string.
Definition: word.H:59
labelList fv(nPoints)
const word & name() const
Return const access to the source name.
Definition: fvOptionI.H:28
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
virtual void calculateHtc()
Calculate the heat transfer coefficient.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:52
Tabulated heat transfer model. The heat exchange area per unit volume must be provided. The 2D table returns the heat transfer coefficient by querying the local and neighbour region velocities.
Namespace for OpenFOAM.