wideBandDiffusiveRadiationMixedFvPatchScalarField.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::wideBandDiffusiveRadiationMixedFvPatchScalarField
26 
27 Description
28  This boundary condition provides a wide-band, diffusive radiation
29  condition, where the patch temperature is specified.
30 
31 Usage
32  \table
33  Property | Description | Required | Default value
34  T | temperature field name | no | T
35  \endtable
36 
37  Example of the boundary condition specification:
38  \verbatim
39  <patchName>
40  {
41  type wideBandDiffusiveRadiation;
42  value uniform 0;
43  }
44  \endverbatim
45 
46 See also
47  Foam::mixedFvPatchScalarField
48  Foam::radiationCoupledBase
49 
50 SourceFiles
51  wideBandDiffusiveRadiationMixedFvPatchScalarField.C
52 
53 \*---------------------------------------------------------------------------*/
54 
55 #ifndef wideBandDiffusiveRadiationMixedFvPatchScalarField_H
56 #define wideBandDiffusiveRadiationMixedFvPatchScalarField_H
57 
58 #include "mixedFvPatchFields.H"
59 #include "radiationCoupledBase.H"
60 
61 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
62 
63 namespace Foam
64 {
65 namespace radiation
66 {
67 /*---------------------------------------------------------------------------*\
68  Class wideBandDiffusiveRadiationMixedFvPatchScalarField Declaration
69 \*---------------------------------------------------------------------------*/
70 
71 class wideBandDiffusiveRadiationMixedFvPatchScalarField
72 :
73  public mixedFvPatchScalarField,
74  public radiationCoupledBase
75 {
76  // Private data
77 
78  //- Name of temperature field
79  word TName_;
80 
81 
82 public:
83 
84  //- Runtime type information
85  TypeName("wideBandDiffusiveRadiation");
86 
87 
88  // Constructors
89 
90  //- Construct from patch and internal field
92  (
93  const fvPatch&,
95  );
96 
97  //- Construct from patch, internal field and dictionary
99  (
100  const fvPatch&,
102  const dictionary&
103  );
104 
105  //- Construct by mapping given GreyDiffusiveRadiationMixedFvPatchField
106  // onto a new patch
108  (
110  const fvPatch&,
112  const fvPatchFieldMapper&
113  );
114 
115  //- Construct as copy
117  (
119  );
120 
121  //- Construct and return a clone
122  virtual tmp<fvPatchScalarField> clone() const
123  {
125  (
127  );
128  }
129 
130  //- Construct as copy setting internal field reference
132  (
135  );
136 
137  //- Construct and return a clone setting internal field reference
139  (
141  ) const
142  {
144  (
146  );
147  }
149 
150  // Member functions
151 
152  // Access
153 
154  //- Return the temperature field name
155  const word& TName() const
156  {
157  return TName_;
158  }
159 
160  //- Return reference to the temperature field name to allow
161  // adjustment
162  word& TName()
163  {
164  return TName_;
165  }
166 
167 
168  //- Map (and resize as needed) from self given a mapping object
169  virtual void autoMap
170  (
172  );
173 
174  //- Reverse map the given fvPatchField onto this fvPatchField
175  virtual void rmap
176  (
177  const fvPatchScalarField&,
178  const labelList&
179  );
180 
181 
182  // Evaluation functions
183 
184  //- Update the coefficients associated with the patch field
185  virtual void updateCoeffs();
186 
187 
188  // I-O
189 
190  //- Write
191  virtual void write(Ostream&) const;
192 };
193 
194 
195 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
196 
197 } // End namespace Foam
198 }
199 
200 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
201 
202 #endif
203 
204 // ************************************************************************* //
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
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Definition: fvPatchField.H:66
virtual tmp< fvPatchScalarField > clone() const
Construct and return a clone.
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
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
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:53
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
wideBandDiffusiveRadiationMixedFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
Namespace for OpenFOAM.