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-------------------------------------------------------------------------------
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::radiation::P1
28
29Group
30 grpRadiationModels
31
32Description
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
41SourceFiles
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
54namespace Foam
55{
56namespace radiation
57{
58
59/*---------------------------------------------------------------------------*\
60 Class P1 Declaration
61\*---------------------------------------------------------------------------*/
63class P1
64:
65 public radiationModel
66{
67 // Private data
68
69 //- Incident radiation / [W/m2]
71
72 //- Total radiative heat flux [W/m2]
74
75 //- Absorption coefficient
77
78 //- Emission coefficient
80
81 //- Emission contribution
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
94public:
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// ************************************************************************* //
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
Works well for combustion applications where optical thickness, tau is large, i.e....
Definition: P1.H:65
virtual tmp< volScalarField::Internal > Ru() const
Source term component (constant)
Definition: P1.C:277
virtual tmp< volScalarField > Rp() const
Source term component (for power of T^4)
Definition: P1.C:255
label nBands() const
Number of bands.
Definition: P1.C:287
virtual ~P1()=default
Destructor.
TypeName("P1")
Runtime type information.
bool read()
Read radiation properties dictionary.
Definition: P1.C:195
void calculate()
Solve radiation equation(s)
Definition: P1.C:208
Top level model for radiation modelling.
A class for managing temporary objects.
Definition: tmp.H:65
const volScalarField & T
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
Namespace for OpenFOAM.
dictionary dict
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73