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-2023 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, internal field and dictionary
91  (
92  const fvPatch&,
94  const dictionary&
95  );
96 
97  //- Construct by mapping given GreyDiffusiveRadiationMixedFvPatchField
98  // onto a new patch
100  (
102  const fvPatch&,
104  const fvPatchFieldMapper&
105  );
106 
107  //- Disallow copy without setting internal field reference
109  (
111  ) = delete;
112 
113  //- Copy constructor setting internal field reference
115  (
118  );
119 
120  //- Construct and return a clone setting internal field reference
122  (
124  ) const
125  {
127  (
129  );
130  }
131 
132 
133  // Member Functions
134 
135  // Access
136 
137  //- Return the temperature field name
138  const word& TName() const
139  {
140  return TName_;
141  }
142 
143  //- Return reference to the temperature field name to allow
144  // adjustment
145  word& TName()
146  {
147  return TName_;
148  }
149 
150 
151  // Mapping functions
152 
153  //- Map the given fvPatchField onto this fvPatchField
154  virtual void map
155  (
156  const fvPatchScalarField&,
157  const fvPatchFieldMapper&
158  );
159 
160  //- Reset the fvPatchField to the given fvPatchField
161  // Used for mesh to mesh mapping
162  virtual void reset(const fvPatchScalarField&);
163 
164 
165  // Evaluation functions
166 
167  //- Update the coefficients associated with the patch field
168  virtual void updateCoeffs();
169 
170 
171  // I-O
172 
173  //- Write
174  virtual void write(Ostream&) const;
175 };
176 
177 
178 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
179 
180 } // End namespace Foam
181 
182 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
183 
184 #endif
185 
186 // ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:57
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:160
Foam::fvPatchFieldMapper.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Definition: fvPatchField.H:87
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:64
A class for managing temporary objects.
Definition: tmp.H:55
This boundary condition provides a wide-band, diffusive radiation condition, where the patch temperat...
virtual void reset(const fvPatchScalarField &)
Reset the fvPatchField to the given fvPatchField.
virtual tmp< fvPatchScalarField > clone(const DimensionedField< scalar, volMesh > &iF) const
Construct and return a clone setting internal field reference.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void map(const fvPatchScalarField &, const fvPatchFieldMapper &)
Map the given fvPatchField onto this fvPatchField.
wideBandDiffusiveRadiationMixedFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
TypeName("wideBandDiffusiveRadiation")
Runtime type information.
A class for handling words, derived from string.
Definition: word.H:62
Namespace for OpenFOAM.