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-2019 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::radiationModels::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 radiationModels
47 {
48 
49 /*---------------------------------------------------------------------------*\
50  Class opaqueSolid Declaration
51 \*---------------------------------------------------------------------------*/
52 
53 class opaqueSolid
54 :
55  public radiationModel
56 {
57 public:
58 
59  //- Runtime type information
60  TypeName("opaqueSolid");
61 
62 
63  // Constructors
64 
65  //- Construct from components
67 
68  //- Construct from components
69  opaqueSolid(const dictionary& dict, const volScalarField& T);
70 
71  //- Disallow default bitwise copy construction
72  opaqueSolid(const opaqueSolid&) = delete;
73 
74 
75  //- Destructor
76  virtual ~opaqueSolid();
77 
78 
79  // Member Functions
80 
81  // Edit
82 
83  //- Solve radiation equation(s)
84  void calculate();
85 
86  //- Read radiationProperties dictionary
87  bool read();
88 
89  //- Source term component (for power of T^4)
90  tmp<volScalarField> Rp() const;
91 
92  //- Source term component (constant)
94 
95 
96  // Member Operators
97 
98  //- Disallow default bitwise assignment
99  void operator=(const opaqueSolid&) = delete;
100 };
101 
102 
103 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
104 
105 } // End namespace radiationModels
106 } // End namespace Foam
107 
108 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
109 
110 #endif
111 
112 // ************************************************************************* //
dictionary dict
virtual ~opaqueSolid()
Destructor.
Definition: opaqueSolid.C:66
tmp< volScalarField::Internal > Ru() const
Source term component (constant)
Definition: opaqueSolid.C:98
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:156
opaqueSolid(const volScalarField &T)
Construct from components.
Definition: opaqueSolid.C:48
Radiation for solid opaque solids - does nothing to energy equation source terms (returns zeros) but ...
Definition: opaqueSolid.H:52
void calculate()
Solve radiation equation(s)
Definition: opaqueSolid.C:78
Top level model for radiation modelling.
bool read()
Read radiationProperties dictionary.
Definition: opaqueSolid.C:72
void operator=(const opaqueSolid &)=delete
Disallow default bitwise assignment.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
TypeName("opaqueSolid")
Runtime type information.
A class for managing temporary objects.
Definition: PtrList.H:53
tmp< volScalarField > Rp() const
Source term component (for power of T^4)
Definition: opaqueSolid.C:82
Namespace for OpenFOAM.