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