absorptionEmissionModel.C
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) 2011-2024 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 
28 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
29 
30 namespace Foam
31 {
32  namespace radiationModels
33  {
36  }
37 }
38 
39 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
40 
42 (
43  const fvMesh& mesh
44 )
45 :
46  mesh_(mesh)
47 {}
48 
49 
50 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * //
51 
53 {}
54 
55 
56 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
57 
60 {
61  return aDisp(bandI) + aCont(bandI);
62 }
63 
64 
67 {
68  return volScalarField::New
69  (
70  "aCont",
71  mesh_,
73  );
74 }
75 
76 
79 {
80  return volScalarField::New
81  (
82  "aDisp",
83  mesh_,
85  );
86 }
87 
88 
91 {
92  return eDisp(bandI) + eCont(bandI);
93 }
94 
95 
98 {
99  return volScalarField::New
100  (
101  "eCont",
102  mesh_,
104  );
105 }
106 
107 
110 {
111  return volScalarField::New
112  (
113  "eDisp",
114  mesh_,
116  );
117 }
118 
119 
122 {
123  return EDisp(bandI) + ECont(bandI);
124 }
125 
126 
129 {
130  return volScalarField::New
131  (
132  "ECont",
133  mesh_,
135  );
136 }
137 
138 
141 {
142  return volScalarField::New
143  (
144  "EDisp",
145  mesh_,
147  );
148 }
149 
150 
152 {
153  return pTraits<label>::one;
154 }
155 
156 
159 {
160  return Vector2D<scalar>::one;
161 }
162 
163 
165 {
166  return false;
167 }
168 
169 
171 (
172  volScalarField& a,
174 ) const
175 {
176  a = this->a();
177  aj[0] = a;
178 }
179 
180 
181 // ************************************************************************* //
label n
Generic GeometricField class.
static tmp< GeometricField< Type, GeoMesh, PrimitiveField > > New(const word &name, const Internal &, const PtrList< Patch > &, const HashPtrTable< Source > &=HashPtrTable< Source >())
Return a temporary field constructed from name,.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Definition: PtrList.H:75
Templated 2D Vector derived from VectorSpace adding construction from 2 components,...
Definition: Vector2D.H:54
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:96
Traits class for primitives.
Definition: pTraits.H:53
Model to supply absorption and emission coefficients for radiation modelling.
virtual tmp< volScalarField > e(const label bandI=0) const
Emission coefficient (net)
virtual bool isGrey() const
Flag for whether the absorption/emission is for a grey gas.
virtual const Vector2D< scalar > & bands(const label n) const
Const access to the bands - defaults to Vector2D::one for grey.
virtual tmp< volScalarField > aDisp(const label bandI=0) const
Absorption coefficient for dispersed phase.
virtual tmp< volScalarField > E(const label bandI=0) const
Emission contribution (net)
virtual tmp< volScalarField > EDisp(const label bandI=0) const
Emission contribution for dispersed phase.
absorptionEmissionModel(const fvMesh &mesh)
Construct from mesh.
virtual label nBands() const
Const access to the number of bands - defaults to 1 for grey.
virtual tmp< volScalarField > a(const label bandI=0) const
Absorption coefficient (net)
virtual tmp< volScalarField > eDisp(const label bandI=0) const
Return emission coefficient for dispersed phase.
virtual tmp< volScalarField > eCont(const label bandI=0) const
Return emission coefficient for continuous phase.
virtual tmp< volScalarField > aCont(const label bandI=0) const
Absorption coefficient for continuous phase.
virtual void correct(volScalarField &a, PtrList< volScalarField > &aj) const
Correct absorption coefficients.
virtual tmp< volScalarField > ECont(const label bandI=0) const
Emission contribution for continuous phase.
A class for managing temporary objects.
Definition: tmp.H:55
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
defineTypeNameAndDebug(absorptionEmissionModel, 0)
defineRunTimeSelectionTable(absorptionEmissionModel, dictionary)
Namespace for OpenFOAM.
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 dimensionSet dimless
const dimensionSet dimLength
const dimensionSet dimTime
void pow3(LagrangianPatchField< scalar > &f, const LagrangianPatchField< scalar > &f1)
const dimensionSet dimMass
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.