constantTransmissivity.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) 2015 OpenCFD Ltd
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 Class
25  Foam::radiation::constantTransmissivity
26 
27 Description
28  Constant radiation scatter coefficient
29 
30 SourceFiles
31  constantTransmissivity.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef radiationConstantTransmissivity_H
36 #define radiationConstantTransmissivity_H
37 
38 #include "transmissivityModel.H"
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 namespace Foam
43 {
44 namespace radiation
45 {
46 
47 /*---------------------------------------------------------------------------*\
48  Class constantTransmissivity Declaration
49 \*---------------------------------------------------------------------------*/
50 
52 :
53  public transmissivityModel
54 {
55 
56  // Private data
57 
58  //- Coefficients dictionary
60 
61  //- Transmissivity coefficient / []
62  scalar tau_;
63 
64 
65 public:
66 
67  //- Runtime type information
68  TypeName("constantTransmissivity");
69 
70 
71  // Constructors
72 
73  //- Construct from components
75 
76 
77  //- Destructor
78  virtual ~constantTransmissivity();
79 
80 
81  // Member Functions
82 
83  //- Return scatter coefficient
84  tmp<volScalarField> tauEff(const label bandI = 0) const;
85 
86 
87  //- Is Grey
88  inline bool isGrey() const
89  {
90  return true;
91  }
92 
93 
94  //- Number of bands
95  inline label nBands() const
96  {
97  return 1;
98  }
99 };
100 
101 
102 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
103 
104 } // End namespace radiation
105 } // End namespace Foam
106 
107 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
108 
109 #endif
110 
111 // ************************************************************************* //
Foam::radiation::constantTransmissivity::tauEff
tmp< volScalarField > tauEff(const label bandI=0) const
Return scatter coefficient.
Definition: constantTransmissivity.C:70
Foam::radiation::constantTransmissivity::constantTransmissivity
constantTransmissivity(const dictionary &dict, const fvMesh &mesh)
Construct from components.
Definition: constantTransmissivity.C:50
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:118
Foam::radiation::constantTransmissivity::nBands
label nBands() const
Number of bands.
Definition: constantTransmissivity.H:94
Foam::radiation::transmissivityModel
Base class for radiation scattering.
Definition: transmissivityModel.H:50
Foam::radiation::constantTransmissivity::~constantTransmissivity
virtual ~constantTransmissivity()
Destructor.
Definition: constantTransmissivity.C:63
Foam::radiation::constantTransmissivity::isGrey
bool isGrey() const
Is Grey.
Definition: constantTransmissivity.H:87
Foam::radiation::constantTransmissivity::tau_
scalar tau_
Transmissivity coefficient / [].
Definition: constantTransmissivity.H:61
Foam::label
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
radiation
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:137
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:18
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::radiation::constantTransmissivity::coeffsDict_
dictionary coeffsDict_
Coefficients dictionary.
Definition: constantTransmissivity.H:58
transmissivityModel.H
Foam::radiation::constantTransmissivity::TypeName
TypeName("constantTransmissivity")
Runtime type information.
Foam::radiation::constantTransmissivity
Constant radiation scatter coefficient.
Definition: constantTransmissivity.H:50