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-2020 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  //- Disallow copy without setting internal field reference
116  (
118  ) = delete;
119 
120  //- Copy constructor setting internal field reference
122  (
125  );
126 
127  //- Construct and return a clone setting internal field reference
129  (
131  ) const
132  {
134  (
136  );
137  }
139 
140  // Member Functions
141 
142  // Access
143 
144  //- Return the temperature field name
145  const word& TName() const
146  {
147  return TName_;
148  }
149 
150  //- Return reference to the temperature field name to allow
151  // adjustment
152  word& TName()
153  {
154  return TName_;
155  }
156 
157 
158  // Mapping functions
159 
160  //- Map (and resize as needed) from self given a mapping object
161  // Used to update fields following mesh topology change
162  virtual void autoMap(const fvPatchFieldMapper&);
163 
164  //- Reverse map the given fvPatchField onto this fvPatchField
165  // Used to reconstruct fields
166  virtual void rmap(const fvPatchScalarField&, const labelList&);
167 
168 
169  // Evaluation functions
170 
171  //- Update the coefficients associated with the patch field
172  virtual void updateCoeffs();
173 
174 
175  // I-O
176 
177  //- Write
178  virtual void write(Ostream&) const;
179 };
180 
181 
182 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
183 
184 } // End namespace Foam
185 
186 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
187 
188 #endif
189 
190 // ************************************************************************* //
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:156
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:62
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.
virtual tmp< fvPatchScalarField > clone(const DimensionedField< scalar, volMesh > &iF) const
Construct and return a clone setting internal field reference.
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...