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 | www.openfoam.com
6 \\/ M anipulation |
7-------------------------------------------------------------------------------
8 Copyright (C) 2012-2017 OpenFOAM Foundation
9-------------------------------------------------------------------------------
10License
11 This file is part of OpenFOAM.
12
13 OpenFOAM is free software: you can redistribute it and/or modify it
14 under the terms of the GNU General Public License as published by
15 the Free Software Foundation, either version 3 of the License, or
16 (at your option) any later version.
17
18 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25
26Class
27 Foam::regionModels::surfaceFilmModels::constantRadiation
28
29Description
30 Film constant radiation model. The constant radiative flux is specified
31 by the user, and operated over a time interval defined by a start time and
32 duration. In addition, a mask can be applied to shield the film from the
33 radiation.
34
35SourceFiles
36 constantRadiation.C
37
38\*---------------------------------------------------------------------------*/
39
40#ifndef constantRadiation_H
41#define constantRadiation_H
42
43#include "filmRadiationModel.H"
44#include "volFieldsFwd.H"
45
46// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47
48namespace Foam
49{
50namespace regionModels
51{
52namespace surfaceFilmModels
53{
54
55/*---------------------------------------------------------------------------*\
56 Class constantRadiation Declaration
57\*---------------------------------------------------------------------------*/
60:
62{
63private:
64
65 // Private data
66
67 //- Constant radiative flux [kg/s3]
68 volScalarField qrConst_;
69
70 //- Radiation mask
71 volScalarField mask_;
72
73 //- Absorptivity
74 scalar absorptivity_;
75
76 //- Time start [s]
77 const scalar timeStart_;
78
79 //- Duration [s]
80 const scalar duration_;
81
82
83 // Private member functions
84
85 //- No copy construct
86 constantRadiation(const constantRadiation&) = delete;
87
88 //- No copy assignment
89 void operator=(const constantRadiation&) = delete;
90
91
92public:
93
94 //- Runtime type information
95 TypeName("constantRadiation");
96
97
98 // Constructors
99
100 //- Construct from surface film model and dictionary
102 (
104 const dictionary& dict
105 );
106
107
108 //- Destructor
109 virtual ~constantRadiation();
110
111
112 // Member Functions
113
114 // Evolution
115
116 //- Correct
117 virtual void correct();
118
119 //- Return the radiation sensible enthalpy source
120 // Also updates qrNet
121 virtual tmp<volScalarField> Shs();
122};
123
124
125// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
126
127} // End namespace surfaceFilmModels
128} // End namespace regionModels
129} // End namespace Foam
130
131// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
132
133#endif
134
135// ************************************************************************* //
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
Film constant radiation model. The constant radiative flux is specified by the user,...
virtual tmp< volScalarField > Shs()
Return the radiation sensible enthalpy source.
TypeName("constantRadiation")
Runtime type information.
const surfaceFilmRegionModel & film() const
Return const access to the film surface film model.
const dictionary & dict() const
Return const access to the cloud dictionary.
Definition: subModelBase.C:113
A class for managing temporary objects.
Definition: tmp.H:65
Namespace for OpenFOAM.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73