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-2015 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
65 
66  //- 2D look up table
68 
69  //- Area per unit volume of heat exchanger
71 
72  //- Heat transfer coefficient table
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 // ************************************************************************* //
Foam::fv::tabulatedHeatTransfer
Tabulated heat transfer model. The heat exchange area per unit volume must be provided....
Definition: tabulatedHeatTransfer.H:51
Foam::word
A class for handling words, derived from string.
Definition: word.H:59
Foam::fv::option::name
const word & name() const
Return const access to the source name.
Definition: fvOptionI.H:28
Foam::fv::tabulatedHeatTransfer::hTable
const interpolation2DTable< scalar > & hTable()
Heat transfer coefficient table.
Definition: tabulatedHeatTransfer.C:49
Foam::fv::interRegionHeatTransferModel
Base class for inter region heat exchange. The derived classes must provide the heat transfer coeffis...
Definition: interRegionHeatTransferModel.H:54
Foam::fv::tabulatedHeatTransfer::AoV
const volScalarField & AoV()
Field of area divided by volume.
Definition: tabulatedHeatTransfer.C:60
interRegionHeatTransferModel.H
interpolation2DTable.H
Foam::fv::tabulatedHeatTransfer::startTimeName_
const word startTimeName_
Start time name.
Definition: tabulatedHeatTransfer.H:78
Foam::fv::tabulatedHeatTransfer::hTable_
autoPtr< interpolation2DTable< scalar > > hTable_
2D look up table
Definition: tabulatedHeatTransfer.H:66
Foam::fv::tabulatedHeatTransfer::read
virtual bool read(const dictionary &dict)
Read dictionary.
Definition: tabulatedHeatTransfer.C:136
Foam::interpolation2DTable
2D table interpolation. The data must be in ascending order in both dimensions x and y.
Definition: interpolation2DTable.H:52
Foam::fv::tabulatedHeatTransfer::tabulatedHeatTransfer
tabulatedHeatTransfer(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from dictionary.
Definition: tabulatedHeatTransfer.C:88
Foam::fv::tabulatedHeatTransfer::calculateHtc
virtual void calculateHtc()
Calculate the heat transfer coefficient.
Definition: tabulatedHeatTransfer.C:112
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 any number of values (e....
Definition: dictionary.H:137
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
fv
labelList fv(nPoints)
Foam::autoPtr
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:117
Foam::fv::tabulatedHeatTransfer::~tabulatedHeatTransfer
virtual ~tabulatedHeatTransfer()
Destructor.
Definition: tabulatedHeatTransfer.C:106
Foam::fv::tabulatedHeatTransfer::AoV_
autoPtr< volScalarField > AoV_
Area per unit volume of heat exchanger.
Definition: tabulatedHeatTransfer.H:69
Foam::fv::option::mesh
const fvMesh & mesh() const
Return const access to the mesh database.
Definition: fvOptionI.H:34
Foam::fv::tabulatedHeatTransfer::UNbrName_
word UNbrName_
Name of neighbour velocity field; default = U.
Definition: tabulatedHeatTransfer.H:63
Foam::GeometricField
Generic GeometricField class.
Definition: surfaceFieldsFwd.H:52
Foam::fv::tabulatedHeatTransfer::UName_
word UName_
Name of velocity field; default = U.
Definition: tabulatedHeatTransfer.H:60
autoPtr.H