Newton cable modeling contract

XPBD Routed Cable Requirements

A consolidated checklist for the XPBD routed cable solver: capstan friction, pinhole routing, dynamic and kinematic behavior, hysteresis, tension reporting, and acceptance tests.

Generated from docs/cable_joints_requirements.md.
Sections

XPBD Routed Cable Requirements

This document records the current requirements for Newton's XPBD routed cable solver. It backs the requirements out of the routed-cable design discussions, the formulation note, and the regression tests that were added while debugging capstan, pinhole, and tension reporting behavior.

The intent is to provide a single checklist for future tendon changes. A change may improve the numerical method, but it should not silently change these physical contracts without updating this document and the corresponding tests.

Scope

These requirements apply to the XPBD tendon path for massless routed cables made from:

The VBD routed-tendon path should mirror these physical contracts where it claims feature parity, but this document treats XPBD as the reference behavior.

Core Modeling Requirements

One Cable Formulation

Split Stretch / Slip Rows

Rest-Length State

Capstan Law

text T_tight / T_slack <= exp(mu * theta)

Pinhole Behavior

Dynamic vs Kinematic Bodies

Tension Reporting

text T = max(length - rest_length, 0) / compliance

Required Acceptance Scenarios

The focused XPBD acceptance suite is newton.tests.test_tendon_capstan, with a supporting equilibrium test in newton.tests.test_tendon_equilibrium.

Pinhole Atwood

Requirement:

Executable check:

Pinhole Friction Sweep

Requirement:

Executable check:

Slack Pinhole Route

Requirement:

Executable check:

Dynamic Rolling Capstan

Requirement:

Executable checks:

Kinematic Rolling Capstan

Requirement:

Executable check:

Capstan Hysteresis

Requirement:

Executable check:

Force-Driven Pinhole Capstan

Requirement:

Executable check:

Simple Cable Gravity

Requirement:

Executable check:

Relaxation-Independent Tension

Requirement:

Executable check:

Driven Pulley Response

Requirement:

Executable checks:

Balanced Atwood Equilibrium

Requirement:

Executable check:

Example Requirements

Rendered cable examples are not only visual demos. When examples implement test_post_step() or test_final(), those checks are part of the contract.

Examples that should remain representative of the requirements include:

Report videos should be regenerated after changing behavior that affects these examples.

Change Policy

Acceptable updates:

Not acceptable:

Reference Documents

Review note: this is a rendered copy of the in-repo requirements document. Update the repo source first, then regenerate this report page.