FreeFOAM The Cross-Platform CFD Toolkit
MarshakRadiationFixedTMixedFvPatchScalarField.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 | Copyright (C) 1991-2010 OpenCFD Ltd.
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::MarshakRadiationFixedTMixedFvPatchScalarField
26 
27 Description
28  Marshak boundary for radiation G field
29  - radiation temperature specified
30 
31 SourceFiles
32  MarshakRadiationFixedTMixedFvPatchScalarField.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef MarshakRadiationFixedTMixedFvPatchField_H
37 #define MarshakRadiationFixedTMixedFvPatchField_H
38 
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 
46 /*---------------------------------------------------------------------------*\
47  Class MarshakRadiationFixedTMixedFvPatchScalarField Declaration
48 \*---------------------------------------------------------------------------*/
49 
51 :
52  public mixedFvPatchScalarField
53 {
54 
55  // Private data
56 
57  //- Radiation temperature field
58  scalarField Trad_;
59 
60  //- Emissivity
61  scalar emissivity_;
62 
63 
64 public:
65 
66  //- Runtime type information
67  TypeName("MarshakRadiationFixedT");
68 
69 
70  // Constructors
71 
72  //- Construct from patch and internal field
74  (
75  const fvPatch&,
77  );
78 
79  //- Construct from patch, internal field and dictionary
81  (
82  const fvPatch&,
84  const dictionary&
85  );
86 
87  //- Construct by mapping given MarshakRadiationFvPatchField onto a new
88  // patch
90  (
92  const fvPatch&,
94  const fvPatchFieldMapper&
95  );
96 
97  //- Construct as copy
99  (
101  );
102 
103  //- Construct and return a clone
105  {
107  (
109  );
110  }
111 
112  //- Construct as copy setting internal field reference
114  (
117  );
118 
119  //- Construct and return a clone setting internal field reference
121  (
123  ) const
124  {
126  (
128  );
129  }
130 
131 
132  // Member functions
133 
134  // Access
135 
136  //- Return the radiation temperature
137  const scalarField& Trad() const
138  {
139  return Trad_;
140  }
141 
142  //- Return reference to the radiation temperature to allow
143  // adjustment
145  {
146  return Trad_;
147  }
148 
149  //- Return the emissivity
150  const scalar& emissivity() const
151  {
152  return emissivity_;
153  }
154 
155  //- Return reference to the emissivity to allow adjustment
156  scalar& emissivity()
157  {
158  return emissivity_;
159  }
160 
161 
162  // Mapping functions
163 
164  //- Map (and resize as needed) from self given a mapping object
165  virtual void autoMap
166  (
167  const fvPatchFieldMapper&
168  );
169 
170  //- Reverse map the given fvPatchField onto this fvPatchField
171  virtual void rmap
172  (
173  const fvPatchScalarField&,
174  const labelList&
175  );
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 // ************************ vim: set sw=4 sts=4 et: ************************ //