All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
tabulatedHeatTransfer.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-2019 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 Data
57 
58  //- Name of velocity field; default = U
59  word UName_;
60 
61  //- Name of neighbour velocity field; default = U
62  word UNbrName_;
63 
64  //- 2D look up table
66 
67  //- Area per unit volume of heat exchanger
69 
70  //- Heat transfer coefficient table
71  const interpolation2DTable<scalar>& hTable();
72 
73  //- Field of area divided by volume
74  const volScalarField& AoV();
75 
76  //- Start time name
77  const word startTimeName_;
78 
79 
80 public:
81 
82  //- Runtime type information
83  TypeName("tabulatedHeatTransfer");
84 
85 
86  // Constructors
87 
88  //- Construct from dictionary
90  (
91  const word& name,
92  const word& modelType,
93  const dictionary& dict,
94  const fvMesh& mesh
95  );
96 
97 
98  //- Destructor
99  virtual ~tabulatedHeatTransfer();
100 
101 
102  // Public Functions
103 
104  //- Calculate the heat transfer coefficient
105  virtual void calculateHtc();
106 
107 
108  // IO
109 
110  //- Read dictionary
111  virtual bool read(const dictionary& dict);
112 };
113 
114 
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
116 
117 } // End namespace fv
118 } // End namespace Foam
119 
120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
121 
122 
123 #endif
124 
125 // ************************************************************************* //
dictionary dict
Base class for inter region heat exchange. The derived classes must provide the heat transfer coeffic...
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:158
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.