constantHeatTransfer.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::constantHeatTransfer
26 
27 Description
28  Constant heat transfer model. htcConst [W/m2/K] and area/volume [1/m]
29  must be provided.
30 
31 \*---------------------------------------------------------------------------*/
32 
33 #ifndef constantHeatTransfer_H
34 #define constantHeatTransfer_H
35 
37 #include "autoPtr.H"
38 
39 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
40 
41 namespace Foam
42 {
43 namespace fv
44 {
45 
46 /*---------------------------------------------------------------------------*\
47  Class constantHeatTransfer Declaration
48 \*---------------------------------------------------------------------------*/
49 
51 :
53 {
54 private:
55 
56  // Private data
57 
58  //- Constant heat transfer coefficient [W/m2/K]
59  autoPtr<volScalarField> htcConst_;
60 
61  //- Area per unit volume of heat exchanger [1/m]
63 
64 
65 public:
66 
67  //- Runtime type information
68  TypeName("constantHeatTransfer");
69 
70 
71  // Constructors
72 
73  //- Construct from dictionary
75  (
76  const word& name,
77  const word& modelType,
78  const dictionary& dict,
79  const fvMesh& mesh
80  );
81 
82 
83  //- Destructor
84  virtual ~constantHeatTransfer();
85 
86 
87  // Public Functions
88 
89  //- Calculate the heat transfer coefficient
90  virtual void calculateHtc();
91 
92 
93  // IO
94 
95  //- Read dictionary
96  virtual bool read(const dictionary& dict);
97 };
98 
99 
100 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
101 
102 } // End namespace fv
103 } // End namespace Foam
104 
105 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
106 
107 #endif
108 
109 // ************************************************************************* //
Constant heat transfer model. htcConst [W/m2/K] and area/volume [1/m] must be provided.
dictionary dict
Base class for inter region heat exchange. The derived classes must provide the heat transfer coeffis...
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
virtual ~constantHeatTransfer()
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
virtual bool read(const dictionary &dict)
Read dictionary.
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
TypeName("constantHeatTransfer")
Runtime type information.
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 void calculateHtc()
Calculate the heat transfer coefficient.
Namespace for OpenFOAM.
constantHeatTransfer(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from dictionary.