FreeFOAM The Cross-Platform CFD Toolkit
sprayI.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 \*---------------------------------------------------------------------------*/
25 
26 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
27 
28 namespace Foam
29 {
30 
31 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
32 
33 inline const Time& spray::runTime() const
34 {
35  return runTime_;
36 }
37 
38 
39 inline const fvMesh& spray::mesh() const
40 {
41  return mesh_;
42 }
43 
44 
45 inline const volVectorField& spray::U() const
46 {
47  return U_;
48 }
49 
50 
51 inline const volScalarField& spray::rho() const
52 {
53  return rho_;
54 }
55 
56 
57 inline const volScalarField& spray::p() const
58 {
59  return p_;
60 }
61 
62 
63 inline const volScalarField& spray::T() const
64 {
65  return T_;
66 }
67 
68 
70 {
71  return injectors_;
72 }
73 
74 
75 inline const PtrList<injector>& spray::injectors() const
76 {
77  return injectors_;
78 }
79 
80 
81 inline const atomizationModel& spray::atomization() const
82 {
83  return atomization_;
84 }
85 
86 
87 inline const breakupModel& spray::breakup() const
88 {
89  return breakupModel_;
90 }
91 
92 
93 inline const collisionModel& spray::collisions() const
94 {
95  return collisionModel_;
96 }
97 
98 
99 inline const dispersionModel& spray::dispersion() const
100 {
101  return dispersionModel_;
102 }
103 
104 
105 inline const dragModel& spray::drag() const
106 {
107  return drag_;
108 }
109 
110 
112 {
113  return evaporation_;
114 }
115 
116 
118 {
119  return heatTransfer_;
120 }
121 
122 
123 inline const injectorModel& spray::injection() const
124 {
125  return injectorModel_;
126 }
127 
128 
129 inline const wallModel& spray::wall() const
130 {
131  return wall_;
132 }
133 
134 
136 {
137  tmp<volVectorField> tsource
138  (
139  new volVectorField
140  (
141  IOobject
142  (
143  "sms",
144  runTime_.timeName(),
145  mesh_,
148  ),
149  mesh_,
151  (
152  "zero",
153  dimensionSet(1, -2, -2, 0, 0),
155  )
156  )
157  );
158 
159  tsource().internalField() = sms_/runTime_.deltaT().value()/mesh_.V();
160 
161  return tsource;
162 }
163 
164 
165 inline tmp<volScalarField> spray::evaporationSource(const label si) const
166 {
167  tmp<volScalarField> tsource
168  (
169  new volScalarField
170  (
171  IOobject
172  (
173  "srhos",
174  runTime_.timeName(),
175  mesh_,
178  ),
179  mesh_,
180  dimensionedScalar("zero", dimensionSet(1, -3, -1, 0, 0), 0.0)
181  )
182  );
183 
184  if (isLiquidFuel_[si])
185  {
186  label fi = gasToLiquidIndex_[si];
187  tsource().internalField() = srhos_[fi]/runTime_.deltaT().value()/mesh_.V();
188  }
189  else
190  {
191  scalarField s(mesh_.nCells(), 0.0);
192  tsource().internalField() = s;
193  }
194 
195  return tsource;
196 }
197 
198 
200 {
201  tmp<volScalarField> tsource
202  (
203  new volScalarField
204  (
205  IOobject
206  (
207  "shs",
208  runTime_.timeName(),
209  mesh_,
212  ),
213  mesh_,
214  dimensionedScalar("zero", dimensionSet(1, -1, -3, 0, 0), 0.0)
215  )
216  );
217 
218  tsource().internalField() = shs_/runTime_.deltaT().value()/mesh_.V();
219 
220  return tsource;
221 }
222 
223 
225 {
226  return rndGen_;
227 }
228 
229 
230 inline label spray::subCycles() const
231 {
232  return subCycles_;
233 }
234 
235 
236 inline const vector& spray::g() const
237 {
238  return g_;
239 }
240 
241 
242 inline const liquidMixture& spray::fuels() const
243 {
244  return fuels_;
245 }
246 
247 
249 {
250  return gasProperties_;
251 }
252 
253 
255 {
256  return composition_;
257 }
258 
259 
261 {
262  return liquidToGasIndex_;
263 }
264 
265 
267 {
268  return gasToLiquidIndex_;
269 }
270 
271 
272 inline const List<bool>& spray::isLiquidFuel() const
273 {
274  return isLiquidFuel_;
275 }
276 
277 
278 inline const bool& spray::twoD() const
279 {
280  return twoD_;
281 }
282 
283 
284 inline const vector& spray::axisOfSymmetry() const
285 {
286  return axisOfSymmetry_;
287 }
288 
289 
290 inline const vector& spray::axisOfWedge() const
291 {
292  return axisOfWedge_;
293 }
294 
295 
296 inline const vector& spray::axisOfWedgeNormal() const
297 {
298  return axisOfWedgeNormal_;
299 }
300 
301 
302 inline const scalar& spray::angleOfWedge() const
303 {
304  return angleOfWedge_;
305 }
306 
307 
309 {
310  return UInterpolator_;
311 }
312 
313 
315 {
316  return rhoInterpolator_;
317 }
318 
319 
321 {
322  return pInterpolator_;
323 }
324 
325 
327 {
328  return TInterpolator_;
329 }
330 
331 
333 {
334  return sms_;
335 }
336 
337 
338 inline const vectorField& spray::sms() const
339 {
340  return sms_;
341 }
342 
343 
345 {
346  return shs_;
347 }
348 
349 
350 inline const scalarField& spray::shs() const
351 {
352  return shs_;
353 }
354 
355 
357 {
358  return srhos_;
359 }
360 
361 
362 inline const PtrList<scalarField>& spray::srhos() const
363 {
364  return srhos_;
365 }
366 
367 
368 inline const scalar& spray::ambientPressure() const
369 {
370  return ambientPressure_;
371 }
372 
373 
374 inline const scalar& spray::ambientTemperature() const
375 {
376  return ambientTemperature_;
377 }
378 
379 
380 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
381 
382 } // End namespace Foam
383 
384 // ************************ vim: set sw=4 sts=4 et: ************************ //