Skip to content

StructuresComp/dismech-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dismech-python

contortion Straight contortion of 3D discrete rod. hexparachute Hex parachute falling with drag.
shellcantilever Energy-conserving Newmark-beta ($\gamma=0.5$ $\beta=0.25$) integration. rodcantilever Energy-conserving implicit midpoint integration.

A discrete differential geometry deformable structure simulator based on Dismech.

Setup

To install this Python library within a new virtual environment execute the following bash commands. If you wish to use your own package manager (conda), only execute the commands after the comment.

python -m venv .venv
source .venv/bin/activate           #.venv/Script/activate for Windows

# after virtual environment setup
pip install -r requirements.txt
pip install -e .                    # Editable installation for development

UV Setup

This Python library has been updated to work with uv.

uv pip install -e . # automatically creates .venv

Features

  • 3D discrete elastic rod stretching, bending and twisting.
  • 3D discrete elastic shell hinge and mid-edge bending.
  • Pytest numerical validation suite (compared against Dismech Matlab).
  • Dismech Matlab compatabile input format.
  • Implicit integration schemes (Euler and Newmark-beta).
  • Dense and sparse (PyPardiso) solvers.
  • Significant speedup for dynamic simulations.

benchmarks

Experiments

To run example experiments, please run the python notebooks located in experiments. They rely on local paths to tests/resources, so they will break if moved.

TODO

  • IMC rod contact and friction modeling.
  • Shell contact and friction modeling.
  • Sphinx documentation.
  • Slinky NN demonstration.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages