arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2503.07847physics.flu-dynphysics.comp-ph
收藏

基于Python-JAX的快速Stokesian动力学

Python-JAX-based Fast Stokesian Dynamics

Kim William Torre, Raoul D. Schram, Joost de Graaf

AI总结:

本文提出了一种基于Google JAX即时编译能力的快速Stokesian动力学实现(JFSD),通过基准测试和物理用例验证了其线性缩放性、速度、准确性和稳健性,为研究软物质等领域的颗粒悬浮液流体动力学效应提供了高效工具。

摘要:

Stokesian Dynamics (SD) 是一个强大的计算框架,用于模拟在Stokes流条件下粘性牛顿流体中颗粒的运动。传统的SD实现计算成本可能很高,因为它们依赖于大型迁移率矩阵的求逆来确定流体动力学相互作用。然而,最近对大量颗粒的热化系统进行模拟已成为可能 [Fiore and Swan, J. Fluid. Mech. $\textbf{878}$, 544 (2019)]。他们的“快速Stokesian动力学”(FSD)方法利用鞍点公式,确保算法的整体缩放与颗粒数量呈线性关系 $\mathcal{O}(N)$;其性能依赖于专用图形处理器(GPU)计算。在这里,我们提出了一条实现FSD的不同途径,它转而利用 Google JAX 的即时(JIT)编译能力。我们将此实现称为 JFSD,并对其进行了基准测试,以验证它具有正确的缩放性,并且按照现代计算物理的标准足够快速。此外,我们提供了一系列物理测试用例,以帮助确保随着代码的进一步开发,其准确性和稳健性。因此,JFSD 已准备好促进对软物质、活性物质和颗粒物质领域中颗粒悬浮液流体动力学效应的研究。

英文摘要:

Stokesian Dynamics (SD) is a powerful computational framework for simulating the motion of particles in a viscous Newtonian fluid under Stokes-flow conditions. Traditional SD implementations can be computationally expensive as they rely on the inversion of large mobility matrices to determine hydrodynamic interactions. Recently, however, the simulation of thermalized systems with large numbers of particles has become feasible [Fiore and Swan, J. Fluid. Mech. $\textbf{878}$, 544 (2019)]. Their ``fast Stokesian dynamics'' (FSD) method leverages a saddle-point formulation to ensure overall scaling of the algorithm that is linear in the number of particles $\mathcal{O}(N)$; performance relies on dedicated graphics-processing-unit computing. Here, we present a different route toward implementing FSD, which instead leverages the Just-in-Time (JIT) compilation capabilities of Google JAX. We refer to this implementation as JFSD and perform benchmarks on it to verify that it has the right scaling and is sufficiently fast by the standards of modern computational physics. In addition, we provide a series of physical test cases that help ensure accuracy and robustness, as the code undergoes further development. Thus, JFSD is ready to facilitate the study of hydrodynamic effects in particle suspensions across the domains of soft, active, and granular matter.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑