Software
PyElastica
By Gazzola Lab, United States (checked on github.com/GazzolaLab (opens in a new tab)), from github.com/GazzolaLab/PyElastica (opens in a new tab)
- Simulators
- Simulator
- MIT
PyElastica is a Python library for simulating assemblies of slender, one-dimensional structures using Cosserat rod theory. It is the Python implementation of the Elastica project.
Facts
- GitHub stars
- 368read on 28 Nov 2026
- Last update
- 13 Nov 2026Newest commit on master
- Maintenance
- Activea commit in the last 90 days
- Difficulty
- Intermediate
Checked on GitHub on 28 Nov 2026.
Licenses
- Code
- MIT (opens in a new tab)
Read by Robotheca from LICENSE (opens in a new tab) (MIT) at commit 2626d91 (opens in a new tab), on 14 Nov 2026.
- Commercial use
- Yes
At a glance
- What it is
- Simulates assemblies of slender one-dimensional structures using Cosserat rod theory.
- Installable from PyPI with pip; compatible with Python 3.10 and later.
- Uses ffmpeg for plotting videos.
- Documentation is available online.
- Related projects extend it with GPU/JAX computing, magnetic fields, learning environments, and visualization plugins.
Robotheca's summary of the project's documents, not the creator's words.
- Robots on Robotheca
- No robot on Robotheca uses it yet.
- Licence
- MIT. Commercial use: Yes. Where it was read
- Install
- In the creator's words: The project's website (opens in a new tab)
- Maintenance
- Active, last commit on 13 Nov 2026.
Use it
How to install it, in the creator's words: The project's website (opens in a new tab)
Robotheca doesn't review code. Read it before running it.
Files and versions
- Repository on GitHubgithub.com/GazzolaLab/PyElastica (opens in a new tab)
- The version Robotheca read2626d91 (opens in a new tab)
- Latest releasePyElastica v1.0.0 (22 Jun 2026)
Robotheca read the repository at two versions: the summary at 0688eb4 and the facts and the README at 2626d91 (read on 28 Nov 2026).
Robotheca never hosts the code: each link goes to the creator's own page.
The README
The creator's own README, copied as written: README.md by Gazzola Lab, at commit 2626d91, under MIT (opens in a new tab). The original on GitHub (opens in a new tab).
Read the README here
PyElastica
(opens in a new tab) Image: Documentation Status (opens in a new tab) (opens in a new tab) (opens in a new tab) Image: Downloads (opens in a new tab) (opens in a new tab) (opens in a new tab) Image: Gitter (opens in a new tab) (opens in a new tab)
PyElastica is the python implementation of Elastica: an open-source project for simulating assemblies of slender, one-dimensional structures using Cosserat Rod theory.
Visit https://cosseratrods.org (opens in a new tab) for more information and learn about Elastica and Cosserat rod theory.
How to Start
(opens in a new tab) Image: Documentation Status (opens in a new tab) (opens in a new tab)
PyElastica is compatible with Python 3.11+.
$ pip install pyelastica
For plotting videos, ffmpeg is typically used.
Documentation of PyElastica is available here (opens in a new tab).
Related Projects
- C++ elastica for large-simulation: elasticapp (opens in a new tab)
- JAX extension for PyElastica, blocking and GPU computing: PyElastica-Jax (opens in a new tab)
- Cosserat rod with magnetic field: magneto-pyelastica (opens in a new tab)
- Simulate magnetic Cosserat rods interacting with external magnetic environments.
- gymnasium environment for learning and control: gym-softrobot (opens in a new tab)
- BR2 FREE pneumatic actuator simulation: BR2-simulator (opens in a new tab)
- Octopus muscle actuation model: COOMM (opens in a new tab)
- Blender visualization: Blender-Soft-Rod (opens in a new tab)
- Rhino3D plugin for visualizaion: plugin (opens in a new tab)
- Elastica web-interface: PyElastica-Interactive (opens in a new tab)
Citation
We ask that any publications which use Elastica cite as following:
@software{PyElastica,
author = {Arman Tekinalp and
Seung Hyun Kim and
Yashraj Bhosale and
Tejaswin Parthasarathy and
Noel Naughton and
Ali Albazroun and
Rahul Joon and
Songyuan Cui and
Ilia Nasiriziba and
Maximilian Stölzle and
Chia-Hsien (Cathy) Shih and
Mattia Gazzola},
title = {GazzolaLab/PyElastica},
year = 2024,
publisher = {Zenodo},
doi = {10.5281/zenodo.7658871},
url = {https://doi.org/10.5281/zenodo.7658871}
}
References
- Gazzola, Dudte, McCormick, Mahadevan, Forward and inverse problems in the mechanics of soft filaments, Royal Society Open Science, 2018. doi: 10.1098/rsos.171628 (opens in a new tab)
- Zhang, Chan, Parthasarathy, Gazzola, Modeling and simulation of complex dynamic musculoskeletal architectures, Nature Communications, 2019. doi: 10.1038/s41467-019-12759-5 (opens in a new tab)
List of publications and submissions
- Digital twins for the design, interactive control, and deployment of modular, fiber-reinforced soft continuum arms (opens in a new tab) (2026) (Advanced Intelligent Systems)
- Elastica++: A high-performance, multiphysics framework for large interacting assemblies of Cosserat rods (opens in a new tab) (2026)
- Soft, slender and active structures in fluids: embedding Cosserat rods in vortex methods (opens in a new tab) (2024)
- Neural models and algorithms for sensorimotor control of an octopus arm (opens in a new tab) (2024)
- On the mechanical origins of waving, coiling and skewing in Arabidopsis thaliana roots (opens in a new tab) (2024) (PNAS)
- Pushing with soft robotic arms via deep reinforcement learning (opens in a new tab) (2024) (Advanced Intelligent Systems)
- Topology, dynamics, and control of an octopus-analog muscular hydrostat (opens in a new tab) (2023)
- Hierarchical control and learning of a foraging CyberOctopus (opens in a new tab) (2023) (Advanced Intelligent Systems)
- Energy-shaping control of a muscular octopus arm moving in three dimensions (opens in a new tab) (2023) (Proceedings of the Royal Society A 2023)
- Ablation study of a dynamic model for a 3d-printed pneumatic soft robotic arm (opens in a new tab) (2023) (IEEE Access)
- Learning a controller for soft robotic arms and testing its generalization to new observations, dynamics, and tasks (opens in a new tab) (2023) (IEEE RoboSoft 2023)
- A sensory feedback control law for octopus arm movements (opens in a new tab) (2022) (IEEE CDC 2022)
- Control-oriented modeling of bend propagation in an octopus arm (opens in a new tab) (2021) (IEEE ACC 2022)
- A physics-informed, vision-based method to reconstruct all deformation modes in slender bodies (opens in a new tab) (2021) (IEEE ICRA 2022) code (opens in a new tab)
- Optimal control of a soft CyberOctopus arm (opens in a new tab) (2021) (IEEE ACC 2021)
- Elastica: A compliant mechanics environment for soft robotic control (opens in a new tab) (2021) (IEEE RA-L 2021)
- Controlling a CyberOctopus soft arm with muscle-like actuation (opens in a new tab) (2020) (IEEE CDC 2021)
- Energy shaping control of a CyberOctopus soft arm (opens in a new tab) (2020) (IEEE CDC 2020)
Contribution
If you would like to participate, please read our contribution guideline (opens in a new tab). Private development branches are moved to elastica-python (opens in a new tab) repository; access is limited to the core developers, collaborators, and maintainers.
PyElastica is developed by the Gazzola Lab (opens in a new tab) at the University of Illinois Urbana-Champaign.
Senior Developers ✨
Names arranged alphabetically
- Ali Albazroun
- Arman Tekinalp
- Chia-Hsien Shih (Cathy)
- Fan Kiat Chan
- Ilia Nasiriziba
- Noel Naughton
- Seung Hyun Kim (opens in a new tab)
- Songyuan Cui
- Tejaswin Parthasarathy (Teja)
- Xiaotian Zhang
- Yashraj Bhosale (opens in a new tab)
Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.
