Repository navigation
fix: the trefoil filler twists as separate lobes, not about the cable axis - #24
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review |
39310ca to
515de7a
Compare
There was a problem hiding this comment.
💡 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".
| for angle in mirror_angles: | ||
| distance = np.abs(pts[:, 0] * math.sin(angle) - pts[:, 1] * math.cos(angle)) | ||
| fixed |= distance <= 1e-9 * scale |
There was a problem hiding this comment.
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 👍 / 👎.
There was a problem hiding this comment.
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).
515de7a to
4c25616
Compare
|
@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>
|
Codex Review: Didn't find any major issues. Hooray! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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>
4c25616 to
b3cb545
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
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(incablexsec.mechanics.trefoil_section) solves the warpingwith$\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):
tests/test_trefoil_torsion.pyadds 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
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_stiffnessis 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); taxonomyanalytical_sanity1183 → 1190 passed,independent_method76,full_scale32. No other row changes beyond round-off.Gates
ruff checkandruff format --check(CI command): cleanmypy: no issues in 119 source filespytestwith numba: 4457 passed, 4 skipped; withCABLEXSEC_DISABLE_NUMBA=1: 4343 passed, 118 skippedrun_validation.py --check: up to date; the 5 registered FAIL rows are unchanged (BM1-ID, HU-3PB, WITZ-ID, SV11-PLANE, SV11-GJ)