constantScatter.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) 2011-2015 OpenFOAM Foundation
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::constantScatter
28 
29 Group
30  grpRadiationScatterSubModels
31 
32 Description
33  Constant radiation scatter coefficient
34 
35 SourceFiles
36  scatterModel.C
37 
38 \*---------------------------------------------------------------------------*/
39 
40 #ifndef radiation_constantScatter_H
41 #define radiation_constantScatter_H
42 
43 #include "scatterModel.H"
44 
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 
47 namespace Foam
48 {
49 namespace radiation
50 {
51 
52 /*---------------------------------------------------------------------------*\
53  Class constantScatter Declaration
54 \*---------------------------------------------------------------------------*/
55 
56 class constantScatter
57 :
58  public scatterModel
59 {
60 
61  // Private data
62 
63  //- Coefficients dictionary
64  dictionary coeffsDict_;
65 
66  //- Scattering coefficient / [1/m]
67  dimensionedScalar sigma_;
68 
69  //- Linear-anisotropic phase function coefficient / []
70  // -1 < C < 1
71  // - = backward scattering
72  // 0 = isotropic scattering (reasonable default value)
73  // + = forward scattering
75 
76 
77 public:
78 
79  //- Runtime type information
80  TypeName("constantScatter");
81 
82 
83  // Constructors
84 
85  //- Construct from components
86  constantScatter(const dictionary& dict, const fvMesh& mesh);
87 
88 
89  //- Destructor
90  virtual ~constantScatter() = default;
91 
92 
93  // Member Functions
94 
95  //- Return scatter coefficient
97 };
98 
99 
100 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
101 
102 } // End namespace radiation
103 } // End namespace Foam
104 
105 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
106 
107 #endif
108 
109 // ************************************************************************* //
Foam::radiation::constantScatter::sigmaEff
tmp< volScalarField > sigmaEff() const
Return scatter coefficient.
Definition: constantScatter.C:67
scatterModel.H
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
Foam::radiation::constantScatter::~constantScatter
virtual ~constantScatter()=default
Destructor.
Foam::radiation::constantScatter::constantScatter
constantScatter(const dictionary &dict, const fvMesh &mesh)
Construct from components.
Definition: constantScatter.C:52
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 a number of values (eg,...
Definition: dictionary.H:123
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:6
Foam::dimensioned< scalar >
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::constantScatter
Constant radiation scatter coefficient.
Definition: constantScatter.H:55
Foam::radiation::constantScatter::TypeName
TypeName("constantScatter")
Runtime type information.
Foam::radiation::scatterModel
Base class for radiation scattering.
Definition: scatterModel.H:52