Loading...
Searching...
No Matches
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-------------------------------------------------------------------------------
10License
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
26Class
27 Foam::VF::viewFactorHottel
28
29Description
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
39Usage
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
49Note
50 Only applicable to 2D cases
51
52SourceFiles
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
64namespace Foam
65{
66
67namespace VF
68{
70/*---------------------------------------------------------------------------*\
71 Class viewFactorHottel Declaration
72\*---------------------------------------------------------------------------*/
73
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
87protected:
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
102 (
103 const labelListList& visibleFaceFaces,
104 const pointField& compactCf,
105 const vectorField& compactSf,
106 const UList<List<vector>>& compactFineSf,
107 const UList<List<point>>& compactFineCf,
108 const UList<List<point>>& compactPoints,
109 const UList<label>& compactPatchId
110 ) const;
111
112
113public:
114
115 //- Runtime type information
116 TypeName("viewFactorHottel");
117
118 //- Constructor
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// ************************************************************************* //
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Definition List.H:72
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
Definition UList.H:89
static scalar calculateFij(const point &p0, const point &p1, const point &p2, const point &p3)
Calculate view factor using the double-area integral.
TypeName("viewFactorHottel")
Runtime type information.
viewFactorHottel(const fvMesh &mesh, const dictionary &dict)
Constructor.
virtual scalarListList calculate(const labelListList &visibleFaceFaces, const pointField &compactCf, const vectorField &compactSf, const UList< List< vector > > &compactFineSf, const UList< List< point > > &compactFineCf, const UList< List< point > > &compactPoints, const UList< label > &compactPatchId) const
Calculate.
virtual ~viewFactorHottel()=default
Destructor.
viewFactorModel(const viewFactorModel &)=delete
No copy construct.
virtual void calculate()
Calculate the view factors.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition dictionary.H:133
Mesh data needed to do the Finite Volume discretisation.
Definition fvMesh.H:85
const volScalarField & p0
Definition EEqn.H:36
dynamicFvMesh & mesh
A namespace for various viewFactor model implementations.
Namespace for OpenFOAM.
List< scalarList > scalarListList
List of scalarList.
Definition scalarList.H:35
List< labelList > labelListList
List of labelList.
Definition labelList.H:38
Field< vector > vectorField
Specialisation of Field<T> for vector.
vector point
Point is a vector.
Definition point.H:37
vectorField pointField
pointField is a vectorField.
Vector< scalar > vector
Definition vector.H:57
dictionary dict
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition typeInfo.H:68