Skip to content

fix: the trefoil filler twists as separate lobes, not about the cable axis - #24

Merged
SMI-Lab-Inha merged 6 commits into
devfrom
fix/trefoil-filler-torsion
Nov 17, 2026
Merged

SMI-Lab-Inha merged 6 commits into
devfrom
fix/trefoil-filler-torsion

Conversation

@SMI-Lab-Inha

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

Copy link
Copy Markdown
Owner

Summary

The Saint-Venant twist rigidity of the trefoil bundle added the polar moment of the interstitial filler about the cable axis, as if the filler were bonded to the ring with no warping. The model's own contacts with the filler are frictionless (no axial shear crosses them), and the three outer interstices are disjoint lobes (the central interstice is void), so that term is not supported by the section model. The filler lobes now twist as separate bodies with their own warping.

The error

For an element group the code summed $\int G,r^2,dA$: about the core centre for core elements (exact for annuli) and about the cable axis for ring and filler elements. Twisting the filler about the cable axis requires axial shear across the filler–ring and filler–core contacts, which are frictionless. Even for a bonded filler, $\int G r^2 dA$ without warping is only an upper bound for a non-circular region.

A rough check that slip, not stick, is the physical state at the loads of interest: holding the filler to the ring needs an interface shear of order $G_f,r,\tau$, about 2.3 MPa on the Chae, Nam and Shim (2023) cable at its coiling twist of 0.125 rad/m, against $\mu p$ of order 0.01–0.06 MPa.

The fix

saint_venant_rigidity (in cablexsec.mechanics.trefoil_section) solves the warping $w = \tau\psi$ of a region of the six-node mesh:

$$ GJ = \min_\psi \int G,\lvert\nabla\psi + (-y,,x)\rvert^2,dA = \int G,r^2,dA - f^\mathsf{T} K^{-1} f, $$

with $\psi = 0$ on the mirror boundaries of the 60° sector (torsion warping is antisymmetric about a mirror plane that contains the twist axis). The filler's 60° boundary is taken from the mesh keys, as in the in-plane mirror conditions, because its nodes lie off the exact line when the cores do not touch (the Chae cable: about 0.4 µm). One node is held in any connected part without such a node. Cores (about their centres) and the bonded ring layers (about the cable axis) are unchanged.

Verification

New validation row TQ-SV (Tier 1; targets registered in the first commit, before the run):

Check Target Result
2 × 1 rectangle vs the Saint-Venant series solution < 3e-4 relative 1.0e-4
Bonded annulus meshed as the mirrored 60° sector vs $G\pi(b^4-a^4)/2$ < 1e-6 relative −1.5e-8

tests/test_trefoil_torsion.py adds the rectangle at aspect ratios 1, 2 and 4 (FE upper bound, within 3e-4), the mirrored annulus, the cores-plus-ring rigidity of a bundle without filler against the closed form, the filler term against the solver, and the continuity of the filler term when the cores move 0.2 % apart (within 3 %; a geometric test of the mirror line alone halves it).

Effect

Quantity Before After
Filler twist term, Chae, Nam and Shim (2023) cable 7.91 kN m² 0.32 kN m²
Free torsional stiffness, that cable, 0.125 rad/m unwinding, armour pitch 1.8 / 3.0 m 89.5 / 58.1 kN m² 81.9 / 50.5 kN m²
Filler twist term, Su et al. (2026) 35 kV cable 3.63 kN m² 0.14 kN m²
Torsional stiffness, 35 kV cable, ends fixed axially, clockwise / anticlockwise 203.0 / 180.5 kN m² 199.5 / 177.0 kN m²

The 35 kV cable has a published test (Su et al. 2026, Table 6: 209.8 / 201.3 kN m²; their FE 209.5 / 201.2). The fix moves the model away from that measurement: −3.1 / −10.3 % becomes −4.8 / −12.0 % against the FE. The band of the anticlockwise assertion in test_su_2026_35kv_axial_and_torsional_stiffness is widened from 12 % to 13 %, with the reason in the test. The removed term was not a mechanism the model supports, and the remaining gap is not the filler: the section without any filler gives 168.0 kN m², against 184.3 kN m² from the source's own analytical model that also neglects the filler. That gap is left open.

Other changes in the generated outputs: the coiling how-to torque (14.4 m tank) 12.43 → 11.37 kN m, (8 m tank) 22.37 → 20.47 kN m; the free-twist load share of the 66 kV how-to 0.357 / 0.322 → 0.359 / 0.320. Coiling stresses are unchanged (twist control).

Validation report

run_validation.py --check: one new row (TQ-SV, PASS); taxonomy analytical_sanity 1183 → 1190 passed, independent_method 76, full_scale 32. No other row changes beyond round-off.

Gates

  • ruff check and ruff format --check (CI command): clean
  • mypy: no issues in 119 source files
  • pytest with numba: 4457 passed, 4 skipped; with CABLEXSEC_DISABLE_NUMBA=1: 4343 passed, 118 skipped
  • run_validation.py --check: up to date; the 5 registered FAIL rows are unchanged (BM1-ID, HU-3PB, WITZ-ID, SV11-PLANE, SV11-GJ)

@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-17T22:11:40.936485Z b3cb545 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 #35969115 | 📁 Comparing b3cb545 against latest (240bf9c)

  🔍 Preview build  

19 files changed · ± 19 modified

± Modified

@SMI-Lab-Inha

Copy link
Copy Markdown
Owner Author

@codex review

@SMI-Lab-Inha
SMI-Lab-Inha force-pushed the fix/trefoil-filler-torsion branch from 39310ca to 515de7a Compare November 17, 2026 20:22

@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: 515de7a9bb

ℹ️ 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 on lines +809 to +811
for angle in mirror_angles:
distance = np.abs(pts[:, 0] * math.sin(angle) - pts[:, 1] * math.cos(angle))
fixed |= distance <= 1e-9 * scale

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve mirror constraints for rounded core geometries

For bundles whose core spacing is not exactly 2*a/sqrt(3), this coordinate test misses the filler nodes on the mesh's nominal 60° boundary. This affects shipped configurations: chae2023_coiling.yaml uses rc=0.040877 and a=0.0354, so the inner endpoint lies about 0.4 µm off the mirror line, exceeding the 1 nm tolerance. Only the ring endpoint is then constrained, leaving the rest of the half-lobe boundary free to warp and underestimating its torsional rigidity when multiplied by six. The existing _mirror_transform identifies this boundary using mesh keys instead; pass equivalent boundary information to the warping solver or project the nominal boundary onto the mirror line before solving.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Fixed in 4c25616: the filler nodes of the 60° mirror boundary are now taken from the mesh keys (as the in-plane mirror conditions do) and passed to saint_venant_rigidity as mirror_nodes. On the Chae cable the filler term rises from 0.17 to 0.32 kN m² with it; a new test moves the cores 0.2 % apart and keeps the filler term within 3 % of the touching case (the geometric test alone halved it).

@SMI-Lab-Inha
SMI-Lab-Inha force-pushed the fix/trefoil-filler-torsion branch from 515de7a to 4c25616 Compare November 17, 2026 21:27
@SMI-Lab-Inha

Copy link
Copy Markdown
Owner Author

@codex review

… axis

The Saint-Venant twist rigidity of the trefoil bundle added the polar moment
of the interstitial filler about the cable axis, as if the filler were bonded
to the ring with no warping. The filler touches the cores and the ring
through the model's frictionless contacts, which carry no axial shear, and
the three outer interstices are disjoint lobes (the central one is void), so
the filler lobes twist as separate bodies with their own warping.

saint_venant_rigidity solves the warping of a region of the six-node mesh
(psi = 0 on the mirror lines, where torsion warping is antisymmetric) and
returns the polar moment less the warping relief. The cores keep their own
rigidity about their centres and the bonded ring layers theirs about the
cable axis; both are exact for annuli.

Validation row TQ-SV (targets registered with this commit): the solver
against the series solution of a 2 x 1 rectangle (< 3e-4) and a bonded
annulus meshed as the mirrored 60 degree sector against its polar moment
(< 1e-6).

Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
… fix

The validation report gains row TQ-SV (rectangle 1.0e-4, mirrored annulus
-1.5e-8: PASS) after the torque-balance row. The coiling and load-sharing
how-to outputs, the radial model page and the changelog carry the new
values. On the Su et al. (2026) 35 kV cable the torsional stiffness with the
ends fixed axially becomes 199.5 / 177.0 kN m^2 (clockwise /
anticlockwise; FE 209.5 / 201.2, test 209.8 / 201.3; before 203.0 /
180.5). The band of the anticlockwise assertion is widened from 12 to 13 %
and the reason is stated in the test: the removed term is not a mechanism
of the section model, and the remaining gap is not the filler.

Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
…t shear stiffness

After the serving layer (#18) the Chae, Nam and Shim (2023) cable's yarns
carry no torsion, so its free torsional stiffness at 0.125 rad/m
(unwinding) falls with this fix from 89.5 to 81.7 kN m^2 at an armour pitch
of 1.8 m and from 58.1 to 50.3 kN m^2 at 3.0 m; the coiling how-to torques
become 11.35 and 20.44 kN m. saint_venant_rigidity returns zero for a region
without shear stiffness instead of solving a singular system.

Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
The TQ-SV check and the warping tests compare with
tendon_section.rectangle_torsion_constant instead of a second copy of the
same series.

Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
…xact line

When the cores do not touch (r_c sin 60 deg > a) the filler's 60 degree
boundary nodes lie off the exact mirror line (about 0.4 um on the Chae,
Nam and Shim (2023) cable), so a geometric test left that boundary free to
warp and halved the filler term. The nodes are now taken from the mesh keys,
as the in-plane mirror conditions do (saint_venant_rigidity takes
mirror_nodes). The Chae filler term is 0.32 kN m^2 (was 0.17 with the
geometric test; 7.9 before this branch), its free torsional stiffness at
0.125 rad/m 81.9 / 50.5 kN m^2 at armour pitches of 1.8 / 3.0 m, and the
coiling how-to torques 11.37 and 20.47 kN m. A test moves the cores 0.2 %
apart and keeps the filler term within 3 % of the touching one.

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

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: 4c2561664b

ℹ️ 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 force-pushed the fix/trefoil-filler-torsion branch from 4c25616 to b3cb545 Compare November 17, 2026 22:09
@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. Already looking forward to the next diff.

Reviewed commit: b3cb545e6d

ℹ️ 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 2e0d409 into dev Nov 17, 2026
12 checks passed
@SMI-Lab-Inha
SMI-Lab-Inha deleted the fix/trefoil-filler-torsion branch November 18, 2026 05:15
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