constantRadiation.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) 2012-2020 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::regionModels::surfaceFilmModels::constantRadiation
26 
27 Description
28  Film constant radiation model. The constant radiative flux is specified
29  by the user, and operated over a time interval defined by a start time and
30  duration. In addition, a mask can be applied to shield the film from the
31  radiation.
32 
33 SourceFiles
34  constantRadiation.C
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef constantRadiation_H
39 #define constantRadiation_H
40 
41 #include "filmRadiationModel.H"
42 #include "volFieldsFwd.H"
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 namespace Foam
47 {
48 namespace regionModels
49 {
50 namespace surfaceFilmModels
51 {
52 
53 /*---------------------------------------------------------------------------*\
54  Class constantRadiation Declaration
55 \*---------------------------------------------------------------------------*/
56 
58 :
59  public radiationModel
60 {
61  // Private Data
62 
63  //- Constant radiative flux [kg/s^3]
64  volScalarField qrConst_;
65 
66  //- Radiation mask
67  volScalarField mask_;
68 
69  //- Absorptivity
70  scalar absorptivity_;
71 
72  //- Time start [s]
73  const scalar timeStart_;
74 
75  //- Duration [s]
76  const scalar duration_;
77 
78 
79 public:
80 
81  //- Runtime type information
82  TypeName("constantRadiation");
83 
84 
85  // Constructors
86 
87  //- Construct from surface film model and dictionary
89  (
91  const dictionary& dict
92  );
93 
94  //- Disallow default bitwise copy construction
95  constantRadiation(const constantRadiation&) = delete;
96 
97 
98  //- Destructor
99  virtual ~constantRadiation();
100 
101 
102  // Member Functions
103 
104  // Evolution
105 
106  //- Correct
107  virtual void correct();
108 
109  //- Return the radiation sensible enthalpy source
110  // Also updates qrNet
112 
113 
114  // Member Operators
115 
116  //- Disallow default bitwise assignment
117  void operator=(const constantRadiation&) = delete;
118 };
119 
120 
121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122 
123 } // End namespace surfaceFilmModels
124 } // End namespace regionModels
125 } // End namespace Foam
126 
127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
128 
129 #endif
130 
131 // ************************************************************************* //
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:156
Film constant radiation model. The constant radiative flux is specified by the user, and operated over a time interval defined by a start time and duration. In addition, a mask can be applied to shield the film from the radiation.
virtual tmp< volScalarField::Internal > Shs()
Return the radiation sensible enthalpy source.
const dictionary & dict() const
Return const access to the cloud dictionary.
Definition: subModelBase.C:110
const surfaceFilmRegionModel & film() const
Return const access to the film surface film model.
TypeName("constantRadiation")
Runtime type information.
A class for managing temporary objects.
Definition: PtrList.H:53
void operator=(const constantRadiation &)=delete
Disallow default bitwise assignment.
constantRadiation(surfaceFilmRegionModel &film, const dictionary &dict)
Construct from surface film model and dictionary.
Namespace for OpenFOAM.