Skip to content

fix: the exported bending law keeps the stick stiffness at every tension - #13

Merged
SMI-Lab-Inha merged 2 commits into
devfrom
fix/bending-law-stick-grid
Nov 17, 2026
Merged

SMI-Lab-Inha merged 2 commits into
devfrom
fix/bending-law-stick-grid

Conversation

@SMI-Lab-Inha

@SMI-Lab-Inha SMI-Lab-Inha commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

Problem

export_bending_law computed every backbone on a geometric curvature grid that starts at 1e-4 κ_max, whatever the tension. When a slip onset lies below that floor, the first chord of the backbone is already partly or fully slipped and the Iwan law starts soft. compute_section_properties already puts the onset and full-slip curvatures in its grid and is exact.

66 kV template, κ_max = 0.4 1/m, 200 points (grid floor 4e-5 1/m):

Tension Onset, outer / inner armour [1/m] Exported law EI_stick [N m²] Section EI_stick [N m²]
10 kN 7.3e-6 / 2.3e-5 5.797e5 1.260e6
50 kN 3.6e-5 / 1.1e-4 1.255e6 1.260e6

With slip_scale=True the default reference is the smallest tension, so every scaled tension inherited the softened group laws. Below full slip, the secant M/κ of the scaled law was 0.46 to 0.65 of compute_mkappa at 50 to 200 kN.

Fix

  • The geometric grid is extended below its floor, at the same ratio, until its first point lies under half the smallest first-slip curvature. That bound is the neutral-axis onset times the compression-side factor m(λ). It also takes in the smallest sub-element cap of the uniform progressive density, and a pressure-dependent coefficient evaluated at the state's P1+P2.
  • The grid holds the onset and full-slip curvature of every armour layer and of the laid cores, at every exported tension and at the slip-scale reference (default or given, with or without a pressure axis).
  • spacing="linear" gets one stick point and the slip points. It warns when a transition is narrower than its step.
  • If an exported law still misses the section's stick stiffness (EI_max of compute_mkappa), the export warns.
  • The default reference stays the smallest tension. With the grid fixed, the reference only sets how far the group laws reach (ρ κ_max), and ρ ≥ 1 keeps the most range.

kappa_1_m now holds more than n_points points. The base grid is unchanged.

Results

66 kV template, 10 to 200 kN, slip_scale=True:

Check Before After
Exported law EI_stick / section, 10 kN 0.460 1 (round-off)
Scaled law EI_stick / section, 50 to 200 kN 0.460 1 (round-off)
Largest M error between grid points against compute_mkappa (exported and scaled laws) 54 % 5.2e-4

Core friction, the progressive law (continuity, and uniform with spread 0.9), a pressure-factor friction law and the solved contact model all start at EI_max to 6e-16.

Validation records

Nothing in VALIDATION.md or the benchmark register moves at its printed precision:

  • MX-scale, recomputed with validation/scripts/run_validation.py's _slip_scale_identities: ratio 1.0229 before and after.
  • MX-1-type residuals (Ménard at 0 and 50 kN, 66 kV at 50 kN) and MX-2 (3.95 %) are the same to four digits.

Tests

  • New test_export_starts_at_the_section_stick_stiffness: the exported and scaled laws start at compute_section_properties' stick stiffness at every tension. The grid floor lies below half the smallest onset, and every onset and full-slip curvature is a grid point.
  • New test_exported_and_scaled_laws_match_compute_mkappa_off_the_grid: both laws are checked against compute_mkappa between grid points, within 2e-3. Both new tests fail on dev.
  • test_single_tension_and_linear_spacing now checks the added stick and slip points, the warning and the stick stiffness.
  • test_single_scale_reproduces_the_export_when_groups_scale_alike exports the direct law at [t2, s t2], so its grid is the reference grid times s. Its stiffness tolerance is now taken relative to the stick tangent: the stick grid reaches 1e-6 1/m, and the round-off of tangent differences scales with the tangent.

Gates

Gate Result
ruff check, ruff format --check clean
mypy (src) 0 errors
pytest, numba 4376 passed, 4 skipped
pytest, CABLEXSEC_DISABLE_NUMBA=1 4263 passed, 117 skipped

validation/validation_report.md: only its marker-count lines change (two new tests: 3250, 4327, 4372 deselected), as the CI validation job computes them. No row value moves.

export_bending_law computed its backbones on a geometric grid that started
at 1e-4 kappa_max whatever the tension. A slip onset below that floor (66 kV
template, kappa_max 0.4 1/m: outer armour 7.3e-6 1/m and inner 2.3e-5 1/m at
10 kN) fell inside the first chord, so the law started partly or fully
slipped: stick stiffness 5.80e5 instead of the section's 1.26e6 N m2 at
10 kN, 1.255e6 at 50 kN. With slip_scale=True the default reference is the
smallest tension, so every scaled tension inherited the softened group laws
(secant M/kappa 0.46-0.65 of compute_mkappa below full slip at 50-200 kN).

The grid is now extended below its floor at the same ratio until its first
point lies under half the smallest first-slip curvature (the neutral-axis
onset times the compression-side factor m(lam), and the smallest
sub-element cap of the uniform progressive density; a pressure-dependent
coefficient at the state's P1+P2), and it carries the onset and full-slip
curvature of every armour layer and of the laid cores at every exported
tension and at the slip-scale reference. The linear spacing gets one stick
point and the slip points and warns when a transition is narrower than its
step; a law that still misses the section's stick stiffness warns.

On the 66 kV template at 10-200 kN the exported and the scaled laws start
at the section's stick stiffness to round-off and follow compute_mkappa
between grid points within 5.2e-4 of the moment. kappa_1_m now holds more
than n_points points; the base grid is unchanged. The exported laws of the
MX-1, MX-2 and MX-scale rows do not change at their printed precision.

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-17T11:03:27.592545Z 4b730f8 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

read-the-docs-community Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Documentation build overview

📚 CableXSec | 🛠️ Build #35954883 | 📁 Comparing 93c967a 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. Delightful!

Reviewed commit: 4b730f8297

ℹ️ 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".

Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
@SMI-Lab-Inha
SMI-Lab-Inha merged commit d4fabcd into dev Nov 17, 2026
12 checks passed
@SMI-Lab-Inha
SMI-Lab-Inha deleted the fix/bending-law-stick-grid branch November 17, 2026 12:44
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