fvDOMI.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 \*---------------------------------------------------------------------------*/
25 
27 Foam::radiation::fvDOM::IRay(const label rayI) const
28 {
29  return IRay_[rayI];
30 }
31 
32 
33 inline const Foam::volScalarField&
35 (
36  const label rayI,
37  const label lambdaI
38 ) const
39 {
40  return IRay_[rayI].ILambda(lambdaI);
41 }
42 
43 
45 {
46  return nTheta_;
47 }
48 
49 
51 {
52  return nPhi_;
53 }
54 
55 
57 {
58  return nRay_;
59 }
60 
61 
63 {
64  return nLambda_;
65 }
66 
67 
69 {
70  return a_;
71 }
72 
73 
75 (
76  const label lambdaI
77 ) const
78 {
79  return aLambda_[lambdaI];
80 }
81 
82 
84 {
85  return G_;
86 }
87 
88 
90 {
91  return Qr_;
92 }
93 
95 {
96  return Qin_;
97 }
98 
99 
101 {
102  return Qem_;
103 }
104 
105 
108 {
109  return blackBody_;
110 }
111 
112 
114 (
115  const label rayId,
116  const label lambdaI
117 ) const
118 {
119  return fvRayDiv_[lambdaI][rayId];
120 }
121 
122 
123 inline bool Foam::radiation::fvDOM::cacheDiv() const
124 {
125  return cacheDiv_;
126 }
127 
128 
129 inline Foam::scalar Foam::radiation::fvDOM::omegaMax() const
130 {
131  return omegaMax_;
132 }
133 
134 
135 // ************************************************************************* //
Class black body emission.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
const radiativeIntensityRay & IRay(const label rayI) const
Ray intensity for rayI.
Definition: fvDOM.H:28
label nPhi() const
Number of angles in phi.
Definition: fvDOM.H:51
const volScalarField & G() const
Const access to incident radiation field.
Definition: fvDOM.H:84
scalar omegaMax() const
Return omegaMax.
Definition: fvDOM.H:130
const volScalarField & aLambda(const label lambdaI) const
Const access to wavelength total absorption coefficient.
Definition: fvDOM.H:76
const volScalarField & IRayLambda(const label rayI, const label lambdaI) const
Ray intensity for rayI and lambda bandwidth.
Definition: fvDOM.H:36
bool cacheDiv() const
Caching div(Ji, Ilamda)
Definition: fvDOM.H:124
label nLambda() const
Number of wavelengths.
Definition: fvDOM.H:63
const volScalarField & Qin() const
Const access to incident radiative heat flux field.
Definition: fvDOM.H:95
const blackBodyEmission & blackBody() const
Const access to black body.
Definition: fvDOM.H:108
const volScalarField & Qr() const
Const access to total radiative heat flux field.
Definition: fvDOM.H:90
A special matrix type and solver, designed for finite volume solutions of scalar equations. Face addressing is used to make all matrix assembly and solution loops vectorise.
Definition: fvPatchField.H:71
label nTheta() const
Number of angles in theta.
Definition: fvDOM.H:45
const volScalarField & Qem() const
Const access to emitted radiative heat flux field.
Definition: fvDOM.H:101
const fvScalarMatrix & fvRayDiv(const label lambdaI, const label rayId) const
Const access to cached fvMatrix.
Definition: fvDOM.H:115
const volScalarField & a() const
Const access to total absorption coefficient.
Definition: fvDOM.H:69
Radiation intensity for a ray in a given direction.
label nRay() const
Number of rays.
Definition: fvDOM.H:57