Skip to main content

2018 | OriginalPaper | Buchkapitel

Automated Code Generation for Maximizing Performance of Detailed Chemistry Calculations in OpenFOAM

verfasst von : Thorsten Zirwes, Feichi Zhang, Jordan A. Denev, Peter Habisreuther, Henning Bockhorn

Erschienen in: High Performance Computing in Science and Engineering ' 17

Verlag: Springer International Publishing

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

Abstract

In direct numerical simulation of turbulent combustion, the majority of the total simulation time is often spent on evaluating chemical reaction rates from detailed reaction mechanisms. In this work, an optimization method is presented for speeding up the calculation of chemical reaction rates significantly, which has been implemented into the open-source CFD code OpenFOAM. A converter tool has been developed, which translates any input file containing chemical reaction mechanisms into C++ source code. The automatically generated code allows to restructure the reaction mechanisms for efficient computation and enables more compiler optimizations. Additional performance improvements are achieved by generating densely packed data and linear access patterns that can be vectorized in order to exploit the maximum performance on HPC systems. The generated source code compiles to an OpenFOAM library, which can directly be used in simulations through OpenFOAM’s runtime selection mechanism. The optimization concept has been applied to a realistic combustion case simulated on two peta-scale supercomputers, among them the fastest HPC cluster Hazel Hen (Cray XC40) in Germany. The optimized code leads to a decrease of total simulation time of up to 40% and this improvement increases with the complexity of the involved chemical reactions. Moreover, the optimized code yields good parallel performance on up to 28,800 CPU cores.

Sie haben noch keine Lizenz? Dann Informieren Sie sich jetzt über unsere Produkte:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Literatur
2.
Zurück zum Zitat T. Poinsot, D. Veynante, Theoretical and Numerical Combustion (RT Edwards, Toulouse Cedex, 2005) T. Poinsot, D. Veynante, Theoretical and Numerical Combustion (RT Edwards, Toulouse Cedex, 2005)
3.
Zurück zum Zitat A. Lipatnikov, Fundamentals of Premixed Turbulent Combustion (CRC, Boca Raton, 2012) A. Lipatnikov, Fundamentals of Premixed Turbulent Combustion (CRC, Boca Raton, 2012)
4.
Zurück zum Zitat C.K. Law, Combustion Physics (Cambridge University Press, Cambridge, 2010) C.K. Law, Combustion Physics (Cambridge University Press, Cambridge, 2010)
5.
Zurück zum Zitat J.H. Chen, Petascale direct numerical simulation of turbulent combustion—fundamental insights towards predictive models. Proc. Combust. Inst. 33, 99–123 (2011) J.H. Chen, Petascale direct numerical simulation of turbulent combustion—fundamental insights towards predictive models. Proc. Combust. Inst. 33, 99–123 (2011)
6.
Zurück zum Zitat F. Zhang, T. Zirwes, P. Habisreuther, H. Bockhorn, Numerical simulation of turbulent combustion with a multi-regional approach, in High Performance Computing in Science and Engineering ’15, ed. by W.E. Nagel, D.B. Kröner, M.M. Resch (Springer, Berlin, Heidelberg, 2015), pp. 267–280 F. Zhang, T. Zirwes, P. Habisreuther, H. Bockhorn, Numerical simulation of turbulent combustion with a multi-regional approach, in High Performance Computing in Science and Engineering ’15, ed. by W.E. Nagel, D.B. Kröner, M.M. Resch (Springer, Berlin, Heidelberg, 2015), pp. 267–280
9.
Zurück zum Zitat T. Lu, C.K. Law, Toward accommodating realistic fuel chemistry in large-scale computations. Prog. Energy Combust. Sci. 35(2), 192–215 (2009) T. Lu, C.K. Law, Toward accommodating realistic fuel chemistry in large-scale computations. Prog. Energy Combust. Sci. 35(2), 192–215 (2009)
10.
Zurück zum Zitat V. Damian, A. Sandu, M. Damian, F. Potra, G.R. Carmichael, The kinetic preprocessor KPP—a software environment for solving chemical kinetics. Comput. Chem. Eng. 26, 1567–1579 (2002) V. Damian, A. Sandu, M. Damian, F. Potra, G.R. Carmichael, The kinetic preprocessor KPP—a software environment for solving chemical kinetics. Comput. Chem. Eng. 26, 1567–1579 (2002)
12.
Zurück zum Zitat H.G. Weller, G. Tabor, H. Jasak, C. Fureby, A tensorial approach to computational continuum mechanics using object-oriented techniques. Comput. Phys. 12, 620–631 (1998) H.G. Weller, G. Tabor, H. Jasak, C. Fureby, A tensorial approach to computational continuum mechanics using object-oriented techniques. Comput. Phys. 12, 620–631 (1998)
13.
Zurück zum Zitat S. Vo, A. Kronenburg, O.T. Stein, E.R. Hawkes, Direct numerical simulation of non-premixed syngas combustion using OpenFOAM, in High Performance Computing in Science and Engineering ’16, ed. by W.E. Nagel, D.B. Kröner, M.M. Resch (Springer, Heidelberg, 2016) S. Vo, A. Kronenburg, O.T. Stein, E.R. Hawkes, Direct numerical simulation of non-premixed syngas combustion using OpenFOAM, in High Performance Computing in Science and Engineering ’16, ed. by W.E. Nagel, D.B. Kröner, M.M. Resch (Springer, Heidelberg, 2016)
14.
Zurück zum Zitat F. Zhang, H. Bonart, T. Zirwes, P. Habisreuther, H. Bockhorn, N. Zarzalis, Direct numerical simulation of chemically reacting flows with the public domain code OpenFOAM, in High Performance Computing in Science and Engineering ’14, ed. by W.E. Nagel, D.H. Kröner, M.M. Resch (Springer, Berlin, Heidelberg, 2015), pp. 221–236 F. Zhang, H. Bonart, T. Zirwes, P. Habisreuther, H. Bockhorn, N. Zarzalis, Direct numerical simulation of chemically reacting flows with the public domain code OpenFOAM, in High Performance Computing in Science and Engineering ’14, ed. by W.E. Nagel, D.H. Kröner, M.M. Resch (Springer, Berlin, Heidelberg, 2015), pp. 221–236
15.
Zurück zum Zitat D.G. Goodwin, H.K. Moffat, R.L. Speth, Cantera: an object-oriented software toolkit for chemical kinetics, thermodynamics, and transport processes. Version 2.3.0b (2016), http://www.cantera.org D.G. Goodwin, H.K. Moffat, R.L. Speth, Cantera: an object-oriented software toolkit for chemical kinetics, thermodynamics, and transport processes. Version 2.3.0b (2016), http://​www.​cantera.​org
16.
Zurück zum Zitat T. Zirwes, Weiterentwicklung und Optimierung eines auf OpenFOAM basierten DNS Lösers zur Verbesserung der Effizienz und Handhabung. Bachelor’s thesis, Karlsruhe Institute of Technology, Germany, 2013 T. Zirwes, Weiterentwicklung und Optimierung eines auf OpenFOAM basierten DNS Lösers zur Verbesserung der Effizienz und Handhabung. Bachelor’s thesis, Karlsruhe Institute of Technology, Germany, 2013
17.
Zurück zum Zitat R.J. Kee, M.E. Coltrin, P. Glarborg, Chemically Reacting Flow: Theory and Practice (Wiley, Hoboken, 2005) R.J. Kee, M.E. Coltrin, P. Glarborg, Chemically Reacting Flow: Theory and Practice (Wiley, Hoboken, 2005)
18.
Zurück zum Zitat CHEMKIN 10131, Reaction Design: San Diego (2013) CHEMKIN 10131, Reaction Design: San Diego (2013)
19.
Zurück zum Zitat F. Zhang, T. Zirwes, H. Nawroth, H. Bockhorn, C.O. Paschereit, Combustion generated noise: an environment related issue for future combustion systems. Energy Technol. 5(7), 1045–1054 (2017)CrossRef F. Zhang, T. Zirwes, H. Nawroth, H. Bockhorn, C.O. Paschereit, Combustion generated noise: an environment related issue for future combustion systems. Energy Technol. 5(7), 1045–1054 (2017)CrossRef
20.
Zurück zum Zitat OpenFOAM. The Open Source CFD Toolbox. User Guide (2014) OpenFOAM. The Open Source CFD Toolbox. User Guide (2014)
Metadaten
Titel
Automated Code Generation for Maximizing Performance of Detailed Chemistry Calculations in OpenFOAM
verfasst von
Thorsten Zirwes
Feichi Zhang
Jordan A. Denev
Peter Habisreuther
Henning Bockhorn
Copyright-Jahr
2018
DOI
https://doi.org/10.1007/978-3-319-68394-2_11