1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2008-2009 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
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 the
13 Free Software Foundation; either version 2 of the License, or (at your
14 option) any later version.
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
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM; if not, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 Foam::radiation::fvDOM
30 Finite Volume Discrete Ordinates Method. Solves the RTE equation for n
31 directions in a participating media, not including scatter.
33 Available absorption models:
34 greyMeanAbsoprtionEmission
35 wideBandAbsorptionEmission
40 nPhi 1; // azimuthal angles in PI/2 on X-Y.(from Y to X)
41 nTheta 2; // polar angles in PI (from Z to X-Y plane)
42 convergence 1e-4; // convergence criteria for radiation iteration
45 solverFreq 1; // Number of flow iterations per radiation iteration
47 The total number of solid angles is 4*nPhi*nTheta.
49 In 1D the direction of the rays is X (nPhi and nTheta are ignored)
50 In 2D the direction of the rays is on X-Y plane (only nPhi is considered)
51 In 3D (nPhi and nTheta are considered)
56 \*---------------------------------------------------------------------------*/
58 #ifndef radiationModelfvDOM_H
59 #define radiationModelfvDOM_H
61 #include "radiativeIntensityRay.H"
62 #include "radiationModel.H"
64 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
71 /*---------------------------------------------------------------------------*\
72 Class fvDOM Declaration
73 \*---------------------------------------------------------------------------*/
81 //- Incident radiation [W/m2]
84 //- Total radiative heat flux [W/m2]
87 //- Total absorption coefficient [1/m]
90 //- Total emission coefficient [1/m]
93 //- Emission contribution [Kg/m/s^3]
96 //- Number of solid angles in theta
99 //- Number of solid angles in phi
102 //- Total number of rays (1 per direction)
105 //- Number of wavelength bands
108 //- Wavelength total absorption coefficient [1/m]
109 PtrList<volScalarField> aLambda_;
112 blackBodyEmission blackBody_;
114 //- List of pointers to radiative intensity rays
115 PtrList<radiativeIntensityRay> IRay_;
117 //- Convergence criterion
120 //- Maximum number of iterations
124 // Private member functions
126 //- Disallow default bitwise copy construct
129 //- Disallow default bitwise assignment
130 void operator=(const fvDOM&);
132 //- Update nlack body emission
133 void updateBlackBodyEmission();
138 //- Runtime type information
144 //- Construct from components
145 fvDOM(const volScalarField& T);
156 //- Solve radiation equation(s)
159 //- Read radiation properties dictionary
162 //- Update G and calculate total heat flux on boundary
165 //- Set the rayId and lambdaId from by decomposing an intensity
167 void setRayIdLambdaId
174 //- Source term component (for power of T^4)
175 virtual tmp<volScalarField> Rp() const;
177 //- Source term component (constant)
178 virtual tmp<DimensionedField<scalar, volMesh> > Ru() const;
183 //- Ray intensity for rayI
184 inline const radiativeIntensityRay& IRay(const label rayI) const;
186 //- Ray intensity for rayI and lambda bandwidth
187 inline const volScalarField& IRayLambda
193 //- Number of angles in theta
194 inline label nTheta() const;
196 //- Number of angles in phi
197 inline label nPhi() const;
200 inline label nRay() const;
202 //- Number of wavelengths
203 inline label nLambda() const;
205 //- Const access to total absorption coefficient
206 inline const volScalarField& a() const;
208 //- Const access to wavelength total absorption coefficient
209 inline const volScalarField& aLambda(const label lambdaI) const;
211 //- Const access to incident radiation field
212 inline const volScalarField& G() const;
214 //- Const access to total radiative heat flux field
215 inline const volScalarField& Qr() const;
217 //- Const access to black body
218 inline const blackBodyEmission& blackBody() const;
222 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
226 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
228 } // End namespace radiation
229 } // End namespace Foam
231 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
235 // ************************************************************************* //