PyStokes: phoresis and Stokesian hydrodynamics in Python

Rajesh Singh, R. Adhikari
10/2/2019
cond-mat.softcond-mat.stat-mechphysics.comp-ph

Official code: rajeshrinet/pystokes (53 stars, Cython, MIT, last commit 2026-06-27).

Abstract

We present a modular Python library for computing many-body hydrodynamic and phoretic interactions between spherical active particles in suspension, when these are given by solutions of the Stokes and Laplace equations. Underpinning the library is a grid-free methodology that combines dimensionality reduction, spectral expansion, and Ritz-Galerkin discretization, thereby reducing the computation to the solution of a linear system.

Show full abstract

The system can be solved analytically as a series expansion or numerically at a cost quadratic in the number of particles. Suspension-scale quantities like fluid flow, entropy production, and rheological response are obtained at a small additional cost. The library is agnostic to boundary conditions and includes, amongst others, confinement by plane walls or liquid-liquid interfaces. The use of the library is demonstrated with six fully coded examples simulating active phenomena of current experimental interest.

View on arXivView PDF

Code Implementations(1)

MIT

PyStokes: phoresis and Stokesian hydrodynamics in Python. github.com/rajeshrinet/pystokes

5319Cython, PythonNov 7, 20145 months agoMIT
active-colloidsactive-particlesautophoretic-suspensionscolloidscrystallization+10 more

Similar Papers

Cite this paper

@article{singh2019pystokes,
  title  = {PyStokes: phoresis and Stokesian hydrodynamics in Python},
  author = {Rajesh Singh and R. Adhikari},
  year   = {2019},
  eprint = {1910.00909},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1910.00909}
}

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/1910.00909.svg)](https://codeofpaper.com/paper/1910.00909)

Discussion