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

Plectoneme Overhand knot
Plectoneme Overhand knot
A cable between two clamps is counter-twisted until it buckles into a plectoneme, held open by self-contact.
uv run examples/cable_plectoneme.py
A loose overhand knot is pulled tight with friction, matching Audoly et al. (2007) and Jawed et al. (2015).
uv run examples/overhand_knot.py
Flagella bundling Cantilever
Flagella bundling Cantilever
Ten helical flagella spin in a viscous fluid and bundle, after Tong et al. (2022).
uv run examples/flagella.py --flagella 10
A clamped rod sags under gravity, next to Newton's VBD cable and the Euler-Bernoulli curve.
uv run examples/cantilever.py
Gradient Optimization
Fitting stiffness and damping by gradient
L-BFGS fits a cantilever's bending stiffness and damping to an observed motion, with gradients through the solver. Each iteration (green) beside the truth (grey), with its path on the loss landscape.
uv run examples/fit_stiffness.py

Install

Requires an NVIDIA GPU with CUDA 13, Python 3.10+ and uv.

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

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
File Size Uploaded
dismech_newton-0.1.0.tar.gz 49.1 kB Details

Built distribution (wheel)

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

Total release size: 103.1 kB

Release files / dismech_newton-0.1.0.tar.gz

Download URL dismech_newton-0.1.0.tar.gz
Size 49.1 kB
Tags Source
SHA-256 checksum
How to use checksums
116b5935e1ff9528692e9a96e9750f65a146034270bfbd9a5e74d3dcf2b5ac49
BLAKE2b-256 checksum
How to use checksums
f8de634b3ef43b60f4cbda2b899422e4e8f7f7e830362655a79d8ee5b58244c1
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 1, 2026.

Transparency log

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

Download URL dismech_newton-0.1.0-py3-none-any.whl
Size 54.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f4ccfb7354e22f27c6641a6295e7436c56f9eebdfe0d55acf98d29f8911d5608
BLAKE2b-256 checksum
How to use checksums
be682abc171be2a2a9643ed00f0cb4963ea80dc8670e5ca2ff7ae59f8c305a0a
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 1, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

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