viewFactorHottel.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) 2023-2024 OpenCFD Ltd.
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::VF::viewFactorHottel
28 
29 Description
30  Computes view factors according to Hottel's crossed strings method.
31 
32  Reference:
33  \verbatim
34  Hottel, H. C., & Saforim, A. F. (1967).
35  Radiative transfer.
36  McGraw-Hill Book Company, New York.
37  \endverbatim
38 
39 Usage
40  Minimal example in \c <constant>/viewFactorsDict:
41  \verbatim
42  // Inherited entries
43  ...
44  \endverbatim
45 
46  The inherited entries are elaborated in:
47  - \link viewFactorModel.H \endlink
48 
49 Note
50  Only applicable to 2D cases
51 
52 SourceFiles
53  viewFactorModel.C
54 
55 \*---------------------------------------------------------------------------*/
56 
57 #ifndef Foam_vf_viewFactorHottel_H
58 #define Foam_vf_viewFactorHottel_H
59 
60 #include "viewFactorModel.H"
61 
62 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
63 
64 namespace Foam
65 {
66 
67 namespace VF
68 {
69 
70 /*---------------------------------------------------------------------------*\
71  Class viewFactorHottel Declaration
72 \*---------------------------------------------------------------------------*/
73 
74 class viewFactorHottel
75 :
76  public viewFactorModel
77 {
78  // Private Data
79 
80  //- Mesh empty direction
81  vector emptyDir_;
82 
83  //- Mesh 2D width
84  scalar w_;
85 
86 
87 protected:
88 
89  // Protected Member Functions
90 
91  //- Calculate view factor using the double-area integral
92  static scalar calculateFij
93  (
94  const point& p0,
95  const point& p1,
96  const point& p2,
97  const point& p3
98  );
99 
100  //- Calculate
101  virtual scalarListList calculate
102  (
103  const labelListList& visibleFaceFaces,
104  const pointField& compactCf,
105  const vectorField& compactSf,
106  const List<List<vector>>& compactFineSf,
107  const List<List<point>>& compactFineCf,
108  const DynamicList<List<point>>& compactPoints,
109  const DynamicList<label>& compactPatchId
110  ) const;
111 
112 
113 public:
114 
115  //- Runtime type information
116  TypeName("viewFactorHottel");
117 
118  //- Constructor
119  viewFactorHottel(const fvMesh& mesh, const dictionary& dict);
120 
121  //- Destructor
122  virtual ~viewFactorHottel() = default;
123 };
124 
125 
126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127 
128 } // End namespace VF
129 } // End namespace Foam
130 
131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
132 
133 #endif
134 
135 // ************************************************************************* //
virtual ~viewFactorHottel()=default
Destructor.
dictionary dict
Computes view factors according to Hottel&#39;s crossed strings method.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition: dictionary.H:129
TypeName("viewFactorHottel")
Runtime type information.
dynamicFvMesh & mesh
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects...
Definition: DynamicList.H:51
virtual void calculate()
Calculate the view factors.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
A base class for viewFactor models.
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
static scalar calculateFij(const point &p0, const point &p1, const point &p2, const point &p3)
Calculate view factor using the double-area integral.
const volScalarField & p0
Definition: EEqn.H:36
Namespace for OpenFOAM.
viewFactorHottel(const fvMesh &mesh, const dictionary &dict)
Constructor.