greyDiffusiveRadiationMixedFvPatchScalarField.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 | Copyright (C) 2011-2015 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::greyDiffusiveRadiationMixedFvPatchScalarField
26 
27 Group
28  grpThermoBoundaryConditions
29 
30 Description
31  This boundary condition provides a grey-diffuse condition for radiation
32  intensity, \c I, for use with the finite-volume discrete-ordinates model
33  (fvDOM), in which the radiation temperature is retrieved from the
34  temperature field boundary condition.
35 
36  \heading Patch usage
37 
38  \table
39  Property | Description | Required | Default value
40  T | temperature field name | no | T
41  emissivityMode | emissivity mode: solidRadiation or lookup | yes |
42  \endtable
43 
44  Example of the boundary condition specification:
45  \verbatim
46  myPatch
47  {
48  type greyDiffusiveRadiation;
49  T T;
50  emissivityMode solidRadiation;
51  value uniform 0;
52  }
53  \endverbatim
54 
55 SeeAlso
56  Foam::radiationCoupledBase
57  Foam::radiation::radiationModel
58  Foam::radiation::fvDOM
59  Foam::mixedFvPatchField
60 
61 SourceFiles
62  greyDiffusiveRadiationMixedFvPatchScalarField.C
63 
64 \*---------------------------------------------------------------------------*/
65 
66 #ifndef greyDiffusiveRadiationMixedFvPatchScalarField_H
67 #define greyDiffusiveRadiationMixedFvPatchScalarField_H
68 
69 #include "mixedFvPatchFields.H"
70 #include "radiationCoupledBase.H"
71 
72 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
73 
74 namespace Foam
75 {
76 namespace radiation
77 {
78 /*---------------------------------------------------------------------------*\
79  Class greyDiffusiveRadiationMixedFvPatchScalarField Declaration
80 \*---------------------------------------------------------------------------*/
81 
82 class greyDiffusiveRadiationMixedFvPatchScalarField
83 :
84  public mixedFvPatchScalarField,
86 {
87  // Private data
88 
89  //- Name of temperature field
90  word TName_;
91 
92 
93 public:
94 
95  //- Runtime type information
96  TypeName("greyDiffusiveRadiation");
97 
98 
99  // Constructors
100 
101  //- Construct from patch and internal field
103  (
104  const fvPatch&,
106  );
107 
108  //- Construct from patch, internal field and dictionary
110  (
111  const fvPatch&,
113  const dictionary&
114  );
115 
116  //- Construct by mapping given a
117  // greyDiffusiveRadiationMixedFvPatchScalarField onto a new patch
119  (
121  const fvPatch&,
123  const fvPatchFieldMapper&
124  );
125 
126  //- Construct as copy
128  (
130  );
131 
132  //- Construct and return a clone
133  virtual tmp<fvPatchScalarField> clone() const
134  {
136  (
138  );
139  }
140 
141  //- Construct as copy setting internal field reference
143  (
146  );
148  //- Construct and return a clone setting internal field reference
150  (
152  ) const
153  {
155  (
157  );
158  }
159 
160 
161  // Member functions
162 
163  // Access
165  //- Return the temperature field name
166  const word& TName() const
167  {
168  return TName_;
169  }
170 
171  //- Return reference to the temperature field name to allow
172  // adjustment
173  word& TName()
174  {
175  return TName_;
176  }
177 
178 
179  // Evaluation functions
181  //- Update the coefficients associated with the patch field
182  virtual void updateCoeffs();
183 
184 
185  // I-O
186 
187  //- Write
188  virtual void write(Ostream&) const;
189 };
190 
191 
192 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
193 
194 } // End namespace radiation
195 } // End namespace Foam
196 
197 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
198 
199 #endif
200 
201 // ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A class for handling words, derived from string.
Definition: word.H:59
Foam::fvPatchFieldMapper.
Common functions to emissivity. It gets supplied from lookup into a dictionary or calculated by the s...
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
Namespace for OpenFOAM.
greyDiffusiveRadiationMixedFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
This boundary condition provides a grey-diffuse condition for radiation intensity, I, for use with the finite-volume discrete-ordinates model (fvDOM), in which the radiation temperature is retrieved from the temperature field boundary condition.
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
virtual tmp< fvPatchScalarField > clone() const
Construct and return a clone.
TypeName("greyDiffusiveRadiation")
Runtime type information.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Definition: Ostream.H:53
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:61
A class for managing temporary objects.
Definition: PtrList.H:118