Skip to content

Implementation of the 4-sphere Stokesian micro-swimmer

License

Notifications You must be signed in to change notification settings

philippweder/spr4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SPR4

This repository contains the code used for the simulations in the paper Optimal strokes for the 4-sphere swimmer at low Reynolds number in the regime of small deformations. In particular, the code reproducing all the figures is provided.

File structure

The files are split into two subdirectories:

  • The directory src contains the immediate source code, i.e.

    • a python module spr4 with the main class Spr4 in base.py
    • geometric utility functions in geom_utils.py for bivector decompositions etc.
    • plotting utility functions in plot_utils.py
  • The directory case studies contains the code that reproduces the figures in the article:

    • convergence.py performs the convergence experiment
    • non_uniqueness.py plots the trajectories of two non-unique optimal control curves
    • trajectories.py plots three example trajectories

Requirements

All requirements can be found in requirements.txt.

To install them using pip, run the following command:

pip3 install -r requirements.txt

Contact information

Licence

Licensed under the MIT License

About

Implementation of the 4-sphere Stokesian micro-swimmer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages