Skip to main content

StokeD

StokeD solves the Stokesian dynamics (SD) equations for N interacting particles. SD is a generalization of Brownian dynamics (BD) that includes hydrodynamic coupling interactions.


Electrically charged particles repulsed from each other confined in a harmonic potential


Seven particles spinning due to an applied torque; the rotation of the fluid results in translational motion of the outer particles

Features

  • Hydrodynamic coupling interactions can be turned on or off
  • Flexible interface for user-defined particle interactions
  • Several interactions already available: point electrostatics and electrodynamics, screened Coulomb, van der Walls, hard-sphere collisions, gravity
  • Animation module for visualizing trajectories

Installation

StokeD can be installed with pip

pip install stoked

Usage

See the examples folder for how to use StokeD.

Run any of the available examples without explicit installation using uv:

Command Description
uvx stoked free_particle Free Brownian diffusion in 3D
uvx stoked estatics Electrostatic interactions with harmonic confinement
uvx stoked ellipsoid Ellipsoidal particle with external force and torque
uvx stoked tt_coupling Hydrodynamic translation-translation coupling
uvx stoked rt_coupling Hydrodynamic rotation-translation coupling
uvx stoked bigaussian_potential Particle in double-well potential

For full documentation, see docs folder.

License

StokeD is licensed under the terms of the MIT license.

Release files for stoked 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stoked 1.0.0
File Size Uploaded
stoked-1.0.0.tar.gz 24.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for stoked 1.0.0
File Interpreter ABI Platform
stoked-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size:61.6 kB

Release files / stoked-1.0.0.tar.gz

Download URL stoked-1.0.0.tar.gz
Size 24.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d7e6c5ca6df065d94573943cd8bc3e03df4494dd52db4f59f4a8af74b621360c
BLAKE2b-256 checksum
How to use checksums
5cc2fba624c7a56e25e0c7c63a8f86a1e599c5091660b7d518c4f5d57fe9d517
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / stoked-1.0.0-py3-none-any.whl

Download URL stoked-1.0.0-py3-none-any.whl
Size 37.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6fd0bc19b8b4bf2ac210a953c4d0eafebbdce144b93ab9ae110292cbb1c6c00d
BLAKE2b-256 checksum
How to use checksums
ca252047a531d717e9479be033ba8facf9a76548d23c1daa5392ba79e9173ff0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page