Skip to content

release: CableXSec 0.2.1 - #61

Merged
SMI-Lab-Inha merged 9 commits into
mainfrom
release/0.2.1
Nov 23, 2026
Merged

SMI-Lab-Inha merged 9 commits into
mainfrom
release/0.2.1

Conversation

@SMI-Lab-Inha

Copy link
Copy Markdown
Owner

Summary

This PR releases CableXSec 0.2.1 from dev. The record of the release checks is validation/RELEASE_0_2_1.md.

What 0.2.1 contains

Change PR Effect on results
Bonded outer armour face, bonded_face: outer (gap G8) #59 only for cables that declare it; the Zeidan (2025) input does, as an identified input
Relative core–core slip of laid cores, CoreFrictionSpec(core_core_coupling="relative") #57 none by default ("absolute")
The normal wire curvature follows the wire's axial slip state #58 a correction: weak-axis bending stress of stuck wires; small for power cables
MATLAB-style figures with typeset symbols #60 figures only

Release commits

  • Release 0.2.1:
    • the version and date in pyproject.toml, the package, CITATION.cff, the README and the docs;
    • the changelog's unreleased notes, moved to 0.2.1 with its known limitations.
  • Quick-start output (docs: commit): the README and doc/quickstart.rst printed the damage from 0.2.0. fix: the normal wire curvature follows the wire's axial slip state #58 raised the largest damage by 2.0 % (inner armour) and 1.5 % (outer armour). The install checks found this, because the quick-start output is not under test.
  • Release record 0.2.1.

Local release checks

All checks ran in new conda environments, Python 3.11 and 3.12, with one thread per process.

Check Result
Test suite (3.12) 5021 passed, 3 skipped
Coverage (3.11) 96.60 % (gate 95 %)
Ruff, ruff format clean (3.11, 3.12)
mypy strict (3.11) clean, 122 files
run_validation.py --check (3.11, 3.12) report current; 48 pass, 7 fail (registered), 8 info, 1 partial, 1 not comparable, 1 not validated
Sphinx -W no warnings
Release metadata, tree and archive audit pass
Wheel (3.12) and sdist (3.11) installs smoke test, cablexsec-batch --help, README quick start identical, 12 examples and 14 manual scripts
  • Validation changes against 0.2.0: Z-ID now passes and Z-EI fails narrowly. Z-EI gives EI_min 10.09 kN·m², against a measured slope of 8.65–9.70 kN·m² in the plotted curvature.
  • Reproducibility: the wheel is reproducible byte for byte. The sdist holds identical files, but its PAX headers carry the build-time directory mtimes, so its hash differs between builds.

CoreFrictionSpec(core_core_coupling="relative") is a coupled intralayer slip
model of laid cores. Neighbouring cores touch at the same axial position, so
the friction between them acts on their relative slip, while the filler and
ring contacts keep the slip of each core against the plane section. The
default, "absolute", is the earlier law and is unchanged, bit for bit.

The n stations of the cores at one axial position form a group. A station's
stress is an interlayer share, bounded by the Papailiou cap with the
interlayer coefficient (mu_cf q_cf + mu_cs q_cs) / q, plus an intralayer
share, bounded by sigma_0 mu_cc (q_cc / q) |sin b| min(psi, pi / n), and the
intralayer shares of a group sum to zero. The return map is the closest point
of the group on that set, exact through a scalar multiplier whose root is
found from sorted breakpoints (mechanics/station_coupling.py, a NumPy path and
a numba kernel that agree to round-off).

For three cores in core-core contact only, slip starts at the same onset, the
largest frozen friction stress is 2/3 and the full-slip moment sqrt(3)/2 of
the absolute law, and full slip comes at 2 pi / (3 sqrt 3) = 1.209 times the
onset instead of pi / 2. An independent field solver of the coupled axial
equilibrium of the three cores (validation/scripts/coupled_core_slip_reference.py:
one field per core, elastic-Coulomb contacts, semismooth Newton on the
incremental energy) gives the same onset, full-slip curvature,
moment-curvature, friction-force distribution and reversal loop with and
without interlayer friction, to about 7e-5 of the full-slip moment.

The core law, compute_mkappa, the bending-law export (group cap and slip
transitions), the section properties, the core kinematics and the component
states route through the coupled stations; core_station_history,
core_station_bounds, core_full_slip_moment and core_full_slip_curvature are
new. The relative law is direction-tied: the distributed model raises and
"auto" keeps it on a non-planar path with a FrictionModelFallbackWarning.

On the 66 kV template at 50 kN (bounded trefoil, 67 % of the core load on
core-core contact) the section secant stiffness falls by 2.1-2.8 % between 2
and 10 times the core onset and the exported backbone by 0.5 % at 0.04 1/m;
the 30 kV wire-screen bulk damage falls to 0.56-0.61 of the absolute value
from 0.05 1/m. Armour and conductor damage are curvature driven and do not
change.

tests/test_core_coupled_slip.py adds 13 analytical and 13 independent-method
tests, so the taxonomy counts of the validation report are 1278 and 92.

Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
Every recovery used the curve curvature of the deformed helix,
cos^2(a) cos(2a) per unit projected curvature, in every slip state. That
is the normal curvature of a wire that carries no friction stress. The
bending strain of a wire is set by the rotation of its cross-section per
unit material length; the helix starts with the normal curvature
sin^2(a) / r, so the axial strain sigma_f / E the wire carries adds
(sin^2(a) / r) sigma_f / E. A stuck wire with the plane-section strain
takes cos^4(a), with the stick coefficient xi
cos^2(a) cos(2a) + xi sin^2(a) cos^2(a), a wire without friction stress
keeps cos^2(a) cos(2a), and a wire in Coulomb slip keeps that slope. A
stuck wire's weak-axis bending stress was low by 3.2 % at 10 deg, 15.5 %
at 20.1 deg and 96 % at 35 deg. The lateral term is unchanged.

The term (wire_stress.slip_state_normal_curvature) enters the fatigue
field (direction-tied, distributed and progressive friction, compiled
and NumPy paths, with any termination increment), compute_stress, the
wire-yield capacity, the kinematics helix field, the rig-test gauges,
the laid cores (core normal gradient, component states and
utilisation), the frictional tape state and the outer-fibre strand-slip
parameters (StrandSlipParameters.slip_state_factor). The local bending
helpers take the friction stress and helix radius as keywords and keep
the slip-free value without them.

Validation row sigma_B now checks the frictionless state against Menard
Eq. 14, a stuck wire and a slipping wire (target unchanged); no other
row changes. On the 66 kV template record of doc/template_66kv.md the
largest wire damage rises 0.23-0.27 % (inner) and 0.05-0.06 % (outer).
Tutorial and how-to outputs are regenerated. Tests:
tests/test_normal_term_slip_state.py (analytical limits).

Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
feat: bonded outer armour face (gap G8)

A helical layer may declare bonded_face: outer. Its outer face is bonded
to the polymer outside it (a sheath extruded onto the wires, or a bitumen
or compound bond) and does not slip: the wires slide on their inner face
only, so the friction-setting pressure keeps the inner face's share of
the bounded radial chain, and the bond is an elastic spring through the
polymer outside (an inner-loaded layered annulus free at the cable
surface, plus the strip concentration). The stuck layer is unchanged; in
full slip the bond keeps xi_bond of the layer's plane-section stiffness,
added in parallel to the law and to compute_stiffness's EI_min.

The bending law (compute_mkappa, SectionLaw, the exported law) and
compute_stiffness use it; the wire-stress, fatigue and capacity routes
refuse a bonded cable, which would miss the bond's share of the wire
force. Bounded contact model only, without winding stress or pretension.

The Zeidan (2025) input declares it, as an identified input: its sheath
sits on the wires with no tape, and the bonded state matches the measured
post-slip slope. Z-ID now passes (P0 1085.9 kPa; work +9.9/-4.7/-9.0 %,
RMSE 6.4/4.3/4.4 %, range -4.4/-8.5/-8.0 %); Z-EI fails narrowly
(EI_min 10.09 against 8.65-9.70 kN m2 in the plotted curvature). Menard
and Witz keep sliding faces and are unchanged.

compute_mkappa with contact_tension_history_N keeps the inner face's
share at every sample; a user-supplied contact_pressure_Pa history is
refused for a bonded layer.

Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
Every figure now uses one MATLAB-style look: MATLAB's default line
colours in MATLAB's order, a Helvetica/Arial face, a closed box with
inward ticks on all sides, no grid and a square opaque legend. Labels
carry true Greek letters and sub- and superscripts in the same face,
with numerals upright; style.LABELS holds the standard axis labels.

The tutorial and how-to scripts apply the style (their figures were
plain matplotlib defaults) and are regenerated; the examples use the
same labels. The user guide documents the figures and the style.

The docs figures are saved at 200 dpi, under the docs tests' size cap;
the micro prefix is upright and axis offsets read x10^-8.

Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
Version 0.2.1 in pyproject.toml, the package, CITATION.cff, the README
and the docs; the changelog moves the unreleased notes to 0.2.1 and adds
its known limitations.

Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
The slip-state normal curvature (#58) raised the largest damage of the
README quick start by 2.0 % (inner) and 1.5 % (outer armour); the
README and doc/quickstart.rst printed the 0.2.0 values. The changelog
entry of the correction records the change.

Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
Environments, gate results, distribution and install checks of the
0.2.1 release.

Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 22, 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-23T01:07:54.378062Z f586bb5 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 22, 2026 •

Copy link
Copy Markdown

Documentation build overview

📚 CableXSec | 🛠️ Build #36087114 | 📁 Comparing f586bb5 against latest (e9b3f8f)

  🔍 Preview build  

16 files changed · ± 16 modified

± Modified

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b796cbaa7a

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

Comment thread src/cablexsec/mechanics/stiffness.py Resolved
At a zero lay angle the bond carries the whole layer (xi_bond = 1) and
the slider has no stick stiffness, which the slip integrators refused,
so compute_mkappa, SectionLaw and the exported law could not evaluate a
valid straight bonded layer. A zero stick stiffness now gives an
elastic-only history (no stress, slip or friction work) in the default
and the progressive law; a partly zero history is still refused. The
law at 0 deg is the small-angle limit (moments within 1e-9).

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

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 922fbe6f00

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

The final tree's test count, and which gates ran before the review fix.

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

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: f586bb5307

ℹ️ 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 2af48a4 into main Nov 23, 2026
14 checks passed
@SMI-Lab-Inha
SMI-Lab-Inha deleted the release/0.2.1 branch November 23, 2026 02:31
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