随机:在Python中使用泰勒-伊藤积分器的精确布朗动力学
Pychastic: Precise Brownian Dynamics using Taylor-Itō integrators in Python
摘要:
在过去的十年中,Python驱动的物理模拟生态系统一直在稳步增长,允许更大的互操作性,并成为物理现象数值探索的重要工具,特别是在软物质系统中。由于胶体动力学中快速精确的数值积分的需求,在这里,我们用数学上一致的伊藤演算形式来表达布朗动力学(BD)问题,并开发了一个Python软件包来辅助数值计算。我们表明,由于自动微分软件包,经典的截断泰勒-伊藤积分器可以实现,而无需预先计算系数函数的导数的负担。此外,我们展示了如何规避BD模拟的困难,如计算的发散的迁移率张量的扩散方程和不连续的轨迹时遇到的$S^2$和$SO(3)$上的动态工作。由此产生的Python包Pythochastic能够执行BD模拟,包括流体动力学相互作用,其速度与低级编程语言中的专用实现相当,但具有更简单的最终用户界面。
英文摘要:
In the last decade, Python-powered physics simulations ecosystem has been growing steadily, allowing greater interoperability, and becoming an important tool in numerical exploration of physical phenomena, particularly in soft matter systems. Driven by the need for fast and precise numerical integration in colloidal dynamics, here we formulate the problem of Brownian Dynamics (BD) in a mathematically consistent formalism of the Itō calculus, and develop a Python package to assist numerical computations. We show that, thanks to the automatic differentiation packages, the classical truncated Taylor-Itō integrators can be implemented without the burden of computing the derivatives of the coefficient functions beforehand. Furthermore, we show how to circumvent the difficulties of BD simulations such as calculations of the divergence of the mobility tensor in the diffusion equation and discontinuous trajectories encountered when working with dynamics on $S^2$ and $SO(3)$. The resulting Python package, Pychastic, is capable of performing BD simulations including hydrodynamic interactions at speeds comparable to dedicated implementations in lower-level programming languages, but with a much simpler end-user interface.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。