localDensityAbsorptionEmission.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) 2017 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::radiation::localDensityAbsorptionEmission
28
29Description
30 Constant radiation absorption and emission coefficients for continuous
31 phase
32
33SourceFiles
34 localDensityAbsorptionEmission.C
35
36\*---------------------------------------------------------------------------*/
37
38#ifndef radiation_localDensityAbsorptionEmission_H
39#define radiation_localDensityAbsorptionEmission_H
40
42
43// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44
45namespace Foam
46{
47namespace radiation
48{
49
50/*---------------------------------------------------------------------------*\
51 Class localDensityAbsorptionEmission Declaration
52\*---------------------------------------------------------------------------*/
55:
57{
58 // Private data
59
60 //- Absorption model dictionary
61 dictionary coeffsDict_;
62
63 //- Name of phase fields
64 List<word> alphaNames_;
65
66 //- Absorption coefficients
67 List<scalar> aCoeff_;
68
69 //- Emission coefficients
70 List<scalar> eCoeff_;
71
72 //- Emission contributions
73 List<scalar> ECoeff_;
74
75
76 // Private Member Functions
77
78 //- Retrieve the phase field from the database
79 const volScalarField& alpha(word) const;
80
81
82public:
83
84 //- Runtime type information
85 TypeName("localDensityAbsorptionEmission");
86
87
88 // Constructors
89
90 //- Construct from components
92 (
93 const dictionary& dict,
94 const fvMesh& mesh
95 );
96
97
98 //- Destructor
99 virtual ~localDensityAbsorptionEmission() = default;
100
101
102 // Member Functions
103
104 //- Absorption coefficient for continuous phase
105 tmp<volScalarField> aCont(const label bandI = 0) const;
106
107 //- Emission coefficient for continuous phase
108 tmp<volScalarField> eCont(const label bandI = 0) const;
109
110 //- Emission contribution for continuous phase
111 tmp<volScalarField> ECont(const label bandI = 0) const;
112
113
114 //- Is grey
115 inline bool isGrey() const
116 {
117 return true;
118 }
119};
120
121
122// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123
124} // End namespace radiation
125} // End namespace Foam
126
127// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
128
129#endif
130
131// ************************************************************************* //
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Definition: List.H:77
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:91
Model to supply absorption and emission coefficients for radiation modelling.
const fvMesh & mesh() const
Reference to the mesh.
const dictionary & dict() const
Reference to the dictionary.
Constant radiation absorption and emission coefficients for continuous phase.
tmp< volScalarField > eCont(const label bandI=0) const
Emission coefficient for continuous phase.
tmp< volScalarField > ECont(const label bandI=0) const
Emission contribution for continuous phase.
localDensityAbsorptionEmission(const dictionary &dict, const fvMesh &mesh)
Construct from components.
virtual ~localDensityAbsorptionEmission()=default
Destructor.
TypeName("localDensityAbsorptionEmission")
Runtime type information.
tmp< volScalarField > aCont(const label bandI=0) const
Absorption coefficient for continuous phase.
A class for managing temporary objects.
Definition: tmp.H:65
A class for handling words, derived from Foam::string.
Definition: word.H:68
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
Namespace for OpenFOAM.
volScalarField & alpha
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73