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-2018 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::radiation::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 radiation
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/m2]
65  volScalarField G_;
66 
67  //- Total radiative heat flux [W/m2]
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  // Private Member Functions
81 
82  //- Disallow default bitwise copy construct
83  P1(const P1&);
84 
85  //- Disallow default bitwise assignment
86  void operator=(const P1&);
87 
88 
89 public:
90 
91  //- Runtime type information
92  TypeName("P1");
93 
94 
95  // Constructors
96 
97  //- Construct from components
98  P1(const volScalarField& T);
99 
100  //- Construct from components
101  P1(const dictionary& dict, const volScalarField& T);
102 
103 
104  //- Destructor
105  virtual ~P1();
106 
107 
108  // Member functions
109 
110  // Edit
111 
112  //- Solve radiation equation(s)
113  void calculate();
114 
115  //- Read radiation properties dictionary
116  bool read();
117 
118 
119  // Access
120 
121  //- Source term component (for power of T^4)
122  virtual tmp<volScalarField> Rp() const;
123 
124  //- Source term component (constant)
125  virtual tmp<volScalarField::Internal> Ru() const;
126 };
127 
128 
129 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
130 
131 } // End namespace radiation
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:137
bool read()
Read radiation properties dictionary.
Definition: P1.C:198
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
virtual tmp< volScalarField::Internal > Ru() const
Source term component (constant)
Definition: P1.C:282
void calculate()
Solve radiation equation(s)
Definition: P1.C:213
Top level model for radiation modelling.
virtual ~P1()
Destructor.
Definition: P1.C:192
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:260
A class for managing temporary objects.
Definition: PtrList.H:53
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
Namespace for OpenFOAM.