Skip to content

feat: auto armour friction model for non-planar curvature and a default-change notice - #10

Merged
SMI-Lab-Inha merged 2 commits into
devfrom
fix/biaxial-friction-default
Nov 16, 2026
Merged

SMI-Lab-Inha merged 2 commits into
devfrom
fix/biaxial-friction-default

Conversation

@SMI-Lab-Inha

Copy link
Copy Markdown
Owner

Summary

Under a rotating curvature, the direction-tied armour friction cap underestimates the per-wire stress range. This PR adds the distributed helix model as an opt-in, friction_model="auto". The default stays "direction_tied" in this release, bit for bit. A default call on a non-planar path now warns that the default changes in the next release.

  • friction_model="auto" in compute_fatigue (public and cablexsec.analysis.fatigue) and wire_stress_field:
    • a planar curvature path uses the direction-tied cap;
    • any other path uses the distributed helix model.
  • DirectionTiedFrictionWarning (a FutureWarning): a default call on a non-planar path warns once, quoting the measured bias.
  • distributed_bound: "signed" (default, unchanged) or "uniform" (no capstan term).
  • Documentation only:
    • the guide and the concepts page no longer say the two laws give the same ranges under biaxial bending;
    • two kept approximations are documented (see below).

No default-path result and no validation row changes.

When a path counts as planar

The out-of-plane ratio of a curvature history, curvature_path_out_of_plane_ratio(kx, ky), is

$$ r = \frac{\max_k \lvert \kappa_{y,k} \cos\alpha - \kappa_{x,k} \sin\alpha \rvert}{\max_k \lvert \boldsymbol{\kappa}_k \rvert}, $$

where $\alpha$ is the direction of the principal line through the origin. The path is planar when $r \le$ PLANAR_PATH_TOLERANCE $= 10^{-3}$.

"auto" keeps the direction-tied cap on a layer that the distributed model does not cover. The provenance records $r$, the model of every layer and the reason for any fallback. The layers that keep the cap are those with:

  • a rigid interface ($\xi \ge 1$);
  • a stick modulus that changes over the record;
  • a rate-dependent friction law.

A pressure-only FrictionLaw (#9) runs on the distributed kernel.

Measured bias of the direction-tied cap

66 kV template, inner armour, steadily rotating curvature at twice the slip onset. Each ratio is the direction-tied value over the distributed model's:

Interface Largest per-wire friction-stress range Bulk damage (S–N slope 4, friction governs)
$\xi = 0.81$ (template) 0.94 0.79
$\xi = 0.99$ (near rigid stick) 0.86 0.55

The friction work per revolution is 0.38–0.69 of the planar cycle with the direction-tied cap and 1.8–2.6 with the distributed model.

On planar and flat orbits (minor/major axis up to about 0.3) the bias goes the other way: the direction-tied ranges are at or above the distributed ones. "auto" keeps the cheaper cap only on strictly planar paths.

Cost of the distributed model on one thread, relative to the direction-tied time:

  • shipped fatigue examples: 1.0–1.5×;
  • 66 kV template: 13–16×.

Documented, not changed

Pitch mean of the direction-tied friction stress. The cap's bounds integrate the capstan growth from the neutral axis. In planar full slip the stress $\sigma_0(e^{\lambda x} - 1)$ therefore has the pitch mean

$$ \sigma_0 \left( \frac{\sinh x_0}{x_0} - 1 \right), \qquad x_0 = \frac{\lambda \pi}{2}, $$

which is 1.1 % of the peak on the 66 kV inner armour (0.054 MPa). The offset is kept, for two reasons:

  • a zero-mean condition couples the wires, which the law's independent spring–sliders do not;
  • a uniform shift moves wire stresses outside their own bounds.

Removing the offset would change the largest per-wire range by less than $10^{-4}$.

anchored_heat_profile solves its anchoring ratio with a constant bound, while the sectional heat it multiplies uses the signed capstan bound.

  • On a uniformly bent section the two bounds give cycle works within 0.25 %, from 1.2 to 32 times the slip onset.
  • The solver is unchanged: a capstan bound breaks the translation invariance of its exact chain projection.

Fatigue-path stick modulus. The distributed model of the fatigue path takes a constant stick modulus other than the layer's (one thermal block) as the Yun coefficient $\xi = k/(E\cos^2\alpha)$ of that state.

Default change (next release)

The default moves to "auto" in the first release after the current paper that cites the direction-tied law is published. Passing friction_model explicitly silences the warning and keeps the current behaviour.

Checks

On the branch rebased on dev 0883036 (#9):

  • New tests: tests/test_biaxial_friction_default.py (17 tests), which checks:
    • the default bit-identical to "direction_tied";
    • "auto" on planar and circular paths;
    • each fallback reason;
    • the warning (once, default only, silent on planar paths);
    • the "uniform" bound;
    • the pitch-mean closed form;
    • the provenance fields.
  • Test taxonomy: +2 analytical_sanity, +6 independent_method (from collected test IDs).
  • Gates:
    • full suite: 4339 passed;
    • with CABLEXSEC_DISABLE_NUMBA=1: 4227 passed, 112 skipped (compiled-only tests);
    • mypy src: no issues in 118 files;
    • ruff check and ruff format --check on the CI paths: clean.

…lt-change notice

compute_fatigue (public and cablexsec.analysis.fatigue) and
wire_stress_field take friction_model="auto": the direction-tied cap for
a planar curvature path and the distributed helix model for any other.
A path is planar when curvature_path_out_of_plane_ratio (largest distance
of a sample from the principal line through the origin over the largest
curvature) is at most PLANAR_PATH_TOLERANCE = 1e-3. Layers outside the
distributed model (xi >= 1, a stick modulus that changes over the record,
a rate-dependent friction law) keep the direction-tied cap; the
provenance records the ratio, the model of every layer and any fallback.

The default stays "direction_tied", bit for bit, and changes to "auto"
in the next release. Until then a default call on a non-planar path
warns once (DirectionTiedFrictionWarning, a FutureWarning) with the
measured bias: under a steadily rotating curvature at twice the slip
onset the largest per-wire friction-stress range of the direction-tied
cap on the 66 kV inner armour was 0.94 (xi = 0.81, template) and 0.86
(xi = 0.99) of the distributed model's, bulk damage 0.79 and 0.55 at an
S-N slope of 4 where friction governs; its friction work per revolution
0.38-0.69 of the planar cycle against 1.8-2.6. On planar and flat paths
(minor/major axis up to about 0.3) its ranges are at or above the
distributed ones. Cost of the distributed model on one thread: 1.0-1.5x
the direction-tied time on the shipped fatigue examples, 13-16x on the
66 kV template.

Also:
- distributed_bound ("signed" default, unchanged; "uniform" without the
  capstan term) in compute_fatigue, wire_stress_field and the distributed
  wrappers; a bound on the total wire force is not offered because the
  clamping already holds the radial load of the tension share;
- the distributed model of the fatigue path takes a constant stick
  modulus other than the layer's (one thermal block) as the Yun
  coefficient of that state;
- the pitch-mean offset of the direction-tied cap in planar full slip,
  sigma_0 (sinh x0/x0 - 1), x0 = lam pi/2 (1.1 % of the peak on the
  66 kV inner armour), is documented and kept: a zero-mean condition
  couples the wires, and removing it would move ranges by less than 1e-4;
- anchored_heat_profile documents its constant bound against the signed
  bound of the sectional heat (cycle works within 0.25 % on a uniformly
  bent section);
- the guide, concepts page and module notes no longer say the two laws
  give the same stress ranges under biaxial bending.

No default-path result and no validation row changes.

Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
… on every layer it covers

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 16, 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-16T12:20:17.449402Z acd493d 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 #35925955 | 📁 Comparing acd493d 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. Can't wait for the next one!

Reviewed commit: acd493d517

ℹ️ 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 501fe3a into dev Nov 16, 2026
12 checks passed
@SMI-Lab-Inha
SMI-Lab-Inha deleted the fix/biaxial-friction-default branch November 16, 2026 12:54
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