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.post1

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

Built distribution (wheel)

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

Total release size: 103.3 kB

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

Download URL dismech_newton-0.1.0.post1.tar.gz
Size 49.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f48b1612c0decd9c74471bf859102b610ec0804e567dafe5db3dbe6c9ecc9161
BLAKE2b-256 checksum
How to use checksums
69b5695144a9fc43214f9f45a59270ddf6ef6071c527cc80ab5e426eb6ad2ed7
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.post1-py3-none-any.whl

Download URL dismech_newton-0.1.0.post1-py3-none-any.whl
Size 54.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b06875d6d3e9cc532116946370d08d0eacc01a148a5ec82fd1f4d7cab644e19a
BLAKE2b-256 checksum
How to use checksums
3a4f441d1dca3d3d19912045129003a38ad320ad162a000ab8a8bb0f0302f5c9
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.post1 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