Loading...
Searching...
No Matches
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-------------------------------------------------------------------------------
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::constantScatter
28
29Group
30 grpRadiationScatterSubModels
31
32Description
33 Constant radiation scatter coefficient
34
35SourceFiles
36 scatterModel.C
37
38\*---------------------------------------------------------------------------*/
39
40#ifndef radiation_constantScatter_H
41#define radiation_constantScatter_H
42
43#include "scatterModel.H"
44
45// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46
47namespace Foam
48{
49namespace radiation
50{
52/*---------------------------------------------------------------------------*\
53 Class constantScatter Declaration
54\*---------------------------------------------------------------------------*/
55
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
77public:
78
79 //- Runtime type information
80 TypeName("constantScatter");
81
82
83 // Constructors
85 //- Construct from components
87
88
89 //- Destructor
90 virtual ~constantScatter() = default;
91
92
93 // Member Functions
94
95 //- Return scatter coefficient
97};
99
100// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
101
102} // End namespace radiation
103} // End namespace Foam
104
105// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
106
107#endif
108
109// ************************************************************************* //
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition dictionary.H:133
Mesh data needed to do the Finite Volume discretisation.
Definition fvMesh.H:85
virtual ~constantScatter()=default
Destructor.
tmp< volScalarField > sigmaEff() const
Return scatter coefficient.
constantScatter(const dictionary &dict, const fvMesh &mesh)
Construct from components.
TypeName("constantScatter")
Runtime type information.
scatterModel(const dictionary &dict, const fvMesh &mesh)
Construct from components.
A class for managing temporary objects.
Definition tmp.H:75
dynamicFvMesh & mesh
Namespace for radiation modelling.
Namespace for OpenFOAM.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
dictionary dict
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition typeInfo.H:68