OpenFOAM: API Guide
v2112
The open source CFD toolbox
BasicChemistryModels.C
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-2018 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
InClass
27
Foam::psiChemistryModel
28
29
Description
30
Creates chemistry model instances templated on the type of thermodynamics
31
32
\*---------------------------------------------------------------------------*/
33
34
#include "
makeChemistryModel.H
"
35
36
#include "
psiReactionThermo.H
"
37
#include "
rhoReactionThermo.H
"
38
39
#include "
StandardChemistryModel.H
"
40
#include "
TDACChemistryModel.H
"
41
#include "
thermoPhysicsTypes.H
"
42
43
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44
45
namespace
Foam
46
{
47
// Make base types
48
makeChemistryModel
(
psiReactionThermo
);
49
makeChemistryModel
(
rhoReactionThermo
);
50
51
// Chemistry moldels based on sensibleEnthalpy
52
makeChemistryModelType
53
(
54
StandardChemistryModel
,
55
psiReactionThermo
,
56
constGasHThermoPhysics
57
);
58
59
makeChemistryModelType
60
(
61
StandardChemistryModel
,
62
psiReactionThermo
,
63
gasHThermoPhysics
64
);
65
66
makeChemistryModelType
67
(
68
StandardChemistryModel
,
69
psiReactionThermo
,
70
constIncompressibleGasHThermoPhysics
71
);
72
73
makeChemistryModelType
74
(
75
StandardChemistryModel
,
76
psiReactionThermo
,
77
incompressibleGasHThermoPhysics
78
);
79
80
makeChemistryModelType
81
(
82
StandardChemistryModel
,
83
psiReactionThermo
,
84
icoPoly8HThermoPhysics
85
);
86
87
makeChemistryModelType
88
(
89
StandardChemistryModel
,
90
psiReactionThermo
,
91
constFluidHThermoPhysics
92
);
93
94
makeChemistryModelType
95
(
96
StandardChemistryModel
,
97
psiReactionThermo
,
98
constAdiabaticFluidHThermoPhysics
99
);
100
101
makeChemistryModelType
102
(
103
StandardChemistryModel
,
104
psiReactionThermo
,
105
constHThermoPhysics
106
);
107
108
109
makeChemistryModelType
110
(
111
StandardChemistryModel
,
112
rhoReactionThermo
,
113
constGasHThermoPhysics
114
);
115
116
makeChemistryModelType
117
(
118
StandardChemistryModel
,
119
rhoReactionThermo
,
120
gasHThermoPhysics
121
);
122
123
makeChemistryModelType
124
(
125
StandardChemistryModel
,
126
rhoReactionThermo
,
127
constIncompressibleGasHThermoPhysics
128
);
129
130
makeChemistryModelType
131
(
132
StandardChemistryModel
,
133
rhoReactionThermo
,
134
incompressibleGasHThermoPhysics
135
);
136
137
makeChemistryModelType
138
(
139
StandardChemistryModel
,
140
rhoReactionThermo
,
141
icoPoly8HThermoPhysics
142
);
143
144
makeChemistryModelType
145
(
146
StandardChemistryModel
,
147
rhoReactionThermo
,
148
constFluidHThermoPhysics
149
);
150
151
makeChemistryModelType
152
(
153
StandardChemistryModel
,
154
rhoReactionThermo
,
155
constAdiabaticFluidHThermoPhysics
156
);
157
158
makeChemistryModelType
159
(
160
StandardChemistryModel
,
161
rhoReactionThermo
,
162
constHThermoPhysics
163
);
164
165
166
makeChemistryModelType
167
(
168
TDACChemistryModel
,
169
psiReactionThermo
,
170
constGasHThermoPhysics
171
);
172
173
makeChemistryModelType
174
(
175
TDACChemistryModel
,
176
psiReactionThermo
,
177
gasHThermoPhysics
178
);
179
180
makeChemistryModelType
181
(
182
TDACChemistryModel
,
183
psiReactionThermo
,
184
constIncompressibleGasHThermoPhysics
185
);
186
187
makeChemistryModelType
188
(
189
TDACChemistryModel
,
190
psiReactionThermo
,
191
incompressibleGasHThermoPhysics
192
);
193
194
makeChemistryModelType
195
(
196
TDACChemistryModel
,
197
psiReactionThermo
,
198
icoPoly8HThermoPhysics
199
);
200
201
makeChemistryModelType
202
(
203
TDACChemistryModel
,
204
psiReactionThermo
,
205
constFluidHThermoPhysics
206
);
207
208
makeChemistryModelType
209
(
210
TDACChemistryModel
,
211
psiReactionThermo
,
212
constAdiabaticFluidHThermoPhysics
213
);
214
215
makeChemistryModelType
216
(
217
TDACChemistryModel
,
218
psiReactionThermo
,
219
constHThermoPhysics
220
);
221
222
223
makeChemistryModelType
224
(
225
TDACChemistryModel
,
226
rhoReactionThermo
,
227
constGasHThermoPhysics
228
);
229
230
makeChemistryModelType
231
(
232
TDACChemistryModel
,
233
rhoReactionThermo
,
234
gasHThermoPhysics
235
);
236
237
makeChemistryModelType
238
(
239
TDACChemistryModel
,
240
rhoReactionThermo
,
241
constIncompressibleGasHThermoPhysics
242
);
243
244
makeChemistryModelType
245
(
246
TDACChemistryModel
,
247
rhoReactionThermo
,
248
incompressibleGasHThermoPhysics
249
);
250
251
makeChemistryModelType
252
(
253
TDACChemistryModel
,
254
rhoReactionThermo
,
255
icoPoly8HThermoPhysics
256
);
257
258
makeChemistryModelType
259
(
260
TDACChemistryModel
,
261
rhoReactionThermo
,
262
constFluidHThermoPhysics
263
);
264
265
makeChemistryModelType
266
(
267
TDACChemistryModel
,
268
rhoReactionThermo
,
269
constAdiabaticFluidHThermoPhysics
270
);
271
272
makeChemistryModelType
273
(
274
TDACChemistryModel
,
275
rhoReactionThermo
,
276
constHThermoPhysics
277
);
278
279
280
// Chemistry moldels based on sensibleInternalEnergy
281
makeChemistryModelType
282
(
283
StandardChemistryModel
,
284
psiReactionThermo
,
285
constGasEThermoPhysics
286
);
287
288
makeChemistryModelType
289
(
290
StandardChemistryModel
,
291
psiReactionThermo
,
292
gasEThermoPhysics
293
);
294
295
makeChemistryModelType
296
(
297
StandardChemistryModel
,
298
psiReactionThermo
,
299
constIncompressibleGasEThermoPhysics
300
);
301
302
makeChemistryModelType
303
(
304
StandardChemistryModel
,
305
psiReactionThermo
,
306
incompressibleGasEThermoPhysics
307
);
308
309
makeChemistryModelType
310
(
311
StandardChemistryModel
,
312
psiReactionThermo
,
313
icoPoly8EThermoPhysics
314
);
315
316
makeChemistryModelType
317
(
318
StandardChemistryModel
,
319
psiReactionThermo
,
320
constFluidEThermoPhysics
321
);
322
323
makeChemistryModelType
324
(
325
StandardChemistryModel
,
326
psiReactionThermo
,
327
constAdiabaticFluidEThermoPhysics
328
);
329
330
makeChemistryModelType
331
(
332
StandardChemistryModel
,
333
psiReactionThermo
,
334
constEThermoPhysics
335
);
336
337
338
339
makeChemistryModelType
340
(
341
StandardChemistryModel
,
342
rhoReactionThermo
,
343
constGasEThermoPhysics
344
);
345
346
makeChemistryModelType
347
(
348
StandardChemistryModel
,
349
rhoReactionThermo
,
350
gasEThermoPhysics
351
);
352
353
makeChemistryModelType
354
(
355
StandardChemistryModel
,
356
rhoReactionThermo
,
357
constIncompressibleGasEThermoPhysics
358
);
359
360
makeChemistryModelType
361
(
362
StandardChemistryModel
,
363
rhoReactionThermo
,
364
incompressibleGasEThermoPhysics
365
);
366
367
makeChemistryModelType
368
(
369
StandardChemistryModel
,
370
rhoReactionThermo
,
371
icoPoly8EThermoPhysics
372
);
373
374
makeChemistryModelType
375
(
376
StandardChemistryModel
,
377
rhoReactionThermo
,
378
constFluidEThermoPhysics
379
);
380
381
makeChemistryModelType
382
(
383
StandardChemistryModel
,
384
rhoReactionThermo
,
385
constAdiabaticFluidEThermoPhysics
386
);
387
388
makeChemistryModelType
389
(
390
StandardChemistryModel
,
391
rhoReactionThermo
,
392
constEThermoPhysics
393
);
394
395
396
makeChemistryModelType
397
(
398
TDACChemistryModel
,
399
psiReactionThermo
,
400
constGasEThermoPhysics
401
);
402
403
makeChemistryModelType
404
(
405
TDACChemistryModel
,
406
psiReactionThermo
,
407
gasEThermoPhysics
408
);
409
410
makeChemistryModelType
411
(
412
TDACChemistryModel
,
413
psiReactionThermo
,
414
constIncompressibleGasEThermoPhysics
415
);
416
417
makeChemistryModelType
418
(
419
TDACChemistryModel
,
420
psiReactionThermo
,
421
incompressibleGasEThermoPhysics
422
);
423
424
makeChemistryModelType
425
(
426
TDACChemistryModel
,
427
psiReactionThermo
,
428
icoPoly8EThermoPhysics
429
);
430
431
makeChemistryModelType
432
(
433
TDACChemistryModel
,
434
psiReactionThermo
,
435
constFluidEThermoPhysics
436
);
437
438
makeChemistryModelType
439
(
440
TDACChemistryModel
,
441
psiReactionThermo
,
442
constAdiabaticFluidEThermoPhysics
443
);
444
445
makeChemistryModelType
446
(
447
TDACChemistryModel
,
448
psiReactionThermo
,
449
constEThermoPhysics
450
);
451
452
453
makeChemistryModelType
454
(
455
TDACChemistryModel
,
456
rhoReactionThermo
,
457
constGasEThermoPhysics
458
);
459
460
makeChemistryModelType
461
(
462
TDACChemistryModel
,
463
rhoReactionThermo
,
464
gasEThermoPhysics
465
);
466
467
makeChemistryModelType
468
(
469
TDACChemistryModel
,
470
rhoReactionThermo
,
471
constIncompressibleGasEThermoPhysics
472
);
473
474
makeChemistryModelType
475
(
476
TDACChemistryModel
,
477
rhoReactionThermo
,
478
incompressibleGasEThermoPhysics
479
);
480
481
makeChemistryModelType
482
(
483
TDACChemistryModel
,
484
rhoReactionThermo
,
485
icoPoly8EThermoPhysics
486
);
487
488
makeChemistryModelType
489
(
490
TDACChemistryModel
,
491
rhoReactionThermo
,
492
constFluidEThermoPhysics
493
);
494
495
makeChemistryModelType
496
(
497
TDACChemistryModel
,
498
rhoReactionThermo
,
499
constAdiabaticFluidEThermoPhysics
500
);
501
502
makeChemistryModelType
503
(
504
TDACChemistryModel
,
505
rhoReactionThermo
,
506
constEThermoPhysics
507
);
508
}
509
510
// ************************************************************************* //
StandardChemistryModel.H
TDACChemistryModel.H
Foam::StandardChemistryModel
Extends base chemistry model by adding a thermo package, and ODE functions. Introduces chemistry equa...
Definition:
StandardChemistryModel.H:65
Foam::TDACChemistryModel
Extends StandardChemistryModel by adding the TDAC method.
Definition:
TDACChemistryModel.H:86
Foam::constTransport
Constant properties Transport package. Templated into a given thermodynamics package (needed for ther...
Definition:
constTransport.H:85
Foam::polynomialTransport
Transport package using polynomial functions for mu and kappa.
Definition:
polynomialTransport.H:130
Foam::psiReactionThermo
Foam::psiReactionThermo.
Definition:
psiReactionThermo.H:63
Foam::rhoReactionThermo
Foam::rhoReactionThermo.
Definition:
rhoReactionThermo.H:63
Foam::sutherlandTransport
Transport package using Sutherland's formula.
Definition:
sutherlandTransport.H:91
makeChemistryModel.H
Macros for instantiating chemistry models based on compressibility and transport types.
makeChemistryModel
#define makeChemistryModel(Comp)
Definition:
makeChemistryModel.H:44
makeChemistryModelType
#define makeChemistryModelType(SS, Comp, Thermo)
Definition:
makeChemistryModel.H:62
Foam
Namespace for OpenFOAM.
Definition:
atmBoundaryLayer.C:34
psiReactionThermo.H
rhoReactionThermo.H
thermoPhysicsTypes.H
Type definitions for thermo-physics models.
src
thermophysicalModels
chemistryModel
chemistryModel
BasicChemistryModel
BasicChemistryModels.C
Generated by
1.9.5
OPENFOAM® is a registered
trademark
of OpenCFD Ltd.