heatTransferAv.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) 2021-2023 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::heatTransferAv
26 
27 Description
28  Class to handle area per unit volume [1/m] (Av) for heat transfer fvModels,
29  which must be provided as a value in the coefficients dictionary or as a
30  field in constant.
31 
32 SourceFiles
33  heatTransferAv.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef heatTransferAv_H
38 #define heatTransferAv_H
39 
40 #include "volFields.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 namespace fv
47 {
48 
49 /*---------------------------------------------------------------------------*\
50  Class heatTransferAv Declaration
51 \*---------------------------------------------------------------------------*/
52 
53 class heatTransferAv
54 {
55  // Private Member Data
56 
57  //- Reference to the mesh
58  const fvMesh& mesh_;
59 
60  //- Area per unit volume [1/m]
62 
63  //- Area per unit volume [1/m]
65 
66 
67  // Private Member Functions
68 
69  //- Read the area per unit volume
70  void readCoeffs(const dictionary& dict);
71 
72 
73 public:
74 
75  // Constructors
76 
77  //- Construct from dictionary and mesh
79  (
80  const dictionary& dict,
81  const fvMesh& mesh
82  );
83 
84 
85  //- Destructor
86  virtual ~heatTransferAv();
87 
88 
89  // Member Functions
90 
91  //- Get the area per unit volume
92  tmp<volScalarField> Av() const;
93 
94  //- Read dictionary
95  virtual bool read(const dictionary& dict);
96 };
97 
98 
99 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
100 
101 } // End namespace fv
102 } // End namespace Foam
103 
104 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
105 
106 #endif
107 
108 // ************************************************************************* //
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: autoPtr.H:51
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:160
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:101
Class to handle area per unit volume [1/m] (Av) for heat transfer fvModels, which must be provided as...
virtual ~heatTransferAv()
Destructor.
virtual bool read(const dictionary &dict)
Read dictionary.
heatTransferAv(const dictionary &dict, const fvMesh &mesh)
Construct from dictionary and mesh.
tmp< volScalarField > Av() const
Get the area per unit volume.
A class for managing temporary objects.
Definition: tmp.H:55
Namespace for OpenFOAM.
labelList fv(nPoints)
dictionary dict