opaqueSolid.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
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::opaqueSolid
26 
27 Description
28  Radiation for solid opaque solids - does nothing to energy equation source
29  terms (returns zeros) but creates absorptionEmissionModel and
30  scatterModel.
31 
32 SourceFiles
33  opaqueSolid.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef opaqueSolid_H
38 #define opaqueSolid_H
39 
40 #include "radiationModel.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 namespace radiation
47 {
48 
49 /*---------------------------------------------------------------------------*\
50  Class opaqueSolid Declaration
51 \*---------------------------------------------------------------------------*/
52 
53 class opaqueSolid
54 :
55  public radiationModel
56 {
57  // Private Member Functions
58 
59  //- Disallow default bitwise copy construct
60  opaqueSolid(const opaqueSolid&);
61 
62  //- Disallow default bitwise assignment
63  void operator=(const opaqueSolid&);
64 
65 
66 public:
67 
68  //- Runtime type information
69  TypeName("opaqueSolid");
70 
71 
72  // Constructors
73 
74  //- Construct from components
76 
77  //- Construct from components
78  opaqueSolid(const dictionary& dict, const volScalarField& T);
79 
80 
81  //- Destructor
82  virtual ~opaqueSolid();
83 
84 
85  // Member functions
86 
87  // Edit
88 
89  //- Solve radiation equation(s)
90  void calculate();
91 
92  //- Read radiationProperties dictionary
93  bool read();
94 
95  //- Source term component (for power of T^4)
96  tmp<volScalarField> Rp() const;
97 
98  //- Source term component (constant)
100 };
101 
102 
103 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
104 
105 } // End namespace radiation
106 } // End namespace Foam
107 
108 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
109 
110 #endif
111 
112 // ************************************************************************* //
dictionary dict
Radiation for solid opaque solids - does nothing to energy equation source terms (returns zeros) but ...
Definition: opaqueSolid.H:52
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
Top level model for radiation modelling.
virtual ~opaqueSolid()
Destructor.
Definition: opaqueSolid.C:66
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
void calculate()
Solve radiation equation(s)
Definition: opaqueSolid.C:78
bool read()
Read radiationProperties dictionary.
Definition: opaqueSolid.C:72
tmp< volScalarField > Rp() const
Source term component (for power of T^4)
Definition: opaqueSolid.C:82
A class for managing temporary objects.
Definition: PtrList.H:53
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
Namespace for OpenFOAM.
tmp< volScalarField::Internal > Ru() const
Source term component (constant)
Definition: opaqueSolid.C:109
TypeName("opaqueSolid")
Runtime type information.