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-2019 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::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 
66 /*---------------------------------------------------------------------------*\
67  Class wideBandDiffusiveRadiationMixedFvPatchScalarField Declaration
68 \*---------------------------------------------------------------------------*/
69 
70 class wideBandDiffusiveRadiationMixedFvPatchScalarField
71 :
72  public mixedFvPatchScalarField,
73  public radiationCoupledBase
74 {
75  // Private Data
76 
77  //- Name of temperature field
78  word TName_;
79 
80 
81 public:
82 
83  //- Runtime type information
84  TypeName("wideBandDiffusiveRadiation");
85 
86 
87  // Constructors
88 
89  //- Construct from patch and internal field
91  (
92  const fvPatch&,
94  );
95 
96  //- Construct from patch, internal field and dictionary
98  (
99  const fvPatch&,
101  const dictionary&
102  );
103 
104  //- Construct by mapping given GreyDiffusiveRadiationMixedFvPatchField
105  // onto a new patch
107  (
109  const fvPatch&,
111  const fvPatchFieldMapper&
112  );
113 
114  //- Copy constructor
116  (
118  );
119 
120  //- Construct and return a clone
121  virtual tmp<fvPatchScalarField> clone() const
122  {
124  (
126  );
127  }
128 
129  //- Copy constructor setting internal field reference
131  (
134  );
135 
136  //- Construct and return a clone setting internal field reference
138  (
140  ) const
141  {
143  (
145  );
146  }
148 
149  // Member Functions
150 
151  // Access
152 
153  //- Return the temperature field name
154  const word& TName() const
155  {
156  return TName_;
157  }
158 
159  //- Return reference to the temperature field name to allow
160  // adjustment
161  word& TName()
162  {
163  return TName_;
164  }
165 
166 
167  // Mapping functions
168 
169  //- Map (and resize as needed) from self given a mapping object
170  // Used to update fields following mesh topology change
171  virtual void autoMap(const fvPatchFieldMapper&);
172 
173  //- Reverse map the given fvPatchField onto this fvPatchField
174  // Used to reconstruct fields
175  virtual void rmap(const fvPatchScalarField&, const labelList&);
176 
177 
178  // Evaluation functions
179 
180  //- Update the coefficients associated with the patch field
181  virtual void updateCoeffs();
182 
183 
184  // I-O
185 
186  //- Write
187  virtual void write(Ostream&) const;
188 };
189 
190 
191 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
192 
193 } // End namespace Foam
194 
195 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
196 
197 #endif
198 
199 // ************************************************************************* //
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:158
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
TypeName("wideBandDiffusiveRadiation")
Runtime type information.
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
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:54
wideBandDiffusiveRadiationMixedFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
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
Namespace for OpenFOAM.
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...