Pychastic: Precise Brownian Dynamics using Taylor-Itō integrators in Python

Radost Waszkiewicz, Maciej Bartczak, Kamil Kolasa, Maciej Lisicki
9/9/2022
cond-mat.softcond-mat.stat-mechphysics.chem-ph

Official code: RadostW/stochastic (12 stars, Python, MIT, JAX, last commit 2025-02-12).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

RadostW/stochasticOfficial100%
JAXMIT

Pychastic is a stochastic differential equations integrator written entirely in python.

123PythonOct 4, 20201 years agoMIT
fluid-dynamcisfluid-mechanicsjaxmolecular-dynamics-simulationphysics+4 more

Similar Papers

Cite this paper

@article{waszkiewicz2022pychastic,
  title  = {Pychastic: Precise Brownian Dynamics using Taylor-Itō integrators in Python},
  author = {Radost Waszkiewicz and Maciej Bartczak and Kamil Kolasa and Maciej Lisicki},
  year   = {2022},
  eprint = {2209.04332},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.04332}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2209.04332.svg)](https://codeofpaper.com/paper/2209.04332)

Discussion