Lettuce: PyTorch-Based Lattice Boltzmann Framework

被引:16
作者
Bedrunka, Mario Christopher [1 ,2 ]
Wilde, Dominik [1 ,2 ]
Kliemank, Martin [2 ]
Reith, Dirk [2 ,3 ]
Foysi, Holger [1 ]
Kraemer, Andreas [4 ]
机构
[1] Univ Siegen, Dept Mech Engn, Paul Bonatz Str 9-11, D-57076 Siegen, Germany
[2] Bonn Rhein Sieg Univ Appl Sci, Inst Technol Resource & Energy Efficient Engn TRE, Grantham Allee 20, D-53757 St Augustin, Germany
[3] Fraunhofer Inst Algorithms & Sci Comp SCAI, D-53754 St Augustin, Germany
[4] Free Univ Berlin, Dept Math & Comp Sci, Arnimallee 6, D-14195 Berlin, Germany
来源
HIGH PERFORMANCE COMPUTING - ISC HIGH PERFORMANCE DIGITAL 2021 INTERNATIONAL WORKSHOPS | 2021年 / 12761卷
关键词
Lattice Boltzmann method; Pytorch; Machine learning; Neural networks; Automatic differentiation; Computational fluid dynamics; Flow control; SIMULATION; PARAMETRIZATION; IMPLEMENTATION; FLOW;
D O I
10.1007/978-3-030-90539-2_3
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
The lattice Boltzmann method (LBM) is an efficient simulation technique for computational fluid mechanics and beyond. It is based on a simple stream-and-collide algorithm on Cartesian grids, which is easily compatible with modern machine learning architectures. While it is becoming increasingly clear that deep learning can provide a decisive stimulus for classical simulation techniques, recent studies have not addressed possible connections between machine learning and LBM. Here, we introduce Lettuce, a Py Torch-based LBM code with a threefold aim. Lettuce enables GPU accelerated calculations with minimal source code, facilitates rapid prototyping of LBM models, and enables integrating LBM simulations with PyTorch's deep learning and automatic differentiation facility. As a proof of concept for combining machine learning with the LBM, a neural collision model is developed, trained on a doubly periodic shear layer and then transferred to a different flow, a decaying turbulence. We also exemplify the added benefit of PyTorch's automatic differentiation framework in flow control and optimization. To this end, the spectrum of a forced isotropic turbulence is maintained without further constraining the velocity field. The source code is freely available from https://github.com/lettucecfd/lettuce.
引用
收藏
页码:40 / 55
页数:16
相关论文
共 44 条
[1]   WALBERLA: A block-structured high-performance framework for multiphysics simulations [J].
Bauer, Martin ;
Eibl, Sebastian ;
Godenschwager, Christian ;
Kohl, Nils ;
Kuron, Michael ;
Rettinger, Christoph ;
Schornbaum, Florian ;
Schwarzmeier, Christoph ;
Thoennes, Dominik ;
Koestler, Harald ;
Ruede, Ulrich .
COMPUTERS & MATHEMATICS WITH APPLICATIONS, 2021, 81 :478-501
[2]   A MODEL FOR COLLISION PROCESSES IN GASES .1. SMALL AMPLITUDE PROCESSES IN CHARGED AND NEUTRAL ONE-COMPONENT SYSTEMS [J].
BHATNAGAR, PL ;
GROSS, EP ;
KROOK, M .
PHYSICAL REVIEW, 1954, 94 (03) :511-525
[3]   SMALL-SCALE STRUCTURE OF THE TAYLOR-GREEN VORTEX [J].
BRACHET, ME ;
MEIRON, DI ;
ORSZAG, SA ;
NICKEL, BG ;
MORF, RH ;
FRISCH, U .
JOURNAL OF FLUID MECHANICS, 1983, 130 (MAY) :411-452
[4]   PERFORMANCE OF UNDER-RESOLVED 2-DIMENSIONAL INCOMPRESSIBLE-FLOW SIMULATIONS [J].
BROWN, DL ;
MINION, ML .
JOURNAL OF COMPUTATIONAL PHYSICS, 1995, 122 (01) :165-183
[5]   Machine Learning for Fluid Mechanics [J].
Brunton, Steven L. ;
Noack, Bernd R. ;
Koumoutsakos, Petros .
ANNUAL REVIEW OF FLUID MECHANICS, VOL 52, 2020, 52 :477-508
[6]   Simulation of three-dimensional compressible decaying isotropic turbulence using a redesigned discrete unified gas kinetic scheme [J].
Chen, Tao ;
Wen, Xin ;
Wang, Lian-Ping ;
Guo, Zhaoli ;
Wang, Jianchun ;
Chen, Shiyi .
PHYSICS OF FLUIDS, 2020, 32 (12)
[7]  
De Rosis A, 2019, PHYS FLUIDS, V31, DOI [10.1063/1.5124719, 10.1063/5.0027986]
[8]   Incompressible limits of lattice Boltzmann equations using multiple relaxation times [J].
Dellar, PJ .
JOURNAL OF COMPUTATIONAL PHYSICS, 2003, 190 (02) :351-370
[9]   Understanding Transmission Dynamics of COVID-19-Type Infections by Direct Numerical Simulations of Cough/Sneeze Flows [J].
Sourabh S. Diwan ;
S. Ravichandran ;
Rama Govindarajan ;
Roddam Narasimha .
Transactions of the Indian National Academy of Engineering, 2020, 5 (2) :255-261
[10]   Direct numerical simulation of the turbulent flow generated during a violent expiratory event [J].
Fabregat, Alexandre ;
Gisbert, Ferran ;
Vernet, Anton ;
Dutta, Som ;
Mittal, Ketan ;
Pallares, Jordi .
PHYSICS OF FLUIDS, 2021, 33 (03)