All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
P1.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::P1
26 
27 Description
28  Works well for combustion applications where optical thickness, tau is
29  large, i.e. tau = a*L > 3 (L = distance between objects)
30 
31  Assumes
32  - all surfaces are diffuse
33  - tends to over predict radiative fluxes from sources/sinks
34  *** SOURCES NOT CURRENTLY INCLUDED ***
35 
36 SourceFiles
37  P1.C
38 
39 \*---------------------------------------------------------------------------*/
40 
41 #ifndef radiation_P1_H
42 #define radiation_P1_H
43 
44 #include "radiationModel.H"
45 #include "volFields.H"
46 
47 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 
49 namespace Foam
50 {
51 namespace radiationModels
52 {
53 
54 /*---------------------------------------------------------------------------*\
55  Class P1 Declaration
56 \*---------------------------------------------------------------------------*/
57 
58 class P1
59 :
60  public radiationModel
61 {
62  // Private Data
63 
64  //- Incident radiation / [W/m^2]
65  volScalarField G_;
66 
67  //- Total radiative heat flux [W/m^2]
68  volScalarField qr_;
69 
70  //- Absorption coefficient
71  volScalarField a_;
72 
73  //- Emission coefficient
74  volScalarField e_;
75 
76  //- Emission contribution
77  volScalarField E_;
78 
79 
80 public:
81 
82  //- Runtime type information
83  TypeName("P1");
84 
85 
86  // Constructors
87 
88  //- Construct from components
89  P1(const volScalarField& T);
90 
91  //- Construct from components
92  P1(const dictionary& dict, const volScalarField& T);
93 
94  //- Disallow default bitwise copy construction
95  P1(const P1&) = delete;
96 
97 
98  //- Destructor
99  virtual ~P1();
100 
101 
102  // Member Functions
103 
104  // Edit
105 
106  //- Solve radiation equation(s)
107  void calculate();
108 
109  //- Read radiation properties dictionary
110  bool read();
111 
112 
113  // Access
114 
115  //- Source term component (for power of T^4)
116  virtual tmp<volScalarField> Rp() const;
117 
118  //- Source term component (constant)
119  virtual tmp<volScalarField::Internal> Ru() const;
120 
121 
122  // Member Operators
123 
124  //- Disallow default bitwise assignment
125  void operator=(const P1&) = delete;
126 };
127 
128 
129 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
130 
131 } // End namespace radiationModels
132 } // End namespace Foam
133 
134 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
135 
136 #endif
137 
138 // ************************************************************************* //
dictionary dict
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:158
void calculate()
Solve radiation equation(s)
Definition: P1.C:211
void operator=(const P1 &)=delete
Disallow default bitwise assignment.
Works well for combustion applications where optical thickness, tau is large, i.e. tau = a*L > 3 (L = distance between objects)
Definition: P1.H:57
Top level model for radiation modelling.
TypeName("P1")
Runtime type information.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
virtual tmp< volScalarField > Rp() const
Source term component (for power of T^4)
Definition: P1.C:258
virtual ~P1()
Destructor.
Definition: P1.C:192
bool read()
Read radiation properties dictionary.
Definition: P1.C:198
virtual tmp< volScalarField::Internal > Ru() const
Source term component (constant)
Definition: P1.C:269
P1(const volScalarField &T)
Construct from components.
Definition: P1.C:50
A class for managing temporary objects.
Definition: PtrList.H:53
Namespace for OpenFOAM.