wideBandDiffusiveRadiationMixedFvPatchScalarField.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-2016 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::wideBandDiffusiveRadiationMixedFvPatchScalarField
26 
27 Group
28  grpThermoBoundaryConditions
29 
30 Description
31  This boundary condition provides a wide-band, diffusive radiation
32  condition, where the patch temperature is specified.
33 
34 Usage
35  \table
36  Property | Description | Required | Default value
37  T | temperature field name | no | T
38  \endtable
39 
40  Example of the boundary condition specification:
41  \verbatim
42  <patchName>
43  {
44  type wideBandDiffusiveRadiation;
45  value uniform 0;
46  }
47  \endverbatim
48 
49 See also
50  Foam::mixedFvPatchScalarField
51  Foam::radiationCoupledBase
52 
53 SourceFiles
54  wideBandDiffusiveRadiationMixedFvPatchScalarField.C
55 
56 \*---------------------------------------------------------------------------*/
57 
58 #ifndef wideBandDiffusiveRadiationMixedFvPatchScalarField_H
59 #define wideBandDiffusiveRadiationMixedFvPatchScalarField_H
60 
61 #include "mixedFvPatchFields.H"
62 #include "radiationCoupledBase.H"
63 
64 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
65 
66 namespace Foam
67 {
68 namespace radiation
69 {
70 /*---------------------------------------------------------------------------*\
71  Class wideBandDiffusiveRadiationMixedFvPatchScalarField Declaration
72 \*---------------------------------------------------------------------------*/
73 
74 class wideBandDiffusiveRadiationMixedFvPatchScalarField
75 :
76  public mixedFvPatchScalarField,
77  public radiationCoupledBase
78 {
79  // Private data
80 
81  //- Name of temperature field
82  word TName_;
83 
84 
85 public:
86 
87  //- Runtime type information
88  TypeName("wideBandDiffusiveRadiation");
89 
90 
91  // Constructors
92 
93  //- Construct from patch and internal field
95  (
96  const fvPatch&,
98  );
99 
100  //- Construct from patch, internal field and dictionary
102  (
103  const fvPatch&,
105  const dictionary&
106  );
107 
108  //- Construct by mapping given GreyDiffusiveRadiationMixedFvPatchField
109  // onto a new patch
111  (
113  const fvPatch&,
115  const fvPatchFieldMapper&
116  );
117 
118  //- Construct as copy
120  (
122  );
123 
124  //- Construct and return a clone
125  virtual tmp<fvPatchScalarField> clone() const
126  {
128  (
130  );
131  }
132 
133  //- Construct as copy setting internal field reference
135  (
138  );
139 
140  //- Construct and return a clone setting internal field reference
142  (
144  ) const
145  {
147  (
149  );
150  }
152 
153  // Member functions
154 
155  // Access
156 
157  //- Return the temperature field name
158  const word& TName() const
159  {
160  return TName_;
161  }
162 
163  //- Return reference to the temperature field name to allow
164  // adjustment
165  word& TName()
166  {
167  return TName_;
168  }
169 
170 
171  // Evaluation functions
172 
173  //- Update the coefficients associated with the patch field
174  virtual void updateCoeffs();
175 
176 
177  // I-O
178 
179  //- Write
180  virtual void write(Ostream&) const;
181 };
182 
183 
184 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
185 
186 } // End namespace Foam
187 }
188 
189 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
190 
191 #endif
192 
193 // ************************************************************************* //
virtual tmp< fvPatchScalarField > clone() const
Construct and return a clone.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:61
TypeName("wideBandDiffusiveRadiation")
Runtime type information.
A class for handling words, derived from string.
Definition: word.H:59
Foam::fvPatchFieldMapper.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Definition: Ostream.H:53
This boundary condition provides a wide-band, diffusive radiation condition, where the patch temperat...
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
A class for managing temporary objects.
Definition: PtrList.H:54
wideBandDiffusiveRadiationMixedFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
Namespace for OpenFOAM.