greyDiffusiveRadiationMixedFvPatchScalarField.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 | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2011-2016 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 Class
27  Foam::radiation::greyDiffusiveRadiationMixedFvPatchScalarField
28 
29 Group
30  grpThermoBoundaryConditions
31 
32 Description
33  This boundary condition provides a grey-diffuse condition for radiation
34  intensity, \c I, for use with the finite-volume discrete-ordinates model
35  (fvDOM), in which the radiation temperature is retrieved from the
36  temperature field boundary condition.
37 
38 Usage
39  \table
40  Property | Description | Required | Default value
41  T | temperature field name | no | T
42  \endtable
43 
44  Example of the boundary condition specification:
45  \verbatim
46  <patchName>
47  {
48  type greyDiffusiveRadiation;
49  T T;
50  value uniform 0;
51  }
52  \endverbatim
53 
54 See also
55  Foam::radiation::radiationModel
56  Foam::radiation::fvDOM
57  Foam::radiationCoupledBase
58  Foam::mixedFvPatchField
59 
60 SourceFiles
61  greyDiffusiveRadiationMixedFvPatchScalarField.C
62 
63 \*---------------------------------------------------------------------------*/
64 
65 #ifndef greyDiffusiveRadiationMixedFvPatchScalarField_H
66 #define greyDiffusiveRadiationMixedFvPatchScalarField_H
67 
68 #include "mixedFvPatchFields.H"
69 
70 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
71 
72 namespace Foam
73 {
74 namespace radiation
75 {
76 /*---------------------------------------------------------------------------*\
77  Class greyDiffusiveRadiationMixedFvPatchScalarField Declaration
78 \*---------------------------------------------------------------------------*/
79 
80 class greyDiffusiveRadiationMixedFvPatchScalarField
81 :
82  public mixedFvPatchScalarField
83 {
84  // Private data
85 
86  //- Name of temperature field
87  word TName_;
88 
89 public:
90 
91  //- Runtime type information
92  TypeName("greyDiffusiveRadiation");
93 
94 
95  // Constructors
96 
97  //- Construct from patch and internal field
99  (
100  const fvPatch&,
102  );
103 
104  //- Construct from patch, internal field and dictionary
106  (
107  const fvPatch&,
109  const dictionary&
110  );
111 
112  //- Construct by mapping given a
113  // greyDiffusiveRadiationMixedFvPatchScalarField onto a new patch
115  (
117  const fvPatch&,
119  const fvPatchFieldMapper&
120  );
121 
122  //- Construct as copy
124  (
126  );
127 
128  //- Construct and return a clone
129  virtual tmp<fvPatchScalarField> clone() const
130  {
132  (
134  );
135  }
136 
137  //- Construct as copy setting internal field reference
139  (
142  );
143 
144  //- Construct and return a clone setting internal field reference
146  (
148  ) const
149  {
151  (
153  );
154  }
155 
156 
157  // Member functions
158 
159  // Access
160 
161  //- Return the temperature field name
162  const word& TName() const
163  {
164  return TName_;
165  }
166 
167  //- Return reference to the temperature field name to allow
168  // adjustment
169  word& TName()
170  {
171  return TName_;
172  }
173 
174 
175  // Evaluation functions
176 
177  //- Update the coefficients associated with the patch field
178  virtual void updateCoeffs();
179 
180 
181  // I-O
182 
183  //- Write
184  virtual void write(Ostream&) const;
185 };
186 
187 
188 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
189 
190 } // End namespace Foam
191 }
192 
193 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
194 
195 #endif
196 
197 // ************************************************************************* //
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
Foam::radiation::greyDiffusiveRadiationMixedFvPatchScalarField::greyDiffusiveRadiationMixedFvPatchScalarField
greyDiffusiveRadiationMixedFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
Definition: greyDiffusiveRadiationMixedFvPatchScalarField.C:46
Foam::radiation::greyDiffusiveRadiationMixedFvPatchScalarField
This boundary condition provides a grey-diffuse condition for radiation intensity,...
Definition: greyDiffusiveRadiationMixedFvPatchScalarField.H:89
Foam::fvPatch
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:65
radiation
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
mixedFvPatchFields.H
Foam::radiation::greyDiffusiveRadiationMixedFvPatchScalarField::clone
virtual tmp< fvPatchScalarField > clone() const
Construct and return a clone.
Definition: greyDiffusiveRadiationMixedFvPatchScalarField.H:138
Foam::radiation::greyDiffusiveRadiationMixedFvPatchScalarField::write
virtual void write(Ostream &) const
Write.
Definition: greyDiffusiveRadiationMixedFvPatchScalarField.C:305
Foam::radiation::greyDiffusiveRadiationMixedFvPatchScalarField::TName
const word & TName() const
Return the temperature field name.
Definition: greyDiffusiveRadiationMixedFvPatchScalarField.H:171
Foam::radiation::greyDiffusiveRadiationMixedFvPatchScalarField::updateCoeffs
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Definition: greyDiffusiveRadiationMixedFvPatchScalarField.C:133
Foam::fvPatchFieldMapper
Foam::fvPatchFieldMapper.
Definition: fvPatchFieldMapper.H:47
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:56
Foam::radiation::greyDiffusiveRadiationMixedFvPatchScalarField::TypeName
TypeName("greyDiffusiveRadiation")
Runtime type information.
Foam::DimensionedField
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Definition: DimensionedField.H:54