constantRadiation.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 | Copyright (C) 2012-2017 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::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 filmRadiationModel
60 {
61 private:
62 
63  // Private data
64 
65  //- Constant radiative flux [kg/s3]
66  volScalarField qrConst_;
67 
68  //- Radiation mask
69  volScalarField mask_;
70 
71  //- Absorptivity
72  scalar absorptivity_;
73 
74  //- Time start [s]
75  const scalar timeStart_;
76 
77  //- Duration [s]
78  const scalar duration_;
79 
80 
81  // Private member functions
82 
83  //- Disallow default bitwise copy construct
85 
86  //- Disallow default bitwise assignment
87  void operator=(const constantRadiation&);
88 
89 
90 public:
91 
92  //- Runtime type information
93  TypeName("constantRadiation");
94 
95 
96  // Constructors
97 
98  //- Construct from surface film model and dictionary
100  (
102  const dictionary& dict
103  );
104 
105 
106  //- Destructor
107  virtual ~constantRadiation();
108 
109 
110  // Member Functions
111 
112  // Evolution
113 
114  //- Correct
115  virtual void correct();
116 
117  //- Return the radiation sensible enthalpy source
118  // Also updates qrNet
119  virtual tmp<volScalarField> Shs();
120 };
121 
122 
123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
124 
125 } // End namespace surfaceFilmModels
126 } // End namespace regionModels
127 } // End namespace Foam
128 
129 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
130 
131 #endif
132 
133 // ************************************************************************* //
const surfaceFilmModel & film() const
Return const access to the film surface film model.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
const dictionary & dict() const
Return const access to the cloud dictionary.
Definition: subModelBase.C:110
TypeName("constantRadiation")
Runtime type information.
virtual tmp< volScalarField > Shs()
Return the radiation sensible enthalpy source.
A class for managing temporary objects.
Definition: PtrList.H:53
Namespace for OpenFOAM.