Submitted:
30 January 2024
Posted:
31 January 2024
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Method
2.1. Lattice Boltzmann Methods (LBM)
2.2. Smagorinsky BGK Collision Model
2.3. Fringe Region Technique
2.4. Concept and Realization
2.4.1. Concept
2.4.2. Structure of the OpenLB Shared Library
| Algorithm 1 Mainloop of the OpenLB Shared Library |
|
2.4.3. Structure of the OpenCV Shared Library
2.5. Expanding OpenVisFlow for Mobile Fluid Flow Simulation with OpenLB
2.5.1. Visualization of the Simulation Data
2.6. User Guide for paint2sim
3. Numerical Experiments and Discussion of Results
3.1. Test Case Setup
3.2. Choice of Discretisation Parameters
3.3. Validation
3.3.1. Qualitative Results
3.3.2. Quantitative Results
3.4. Performance
3.5. Conclusions
Author Contributions
Funding
Conflicts of Interest
References
- Community, B.O. Blender - a 3D modelling and rendering package; Blender Foundation, Stichting Blender Foundation: Amsterdam, 2018. [Google Scholar]
- Haas, J.K. A history of the unity game engine 2014.
- Epic Games. Unreal Engine.
- Berger, M.; Cristie, V. CFD post-processing in Unity3D. Procedia Computer Science 2015, 51, 2913–2922. [Google Scholar] [CrossRef]
- Stam, J. Real-time fluid dynamics for games. In Proceedings of the Proceedings of the game developer conference; 2003; Volume 18, p. 25. [Google Scholar]
- Zuo, W.; Chen, Q. Real-time or faster-than-real-time simulation of airflow in buildings. Indoor air 2009, 19, 33. [Google Scholar] [CrossRef] [PubMed]
- Minichiello, A.; Armijo, D.; Mukherjee, S.; Caldwell, L.; Kulyukin, V.; Truscott, T.; Elliott, J.; Bhouraskar, A. Developing a mobile application-based particle image velocimetry tool for enhanced teaching and learning in fluid mechanics: A design-based research approach. Computer applications in engineering education 2021, 29, 517–537. [Google Scholar] [CrossRef]
- Lin, J.R.; Cao, J.; Zhang, J.P.; van Treeck, C.; Frisch, J. Visualization of indoor thermal environment on mobile devices based on augmented reality and computational fluid dynamics. Automation in Construction 2019, 103, 26–40. [Google Scholar] [CrossRef]
- Harwood, A.R.; Revell, A.J. Interactive flow simulation using Tegra-powered mobile devices. Advances in Engineering Software 2018, 115, 363–373. [Google Scholar] [CrossRef]
- Teutscher, D.; Weckerle, T.; Öz, F.; Krause, M.J. Interactive Scientific Visualization of Fluid Flow Simulation Data Using AR Technology-Open-Source Library OpenVisFlow. Multimodal Technologies and Interaction 2022, 6. [Google Scholar] [CrossRef]
- Bradski, G. The OpenCV Library. Dr. Dobb’s Journal of Software Tools 2000. [Google Scholar]
- Krause, M.J.; Kummerländer, A.; Avis, S.J.; Kusumaatmaja, H.; Dapelo, D.; Klemens, F.; Gaedtke, M.; Hafen, N.; Mink, A.; Trunk, R.; et al. OpenLB—Open source lattice Boltzmann code. Computers & Mathematics with Applications 2021, 81, 258–288. [Google Scholar]
- Li, J. Appendix: Chapman-Enskog Expansion in the Lattice Boltzmann Method. 2015. [Google Scholar] [CrossRef]
- Guo, Z.; Zheng, C.; Shi, B. Discrete lattice effects on the forcing term in the lattice Boltzmann method. Physical review E 2002, 65, 046308. [Google Scholar] [CrossRef] [PubMed]
- Nathen, P.; Gaudlitz, D.; Kratzke, J.; Krause, M. An extension of the Lattice-Boltzmann Method for simulating turbulent flows around rotating geometries of arbitrary shape. 06 2013. [CrossRef]
- Bhatnagar, P.L.; Gross, E.P.; Krook, M. A Model for Collision Processes in Gases. I. Small Amplitude Processes in Charged and Neutral One-Component Systems. Phys. Rev. 1954, 94, 511–525. [Google Scholar] [CrossRef]
- Nordström, J.; Nordin, N.; Henningson, D. The fringe region technique and the Fourier method used in the direct numerical simulation of spatially evolving viscous flows. SIAM Journal on Scientific Computing 1999, 20, 1365–1393. [Google Scholar] [CrossRef]
- Schäfer, M.; Turek, S.; Durst, F.; Krause, E.; Rannacher, R. Benchmark computations of laminar flow around a cylinder; Springer, 1996. [Google Scholar]
- Kummerländer, A.; Dorn, M.; Frank, M.; Krause, M.J. Implicit propagation of directly addressed grids in lattice Boltzmann methods. Concurrency and Computation: Practice and Experience 2023, 35, e7509. [Google Scholar] [CrossRef]
- Geekbench. Geekbench Browser. https://browser.geekbench.com/, 2023. Accessed: June 22, 2023.











| Reynolds Number (Re) | 20 | 100 |
| Characteristic Length [m] | 0.100 | 0.100 |
| Voxel Length [m] | - | - |
| Drag Coefficient | 5.570 - 5.590 | 3.220 - 3.240 |
| Lift Coefficient | 0.010 - 0.011 | 0.990 - 1.010 |
| OpenLB-1 | OpenLB-2 | paint2sim-1 | paint2sim-2 | paint2sim-3 | ||||||
| Drag | Lift | Drag | Lift | Drag | Lift | Drag | Lift | Drag | Lift | |
| 0.010 | 5.820 | 0.015 | 6.116 | 0.016 | 6.854 | 0.038 | 6.568 | 0.097 | 6.625 | 0.101 |
| 0.006 | 5.689 | 0.008 | 5.785 | 0.008 | 6.413 | 0.093 | 6.354 | 0.149 | 6.308 | 0.157 |
| 0.005 | 5.632 | 0.012 | 5.796 | 0.012 | 6.319 | 0.092 | 6.216 | 0.030 | 6.129 | 0.102 |
| 0.004 | 5.624 | 0.009 | 5.740 | 0.009 | 6.304 | 0.002 | 6.219 | 0.026 | 6.232 | 0.046 |
| 0.003 | 5.601 | 0.010 | 5.505 | 0.010 | - | - | - | - | - | - |
| 0.002 | 5.593 | 0.010 | 5.628 | 0.024 | - | - | - | - | - | - |
| OpenLB-1 | OpenLB-2 | paint2sim-1 | paint2sim-2 | paint2sim-3 | ||||||
| Drag | Lift | Drag | Lift | Drag | Lift | Drag | Lift | Drag | Lift | |
| 0.010 | - | - | - | - | 4.892 | 1.463 | 4.617 | 1.518 | 5.003 | 1.337 |
| 0.006 | 3.696 | 1.326 | 3.988 | 1.654 | 4.405 | 1.213 | 4.509 | 1.499 | 4.662 | 1.153 |
| 0.005 | 3.485 | 1.157 | 3.777 | 1.449 | 3.840 | 0.831 | 3.721 | 0.746 | 3.938 | 1.051 |
| 0.004 | 3.353 | 1.089 | 3.556 | 1.261 | 3.344 | 0.928 | 3.372 | 0.903 | 3.054 | 1.006 |
| 0.003 | 3.324 | 1.091 | 3.361 | 1.110 | - | - | - | - | - | - |
| 0.002 | 3.264 | 0.991 | 3.273 | 1.013 | - | - | - | - | - | - |
| Aspect | Nvidia Shield Tablet K1 | Huawei P8 Lite |
| Processor | ARM tn8 | ARM ARMv8 |
| Base Frequenzy | 2.22 GHz | 1.71 GHz |
| Single-Core Score | 207 | 166 |
| MLUPS | 1.1 | 1.6 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).