We gratefully acknowledge support from
the Simons Foundation and member institutions.
Full-text links:

Download:

Current browse context:

cond-mat.soft

Change to browse by:

References & Citations

Bookmark

(what is this?)
CiteULike logo BibSonomy logo Mendeley logo del.icio.us logo Digg logo Reddit logo

Condensed Matter > Soft Condensed Matter

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

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\=o calculus, and develop a Python package to assist numerical computations. We show that, thanks to the automatic differentiation packages, the classical truncated Taylor-It\=o 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.
Comments: submitted to SciPost Physics Codebases
Subjects: Soft Condensed Matter (cond-mat.soft); Statistical Mechanics (cond-mat.stat-mech); Chemical Physics (physics.chem-ph); Computational Physics (physics.comp-ph)
Cite as: arXiv:2209.04332 [cond-mat.soft]
  (or arXiv:2209.04332v2 [cond-mat.soft] for this version)

Submission history

From: Maciej Lisicki [view email]
[v1] Fri, 9 Sep 2022 14:43:37 GMT (1900kb,D)
[v2] Sat, 17 Dec 2022 19:26:35 GMT (1911kb,D)

Link back to: arXiv, form interface, contact.