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 | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2011-2016 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 Class
27  Foam::fv::tabulatedHeatTransfer
28 
29 Group
30  grpFvOptionsSources
31 
32 Description
33  Tabulated heat transfer model. The heat exchange area per unit volume
34  must be provided. The 2D table returns the heat transfer coefficient
35  by querying the local and neighbour region velocities
36 
37 \*---------------------------------------------------------------------------*/
38 
39 #ifndef tabulatedHeatTransfer_H
40 #define tabulatedHeatTransfer_H
41 
43 #include "autoPtr.H"
44 #include "interpolation2DTable.H"
45 
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 
48 namespace Foam
49 {
50 namespace fv
51 {
52 
53 /*---------------------------------------------------------------------------*\
54  Class tabulatedHeatTransfer Declaration
55 \*---------------------------------------------------------------------------*/
56 
58 :
60 {
61 private:
62 
63  // Private data
64 
65  //- Name of velocity field; default = U
66  word UName_;
67 
68  //- Name of neighbour velocity field; default = U
69  word UNbrName_;
70 
71  //- 2D look up table
73 
74  //- Area per unit volume of heat exchanger
76 
77  //- Heat transfer coefficient table
78  const interpolation2DTable<scalar>& hTable();
79 
80  //- Field of area divided by volume
81  const volScalarField& AoV();
82 
83  //- Start time name
84  const word startTimeName_;
85 
86 
87 public:
88 
89  //- Runtime type information
90  TypeName("tabulatedHeatTransfer");
91 
92 
93  // Constructors
94 
95  //- Construct from dictionary
97  (
98  const word& name,
99  const word& modelType,
100  const dictionary& dict,
101  const fvMesh& mesh
102  );
103 
104 
105  //- Destructor
106  virtual ~tabulatedHeatTransfer();
107 
108 
109  // Public Functions
110 
111  //- Calculate the heat transfer coefficient
112  virtual void calculateHtc();
113 
114  //- Read dictionary
115  virtual bool read(const dictionary& dict);
116 };
117 
118 
119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
120 
121 } // End namespace fv
122 } // End namespace Foam
123 
124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
125 
126 
127 #endif
128 
129 // ************************************************************************* //
Foam::fv::tabulatedHeatTransfer
Tabulated heat transfer model. The heat exchange area per unit volume must be provided....
Definition: tabulatedHeatTransfer.H:56
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:62
Foam::fv::option::name
const word & name() const
Return const access to the source name.
Definition: fvOptionI.H:30
Foam::fv::interRegionHeatTransferModel
Base class for inter region heat exchange. The derived classes must provide the heat transfer coeffis...
Definition: interRegionHeatTransferModel.H:59
interRegionHeatTransferModel.H
interpolation2DTable.H
Foam::fv::tabulatedHeatTransfer::read
virtual bool read(const dictionary &dict)
Read dictionary.
Definition: tabulatedHeatTransfer.C:139
Foam::interpolation2DTable< scalar >
Foam::fv::tabulatedHeatTransfer::tabulatedHeatTransfer
tabulatedHeatTransfer(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from dictionary.
Definition: tabulatedHeatTransfer.C:91
Foam::fv::tabulatedHeatTransfer::calculateHtc
virtual void calculateHtc()
Calculate the heat transfer coefficient.
Definition: tabulatedHeatTransfer.C:115
Foam::fv::tabulatedHeatTransfer::TypeName
TypeName("tabulatedHeatTransfer")
Runtime type information.
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:121
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:84
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
fv
labelList fv(nPoints)
Foam::autoPtr
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: HashPtrTable.H:53
Foam::fv::tabulatedHeatTransfer::~tabulatedHeatTransfer
virtual ~tabulatedHeatTransfer()
Destructor.
Definition: tabulatedHeatTransfer.C:109
Foam::fv::option::mesh
const fvMesh & mesh() const
Return const access to the mesh database.
Definition: fvOptionI.H:36
Foam::GeometricField< scalar, fvPatchField, volMesh >
autoPtr.H