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 -------------------------------------------------------------------------------
10 License
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 
26 Class
27  Foam::radiation::localDensityAbsorptionEmission
28 
29 Description
30  Constant radiation absorption and emission coefficients for continuous
31  phase
32 
33 SourceFiles
34  localDensityAbsorptionEmission.C
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef radiation_localDensityAbsorptionEmission_H
39 #define radiation_localDensityAbsorptionEmission_H
40 
42 
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 
45 namespace Foam
46 {
47 namespace radiation
48 {
49 
50 /*---------------------------------------------------------------------------*\
51  Class localDensityAbsorptionEmission Declaration
52 \*---------------------------------------------------------------------------*/
53 
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 
82 public:
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 // ************************************************************************* //
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
Foam::radiation::absorptionEmissionModel::dict
const dictionary & dict() const
Reference to the dictionary.
Definition: absorptionEmissionModel.H:121
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
Foam::radiation::localDensityAbsorptionEmission::eCont
tmp< volScalarField > eCont(const label bandI=0) const
Emission coefficient for continuous phase.
Foam::radiation::localDensityAbsorptionEmission::isGrey
bool isGrey() const
Is grey.
Definition: localDensityAbsorptionEmission.H:114
Foam::radiation::absorptionEmissionModel::mesh
const fvMesh & mesh() const
Reference to the mesh.
Definition: absorptionEmissionModel.H:115
Foam::radiation::localDensityAbsorptionEmission::aCont
tmp< volScalarField > aCont(const label bandI=0) const
Absorption coefficient for continuous phase.
Foam::radiation::localDensityAbsorptionEmission::~localDensityAbsorptionEmission
virtual ~localDensityAbsorptionEmission()=default
Destructor.
radiation
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:85
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::radiation::localDensityAbsorptionEmission::localDensityAbsorptionEmission
localDensityAbsorptionEmission(const dictionary &dict, const fvMesh &mesh)
Construct from components.
Foam::radiation::localDensityAbsorptionEmission::TypeName
TypeName("localDensityAbsorptionEmission")
Runtime type information.
absorptionEmissionModel.H
Foam::List< word >
Foam::radiation::absorptionEmissionModel
Model to supply absorption and emission coefficients for radiation modelling.
Definition: absorptionEmissionModel.H:54
Foam::GeometricField< scalar, fvPatchField, volMesh >
Foam::radiation::localDensityAbsorptionEmission
Constant radiation absorption and emission coefficients for continuous phase.
Definition: localDensityAbsorptionEmission.H:53
Foam::radiation::localDensityAbsorptionEmission::ECont
tmp< volScalarField > ECont(const label bandI=0) const
Emission contribution for continuous phase.