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.
The files are split into two subdirectories:
-
The directory
srccontains the immediate source code, i.e.- a python module
spr4with the main classSpr4inbase.py - geometric utility functions in
geom_utils.pyfor bivector decompositions etc. - plotting utility functions in
plot_utils.py
- a python module
-
The directory
case studiescontains the code that reproduces the figures in the article:convergence.pyperforms the convergence experimentnon_uniqueness.pyplots the trajectories of two non-unique optimal control curvestrajectories.pyplots three example trajectories
All requirements can be found in requirements.txt.
To install them using pip, run the following command:
pip3 install -r requirements.txt
- François Alouges, francois.alouges@polytechnique.edu
- Aline Lefebvre-Lepot, aline.lefebvre@polytechnique.edu
- Philipp Weder, philipp.weder@epfl.ch
Licensed under the MIT License