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
src
contains the immediate source code, i.e.- a python module
spr4
with the main classSpr4
inbase.py
- geometric utility functions in
geom_utils.py
for bivector decompositions etc. - plotting utility functions in
plot_utils.py
- a python module
-
The directory
case studies
contains the code that reproduces the figures in the article:convergence.py
performs the convergence experimentnon_uniqueness.py
plots the trajectories of two non-unique optimal control curvestrajectories.py
plots 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, [email protected]
- Aline Lefebvre-Lepot, [email protected]
- Philipp Weder, [email protected]
Licensed under the MIT License