-
On the accuracy and performance of the lattice Boltzmann method with 64-bit, 32-bit and novel 16-bit number formats
Authors:
Moritz Lehmann,
Mathias J. Krause,
Giorgio Amati,
Marcello Sega,
Jens Harting,
Stephan Gekle
Abstract:
Fluid dynamics simulations with the lattice Boltzmann method (LBM) are very memory-intensive. Alongside reduction in memory footprint, significant performance benefits can be achieved by using FP32 (single) precision compared to FP64 (double) precision, especially on GPUs. Here, we evaluate the possibility to use even FP16 and Posit16 (half) precision for storing fluid populations, while still car…
▽ More
Fluid dynamics simulations with the lattice Boltzmann method (LBM) are very memory-intensive. Alongside reduction in memory footprint, significant performance benefits can be achieved by using FP32 (single) precision compared to FP64 (double) precision, especially on GPUs. Here, we evaluate the possibility to use even FP16 and Posit16 (half) precision for storing fluid populations, while still carrying arithmetic operations in FP32. For this, we first show that the commonly occurring number range in the LBM is a lot smaller than the FP16 number range. Based on this observation, we develop novel 16-bit formats - based on a modified IEEE-754 and on a modified Posit standard - that are specifically tailored to the needs of the LBM. We then carry out an in-depth characterization of LBM accuracy for six different test systems with increasing complexity: Poiseuille flow, Taylor-Green vortices, Karman vortex streets, lid-driven cavity, a microcapsule in shear flow (utilizing the immersed-boundary method) and finally the impact of a raindrop (based on a Volume-of-Fluid approach). We find that the difference in accuracy between FP64 and FP32 is negligible in almost all cases, and that for a large number of cases even 16-bit is sufficient. Finally, we provide a detailed performance analysis of all precision levels on a large number of hardware microarchitectures and show that significant speedup is achieved with mixed FP32/16-bit.
△ Less
Submitted 31 January, 2022; v1 submitted 16 December, 2021;
originally announced December 2021.
-
Lattice Boltzmann simulations of anisotropic particles at liquid interfaces
Authors:
Florian Günther,
Florian Janoschek,
Stefan Frijters,
Jens Harting
Abstract:
Complex colloidal fluids, such as emulsions stabilized by complex shaped particles, play an important role in many industrial applications. However, understanding their physics requires a study at sufficiently large length scales while still resolving the microscopic structure of a large number of particles and of the local hydrodynamics. Due to its high degree of locality, the lattice Boltzmann m…
▽ More
Complex colloidal fluids, such as emulsions stabilized by complex shaped particles, play an important role in many industrial applications. However, understanding their physics requires a study at sufficiently large length scales while still resolving the microscopic structure of a large number of particles and of the local hydrodynamics. Due to its high degree of locality, the lattice Boltzmann method, when combined with a molecular dynamics solver and parallelized on modern supercomputers, provides a tool that allows such studies. Still, running simulations on hundreds of thousands of cores is not trivial. We report on our practical experiences when employing large fractions of an IBM Blue Gene/P system for our simulations. Then, we extend our model for spherical particles in multicomponent flows to anisotropic ellipsoidal objects rendering the shape of e.g. clay particles. The model is applied to a number of test cases including the adsorption of single particles at fluid interfaces and the formation and stabilization of Pickering emulsions or bijels.
△ Less
Submitted 27 March, 2012; v1 submitted 15 September, 2011;
originally announced September 2011.
-
Large-scale lattice Boltzmann simulations of complex fluids: advances through the advent of computational grids
Authors:
J. Harting,
J. Chin,
M. Venturoli,
P. V. Coveney
Abstract:
During the last two years the RealityGrid project has allowed us to be one of the few scientific groups involved in the development of computational grids. Since smoothly working production grids are not yet available, we have been able to substantially influence the direction of software development and grid deployment within the project. In this paper we review our results from large scale thr…
▽ More
During the last two years the RealityGrid project has allowed us to be one of the few scientific groups involved in the development of computational grids. Since smoothly working production grids are not yet available, we have been able to substantially influence the direction of software development and grid deployment within the project. In this paper we review our results from large scale three-dimensional lattice Boltzmann simulations performed over the last two years. We describe how the proactive use of computational steering and advanced job migration and visualization techniques enabled us to do our scientific work more efficiently. The projects reported on in this paper are studies of complex fluid flows under shear or in porous media, as well as large-scale parameter searches, and studies of the self-organisation of liquid cubic mesophases.
Movies are available at http://www.ica1.uni-stuttgart.de/~jens/pub/05/05-PhilTransReview.html
△ Less
Submitted 11 January, 2005;
originally announced January 2005.