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-2013 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]
67 
68  //- Radiation 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 // ************************************************************************* //
volFieldsFwd.H
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:118
Foam::regionModels::surfaceFilmModels::constantRadiation::TypeName
TypeName("constantRadiation")
Runtime type information.
Foam::regionModels::surfaceFilmModels::constantRadiation::QrConst_
volScalarField QrConst_
Constant radiative flux [kg/s3].
Definition: constantRadiation.H:65
Foam::regionModels::surfaceFilmModels::constantRadiation::mask_
volScalarField mask_
Radiation mask.
Definition: constantRadiation.H:68
Foam::regionModels::surfaceFilmModels::filmSubModelBase::owner
const surfaceFilmModel & owner() const
Return const access to the owner surface film model.
Definition: filmSubModelBaseI.H:37
Foam::regionModels::surfaceFilmModels::constantRadiation::operator=
void operator=(const constantRadiation &)
Disallow default bitwise assignment.
Foam::regionModels::surfaceFilmModels::constantRadiation::duration_
const scalar duration_
Duration [s].
Definition: constantRadiation.H:77
Foam::regionModels::surfaceFilmModels::constantRadiation::Shs
virtual tmp< volScalarField > Shs()
Return the radiation sensible enthalpy source.
Definition: constantRadiation.C:105
Foam::subModelBase::dict
const dictionary & dict() const
Return const access to the cloud dictionary.
Definition: subModelBase.C:110
Foam::regionModels::surfaceFilmModels::constantRadiation::~constantRadiation
virtual ~constantRadiation()
Destructor.
Definition: constantRadiation.C:95
Foam::regionModels::surfaceFilmModels::constantRadiation::absorptivity_
scalar absorptivity_
Absorptivity.
Definition: constantRadiation.H:71
Foam::dictionary
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:137
Foam::regionModels::surfaceFilmModels::constantRadiation::correct
virtual void correct()
Correct.
Definition: constantRadiation.C:101
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
filmRadiationModel.H
Foam::regionModels::surfaceFilmModels::constantRadiation::constantRadiation
constantRadiation(const constantRadiation &)
Disallow default bitwise copy construct.
Foam::regionModels::surfaceFilmModels::constantRadiation
Definition: constantRadiation.H:56
Foam::regionModels::surfaceFilmModels::surfaceFilmModel
Base class for surface film models.
Definition: surfaceFilmModel.H:61
Foam::GeometricField
Generic GeometricField class.
Definition: surfaceFieldsFwd.H:52
Foam::regionModels::surfaceFilmModels::filmRadiationModel
Definition: filmRadiationModel.H:54
Foam::regionModels::surfaceFilmModels::constantRadiation::timeStart_
const scalar timeStart_
Time start [s].
Definition: constantRadiation.H:74