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 | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2011-2015 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::constantHeatTransfer
28 
29 Group
30  grpFvOptionsSources
31 
32 Description
33  Constant heat transfer model. htcConst [W/m2/K] and area/volume [1/m]
34  must be provided.
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef constantHeatTransfer_H
39 #define constantHeatTransfer_H
40 
42 #include "autoPtr.H"
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 namespace Foam
47 {
48 namespace fv
49 {
50 
51 /*---------------------------------------------------------------------------*\
52  Class constantHeatTransfer Declaration
53 \*---------------------------------------------------------------------------*/
54 
56 :
58 {
59  // Private data
60 
61  //- Constant heat transfer coefficient [W/m2/K]
62  autoPtr<volScalarField> htcConst_;
63 
64  //- Area per unit volume of heat exchanger [1/m]
66 
67 
68 public:
69 
70  //- Runtime type information
71  TypeName("constantHeatTransfer");
72 
73 
74  // Constructors
75 
76  //- Construct from dictionary
78  (
79  const word& name,
80  const word& modelType,
81  const dictionary& dict,
82  const fvMesh& mesh
83  );
84 
85 
86  //- Destructor
87  virtual ~constantHeatTransfer();
88 
89 
90  // Public Functions
91 
92  //- Calculate the heat transfer coefficient
93  virtual void calculateHtc();
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 // ************************************************************************* //
Foam::fv::constantHeatTransfer
Constant heat transfer model. htcConst [W/m2/K] and area/volume [1/m] must be provided.
Definition: constantHeatTransfer.H:54
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::constantHeatTransfer::TypeName
TypeName("constantHeatTransfer")
Runtime type information.
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
Foam::fv::constantHeatTransfer::read
virtual bool read(const dictionary &dict)
Read dictionary.
Definition: constantHeatTransfer.C:113
Foam::fv::constantHeatTransfer::calculateHtc
virtual void calculateHtc()
Calculate the heat transfer coefficient.
Definition: constantHeatTransfer.C:109
Foam::fv::constantHeatTransfer::constantHeatTransfer
constantHeatTransfer(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from dictionary.
Definition: constantHeatTransfer.C:51
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::constantHeatTransfer::~constantHeatTransfer
virtual ~constantHeatTransfer()
Destructor.
Definition: constantHeatTransfer.C:103
Foam::fv::option::mesh
const fvMesh & mesh() const
Return const access to the mesh database.
Definition: fvOptionI.H:36
autoPtr.H