Skip to content

fix: the slip of a full-slip increment of the distributed friction model is unique - #11

Merged
SMI-Lab-Inha merged 1 commit into
devfrom
fix/distributed-slip-gauge
Nov 17, 2026
Merged

SMI-Lab-Inha merged 1 commit into
devfrom
fix/distributed-slip-gauge

Conversation

@SMI-Lab-Inha

Copy link
Copy Markdown
Owner

Summary

Over an increment in which every helix node slips, the distributed friction model fixes the forces, the tractions and $u - p$, but not a slide $c$ common to $u$ and $p$ of all nodes. Any $c$ that keeps each node slipping in the direction of its traction is in equilibrium and does the same friction work, because the tractions sum to zero over the pitch.

Before this PR the solver left one node exactly on its bound, chosen between candidate nodes at round-off. So the kept slip field, and the armour slip that kinematic_history(friction_model="distributed") reports from it (slip_m from $p$, slipping from the step slip), could move with any round-off change.

Measured on a 32-node helix:

  • a relative change of $10^{-15}$ in the curvature moved the full-slip slip by 12 % of the largest step slip (uniform bound);
  • the pitch-mean slip jumped by up to 2.7 % of the step slip between full-slip steps.

Change

A full-slip increment now takes the slide that gives the step slip a zero pitch mean,

$$ c = -\frac{1}{n}\sum_j \Delta p_j, $$

clamped to the admissible interval. Each node must keep slipping in the direction of its traction: $\Delta p_j + c \ge 0$ where $t_j > 0$, and $\le 0$ where $t_j < 0$. The new function is _full_slip_slide, called at the end of _advance.

  • Why this gauge: a uniform curvature puts no net axial force on a wire over a pitch, so it should slide no wire as a whole. The pointwise laws in kinematic_history already follow this convention: they keep the pitch mean of the slip over a step in which no station sticks.
  • Partial slip: unchanged. A node clear of its bound (relative margin $10^{-9}$) fixes the slide, and the function returns.
  • Forces, stresses and energies: they don't depend on the slide, except through the healing of a friction law, where a node counts as slipping when its traction is on its bound.

Effect

66 kV template, kinematic_history with the distributed law, planar and rotating bending at 0.01 and 0.05 1/m, 121 and 601 samples:

Quantity Change
Armour slip at most 4.9 µm (0.3 % of station slip amplitudes of 0.3–2.0 mm)
Slipping flags none change
Pitch-mean slip over full-slip steps no longer moves
Stresses and friction work at most $1.7\times10^{-15}$ relative

No validation row and no documentation example output changes.

Checks

  • New tests: tests/test_distributed_slide.py (9 tests). They check:
    • the slide is unique under round-off perturbations of the input;
    • the zero pitch mean, and the clamp to the admissible interval;
    • partial slip unchanged;
    • forces, stresses and energies unchanged.
  • Full suite: 4348 passed, 1 skipped.
  • With CABLEXSEC_DISABLE_NUMBA=1: 4235 passed, 114 skipped.
  • mypy: mypy src reports no issues in 118 files.
  • ruff: check and format --check are clean on the CI paths.
  • Test taxonomy: 9 unmarked tests added, so each "deselected" figure rises by 9; checked against the collected test IDs on dev.

…del is unique

With every helix node on its bound the equations of the distributed
model fix the forces, the tractions and u - p, but not a slide common to
u and p of all nodes: any slide that keeps every node slipping in the
direction of its traction is in equilibrium and does the same friction
work. The solver left one node exactly on its bound, chosen between
candidate nodes at round-off, so the kept slip field and the armour slip
of kinematic_history(friction_model="distributed") (slip_m from p,
slipping from the step slip) could move with any round-off change: on a
32-node helix a relative change of 1e-15 in the curvature moved the
full-slip slip by 12 % of the largest step slip (uniform bound), and the
pitch-mean slip jumped by up to 2.7 % of the step slip between
full-slip steps.

The increment now takes the slide that gives the step slip a zero pitch
mean, or the admissible slide nearest to it (_full_slip_slide). A
uniform curvature puts no net axial force on a wire over a pitch and
slides no wire as a whole; this is the convention of the pointwise laws
in kinematic_history, which keep the pitch mean of the slip over a step
in which no station sticks. Partial slip is unchanged.

66 kV template, kinematic_history with the distributed law, planar and
rotating bending at 0.01 and 0.05 1/m, 121 and 601 samples: armour slip
changes by at most 4.9 um (0.3 % of station slip amplitudes of
0.3-2.0 mm), no slipping flag changes, the pitch-mean slip no longer
moves over full-slip steps, stresses and friction work change by at
most 1.7e-15 relative. No validation row or documentation example
output changes.

Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
@SMI-Lab-Inha

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-17T00:28:31.329693Z 539e93b Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 CableXSec | 🛠️ Build #35943614 | 📁 Comparing 539e93b against latest (240bf9c)

  🔍 Preview build  

17 files changed · ± 17 modified

± Modified

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 539e93be31

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@SMI-Lab-Inha
SMI-Lab-Inha merged commit 3b5f715 into dev Nov 17, 2026
12 checks passed
@SMI-Lab-Inha
SMI-Lab-Inha deleted the fix/distributed-slip-gauge branch November 17, 2026 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant