Skip to main content

DiSMech-Newton

License: GPL v3 Python 3.10+ CUDA 13

Discrete elastic rods for NVIDIA Newton.

  • ADMMDiSMechSolver: implicit DER solved with ADMM, inspired by Daviet (2023), with rod-rod, rod-shape and rod-ground contact and Coulomb friction.
  • DiSMechSolver: implicit DER solved with Newton-Raphson.

Examples

Cantilever Overhand Knot Plectoneme
Cantilever Overhand knot Plectoneme
DER (top) and Newton's VBD (bottom) against Euler-Bernoulli.
uv run examples/cantilever.py
A knot pulled tight with friction Audoly et al. (2007).
uv run examples/overhand_knot.py
A twisted rod coils into a plectoneme Clauvelin et al. (2009).
uv run examples/plectoneme.py
Flagella Bundling System Identification Two-way Coupled Solvers
Flagella bundling Fitting stiffness, density and damping to buckling recordings Pick and place
Flagella bundle in a viscous fluid Tong et al. (2022).
uv run examples/flagella.py --flagella 10
L-BFGS fits stiffness, density and damping to video and a gripper force sensor by differentiating through the solver.
uv run examples/fit_buckling.py
A MuJoCo Franka carries a rod with two-way coupling (experimental).
uv run --extra mujoco examples/experimental/franka_rod.py

Install

Requires Python 3.10+ and uv. Runs on an NVIDIA GPU with CUDA 13 or on the CPU.

git clone https://github.com/ryanchaiyakul/dismech-newton.git
cd dismech-newton
uv sync --extra gpu --extra viewer
uv run examples/cantilever.py

Metadata

Release files for dismech-newton 0.1.0.post2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dismech-newton 0.1.0.post2
File Size Uploaded
dismech_newton-0.1.0.post2.tar.gz 60.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dismech-newton 0.1.0.post2
File Interpreter ABI Platform
dismech_newton-0.1.0.post2-py3-none-any.whl Python 3 none any Details

Total release size: 127.4 kB

Release files / dismech_newton-0.1.0.post2.tar.gz

Download URL dismech_newton-0.1.0.post2.tar.gz
Size 60.9 kB
Tags Source
SHA-256 checksum
How to use checksums
664119e3567b7e97034821f27c0fe7bf32c7e4bed22c1b1e7005db1b77c55f11
BLAKE2b-256 checksum
How to use checksums
c984030dc12b0ad729b4077180fdad8d5e17296755862087c2d088cf05bf82e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.

Transparency log

Release files / dismech_newton-0.1.0.post2-py3-none-any.whl

Download URL dismech_newton-0.1.0.post2-py3-none-any.whl
Size 66.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bd061538d9a95707af05c5e4ff2516a797df52db435064151dedab555c82c989
BLAKE2b-256 checksum
How to use checksums
0d1d48ef5dc1443db8e99f9a02711ee82baf89c9b9906a4119321ecb3870187f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0.post2 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page