Abstract

The lattice Boltzmann method (LBM) has emerged as a prominent technique for solving fluid dynamics problems due to its algorithmic potential for computational scalability. We introduce XLB library, a Python-based differentiable LBM library based on the JAX platform. The architecture of XLB is predicated upon ensuring accessibility, extensibility, and computational performance, enabling scaling effectively across CPU, TPU, multi-GPU, and distributed multi-GPU or TPU systems. The library can be readily augmented with novel boundary conditions, collision models, or multi-physics simulation capabilities. XLB's differentiability and data structure is compatible with the extensive JAX-based machine learning ecosystem, enabling it to address physics-based machine learning, optimization, and inverse problems. XLB has been successfully scaled to handle simulations with billions of cells, achieving giga-scale lattice updates per second. XLB is released under the permissive Apache-2.0 license and is available on GitHub at https://github.com/Autodesk/XLB. Program summaryProgram Title: XLBCPC Library link to program files:https://doi.org/10.17632/n25h65vw59.1Developer's repository link:https://github.com/Autodesk/XLBLicensing provisions: Apache-2.0Programming language: PythonNature of problem: XLB is a scalable Lattice Boltzmann simulation library based on JAX. It is designed to be accessible, extensible, and high performance. The library can be readily augmented with novel boundary conditions, collision models, or simulation capabilities. Moreover, XLB is differentiable, offering the unique advantage of integration with JAX's extensive machine learning ecosystem, and tackling physics-based machine learning, optimization, and inverse problems.Solution method: XLB utilizes the JAX library for just-in-time (JIT) compilation and distributed computing, enabling it to scale effectively across distributed multi-GPU/multi-TPU systems. XLB's programming model combines an object-oriented interface for easy extensibility. The library can be readily augmented with novel boundary conditions, collision models, or other simulation capabilities.

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.