Skip to content

fix: direct calls read the cable materials; Skeie 2023 credit and row SK23-T1 - #64

Merged
SMI-Lab-Inha merged 3 commits into
devfrom
fix/p3-audit-items
Nov 24, 2026
Merged

SMI-Lab-Inha merged 3 commits into
devfrom
fix/p3-audit-items

Conversation

@SMI-Lab-Inha

Copy link
Copy Markdown
Owner

Summary

This PR fixes one bug, credits one paper and clears a set of documentation and test items from an external review of 0.2.1. Each item was checked against its source before it was changed.

Fixed: direct calls ignored the cable's own materials

xi_for_layer(zeidan, "inner_armour") returned 1.000 outside a material scope, against 0.832 inside one. The fix:

  • Root cause. Only the functions of cablexsec and cablexsec.api were wrapped with uses_cable_materials. 90 public functions in 36 submodules were not, so called directly they read the library values. Among them are xi_for_layer, yun_shear_stack, ei_min_slip, the adapters, the analysis routes and the plotting.
  • Wrapping. Every submodule now wraps its public cable-taking functions with scope_entry_points(globals(), __all__), the helper the two top-level modules already use.
  • Cost. A nested call that passes the same cable object no longer re-enters the scope. The decorator compares the scope's owner and its overlay object, so a user's inner library.material_scope(...) is still respected. A workflow benchmark (compute_stiffness, compute_mkappa, compute_fatigue, export_bending_law) takes 0.133 s on dev and 0.134 s on this branch.
  • Tests.
    • test_every_public_function_of_every_module_uses_the_cable_materials walks every module.
    • A direct-call test covers Zeidan's ξ, including a call nested inside a library scope.
  • Results through cablexsec and cablexsec.api are unchanged. The validation report is regenerated, and only the new row and the escaped cells differ.

Credit: Skeie et al. (2023)

The coupled intralayer slip of laid cores (core_core_coupling="relative", #57) follows Skeie, Sødahl, Pettersen and Verde (2023), OMAE2023-104817, doi:10.1115/OMAE2023-104817. They formulated the relative slip of three cores, its onset and the coalescence of the slip zones. The paper is now cited in:

  • core_friction and station_coupling;
  • the local analysis guide and doc/template_66kv.md;
  • the changelog.

The docs now also state that the largest friction stress saturates at π/3 times the onset, before the slip zones coalesce at 2π/(3√3) = 1.209. That saturation is the "full slip" curvature of their Table 1.

New reported row SK23-T1. It runs their worked case (three tubes, core–core contact only) through CableXSec's coupled stations:

Quantity CableXSec Skeie et al. Table 1
Onset [1/mm] 2.2518e-5 with the contact load per metre of helix, as their Eq. 16 (2.2320e-5 per metre of cable) 2.25e-5
Saturation / onset 1.0472 (π/3) 1.049 (model), 1.053 (FE)
Coalescence / onset 1.209 not reported

The 0.9 % onset difference is the load convention, a factor cos α. The row is code-to-code and not gated. tests/test_core_coupled_slip.py checks it.

Documentation

  • Bonded outer face (0.2.1). When the layer is stuck, the inner support and the bond act in parallel:

    $$\xi_\mathrm{tot}=\frac{K_s+K_b}{K_s+K_b+k_2}.$$

    • The 0.2.1 statement "the stuck layer is unchanged" holds only for a rigid support, which Zeidan's outer armour has (ξ = 1). With ξ = 0.5 the bond raises it to 0.510.
    • The friction cap stays the inner face's. The bond is a separate elastic shear flow, so scaling the cap by $1-\xi_b$ (about 4 % on Zeidan) would count it twice.
    • doc/benchmarks.md and the test docstrings are corrected.
  • Stuck-wire curvature. The stuck-wire normal curvature $\cos^4\alpha$ now cites Sævik (2011) Eq. 50, the prescribed normal curvature of the stuck helix.

  • Validation report. Cells now escape a literal |, as in |cos|. Before, the rows slip-onset and QP-KKT broke the table. The escaping is done in Row.line, and the staleness check compares escaped values.

  • Version references. The 0.2.1 references are updated in doc/template_66kv.md, the BibTeX key in doc/citing.rst, and DEVELOPMENT.md.

Tests

  • Curvature components. The CableDyn curvature-component test compares the strain gradient with rtol=1e-15 instead of exact equality.
  • Numba cache paths. The per-worker numba cache folders get short names: cxnb-<8>-gwN. The long names overflowed the 260-character path limit of Windows.

Not in this PR

  • Thermal and electrical model (IEC 60287-1-1/2-1:2023, TB 880) and TB 862 rig and ULS items: next.
  • Stale tables in doc/template_66kv.md Section 4: they need a reproducible generator first.

Checks

  • Ruff, ruff format and mypy (strict, 122 files) are clean.
  • Full suite: 5025 passed, 3 skipped, before the last documentation edits and the SK23-T1 test. The touched test modules were rerun afterwards.
  • Validation report regenerated.

… SK23-T1

Ninety public functions of 36 submodules that take a cable read the
library values when called directly (xi_for_layer gave 1.000 for
Zeidan's inner armour instead of 0.832): every submodule now wraps them
with scope_entry_points, as cablexsec and cablexsec.api do, and a
nested call with the same cable object skips re-entering the scope (no
measurable cost). A test walks every module.

The coupled intralayer core slip credits Skeie, Sodahl, Pettersen and
Verde (2023, OMAE2023-104817); the largest friction stress saturates at
pi/3 times the onset, the "full slip" of their Table 1, before the
coalescence at 1.209. New reported row SK23-T1 runs their worked case.

Documentation: the bonded face's stuck coefficient takes the support
and the bond in parallel (unchanged only on a rigid support) and its
friction cap is not reduced; the stuck cos^4 normal curvature cites
Saevik (2011) Eq. 50; report cells escape a literal |; 0.2.1 version
references. Tests: a tolerance instead of exact equality in the
curvature-component test; short numba cache folder names.

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

chatgpt-codex-connector Bot commented Nov 23, 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-24T02:27:56.307201Z 1ecfa22 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 23, 2026 •

Copy link
Copy Markdown

Documentation build overview

📚 CableXSec | 🛠️ Build #36119384 | 📁 Comparing 1ecfa22 against latest (2af48a4)

  🔍 Preview build  

7 files changed · ± 7 modified

± Modified

After #63: the SV11 rows of dev and the SK23-T1 row of this branch;
escaped cells; taxonomy counts.

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. 👍

Reviewed commit: 2cd153dd7a

ℹ️ 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 keys say what the two printed values are (the source's model and its
FE). No value, row or test result 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

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: 1ecfa220cc

ℹ️ 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 8c613ad into dev Nov 24, 2026
14 checks passed
@SMI-Lab-Inha
SMI-Lab-Inha deleted the fix/p3-audit-items branch November 24, 2026 12:16
This was referenced Nov 30, 2026
SMI-Lab-Inha added a commit that referenced this pull request Nov 30, 2026
… SK23-T1 (#64)

fix: direct calls read the cable materials; Skeie 2023 credit and row SK23-T1

Ninety public functions of 36 submodules that take a cable read the
library values when called directly (xi_for_layer gave 1.000 for
Zeidan's inner armour instead of 0.832): every submodule now wraps them
with scope_entry_points, as cablexsec and cablexsec.api do, and a
nested call with the same cable object skips re-entering the scope (no
measurable cost). A test walks every module.

The coupled intralayer core slip credits Skeie, Sodahl, Pettersen and
Verde (2023, OMAE2023-104817); the largest friction stress saturates at
pi/3 times the onset, the "full slip" of their Table 1, before the
coalescence at 1.209. New reported row SK23-T1 runs their worked case.

Documentation: the bonded face's stuck coefficient takes the support
and the bond in parallel (unchanged only on a rigid support) and its
friction cap is not reduced; the stuck cos^4 normal curvature cites
Saevik (2011) Eq. 50; report cells escape a literal |; 0.2.1 version
references. Tests: a tolerance instead of exact equality in the
curvature-component test; short numba cache folder names.
Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
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