Skip to content

validation: where the SV11 termination increment comes from (SV11-SPLIT, SV11-REACH, SV11-EQ88) - #36

Merged
SMI-Lab-Inha merged 4 commits into
devfrom
fix/sv11-termination-diagnosis
Nov 18, 2026
Merged

SMI-Lab-Inha merged 4 commits into
devfrom
fix/sv11-termination-diagnosis

Conversation

@SMI-Lab-Inha

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

Copy link
Copy Markdown
Owner

Summary

SV11-PLANE and SV11-GJ fail with the termination correction. The median R is 1.62 against a band of [0.85, 1.18], and GJ is 1.80 against [0.72, 1.38]. The sectional result is close to both bands (1.00 and 1.24). This PR finds out why. It splits the correction into the end-fitting anchor and the curvature profile, using the same solver, and reports the result as three rows that are stated, not gated. No registered row, input, band or default changes.

Variant SV11-PLANE median R (in band) SV11-GJ
sectional 1.00 (11 of 14) 1.24
registered correction 1.62 (3 of 14) 1.80
end-fitting anchor alone (bellmouth curvature imposed uniformly from the face) 1.01 (11 of 14) 1.27
no end fitting (armour anchored 20 m upstream, profile unchanged; LC 14) 1.70 = registered (change < 1e-12) 1.80

Findings

  1. The end fitting contributes about 1 %. The SV11 rows do not test the end-fitting mechanics at all. Making the anchor free or elastic leaves the result unchanged (the earlier TA study found the same).

  2. The excess comes from the curvature gradients at the bellmouth contact, on a curvature field computed one way. The straight inlet carries at most 5 % of the bellmouth curvature. Its wires stay stuck, so the inlet acts as the anchor: setting the inlet curvature to zero gives the same result (1.61 / 1.86). Removing only the step at the curved-section start leaves the median at 1.61 and lowers GJ to 1.57, so the gradients across the contact zone carry the increment, not the step itself. At LC 14 the slip demand is $a = \kappa/\kappa_c \approx 27$. The clamp law then amplifies the peak friction force by about $1 + 0.54\sqrt{a} \approx 3.8$, over a 1.86 m boundary layer. The beam that supplies the profile uses the sectional backbone, so the anchoring never stiffens the pipe. The two-way study already in the register (TC rows) lowers the along-wire median from 3.09 to 1.18, but still fails.

  3. SV11-PLANE cannot pass through any termination correction. At 0.5° and 1° the slip demand of the correction is $a_{max}$ = 0.26 and 0.36. The pipe sticks, the correction is zero and R = 0.45 and 0.54. Both are outside [0.70, 1.43] whatever the correction does. Twelve of 14 then needs LC 4 in the band, and its sectional R is already 2.17.

  4. The correction is fragile and the sectional result is not. Sensitivities from check_saevik2011.py OUT --sensitivity, none registered:

    Variant corrected median (in band) sectional (in band) GJ corr. / sec.
    registered 1.62 (3) 1.00 (11) 1.80 / 1.24
    gap 10 mm (Gjøsteen's model value) 1.62 (2) 0.96 (10) 1.70 / 1.24
    bellmouth end 1.79 m 1.62 (3) 1.00 (11) 1.80 / 1.24
    rocker turns about the end-fitting face 1.25 (6) 1.09 (11) 1.50 / 1.26
    inlet curvature zero 1.61 (3) 1.00 (11) 1.86 / 1.24
    inlet held at the curved-start curvature 1.61 (3) 1.00 (11) 1.57 / 1.24
    rigid stick in the correction 2.30 (2) 1.00 (11) 2.24 / 1.24
    Yun shear stack cut at the nearest helical layer below (ξ 0.52 → 0.88) 2.17 (3) 1.19 (12) 2.07 / 1.27

    Moving the rocker pivot to the end-fitting face moves LC 14 corrected from 1.70 to 1.17. The last row is the strongest lead for the other half of the failure, the small-angle (stick) deficit. In the packaged section, 85 % of the Yun shear compliance comes from the 8.7 mm pressure sheath that lies under the steel pressure armour. Cutting the stack there brings the small-angle sectional ratios to 0.79, 0.86 and 1.21, and the sectional SV11-PLANE to median 1.19 with 12 of 14 in band. GJ becomes 1.27. This is a section question, not a termination one, and it is not changed here.

  5. Rig constants and source conflicts. Eq. 88 at Sævik's 1.72 m gives 3.90 m and 15.9°, both of his printed values. At Gjøsteen et al.'s 1.79 m it gives 3.79 m and 17.0° (SV11-EQ88), so 1.72 m stays. Sævik's 5 mm gap is the test description; Gjøsteen's 10 mm is their model value. Sævik's Fig. 15, scaled with the station abscissae, draws the straight inlet back to about 2.35 m, which is consistent with the 2.305 m end-fitting face. The two papers' plots of LC 14 at the same stations imply static stresses of 238–341 MPa, a ±18 % inconsistency within one test.

  6. Convergence. At 20 mm, tightening the beam tolerance from 1e-9 to 1e-13 changes the station curvatures by ≤ 0.5 %, and halving the mesh at 1e-13 changes them by ≤ 1.0 % (profile_convergence).

Changes

  • validation/scripts/check_saevik2011.py
    • The beam takes a Rig. The registered rig is the default, read from the module constants, and the registered rows are unchanged bit for bit; a test checks this.
    • New TermVariant (uniform profile, set-back, inlet zero/hold, stick).
    • New functions: split_values, eq88_consistency, profile_convergence, sensitivity (with a temporary shear-stack patch, sensitivity only), and a --sensitivity CLI.
  • validation/scripts/run_validation.py: rows SV11-SPLIT, SV11-REACH and SV11-EQ88 (INFO).
  • src/cablexsec/analysis/termination.py: the clamped-termination warning and the docstring now say where the excess comes from, with numbers updated from 1.65 / 1.03 to 1.6 / 1.0. No behaviour change.
  • Tests: rig defaults, rotation lever arm, Eq. 88, row pins, warning text.
  • doc/benchmarks.md (SV11 section), VALIDATION.md, CHANGELOG.md, validation/validation_report.md.

Checks

  • ruff check / ruff format --check (the CI command), mypy: clean
  • full pytest, with numba and with CABLEXSEC_DISABLE_NUMBA=1: pass
  • run_validation.py --check: report current. Taxonomy counts were recounted on the final tree.

@SMI-Lab-Inha

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 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-18T17:36:00.209224Z 8b1e57f 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 18, 2026 •

Copy link
Copy Markdown

Documentation build overview

📚 CableXSec | 🛠️ Build #35991689 | 📁 Comparing 8b1e57f against latest (240bf9c)

  🔍 Preview build  

22 files changed · ± 22 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: 1e4f940a66

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

_state, layer, static = section(case, mu)
moment, ei_max, ei_min = backbone(case, mu)
beam = Beam(moment, ei_min, case.tension_N)
beam = Beam(moment, ei_min, case.tension_N, rig=rig)

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 Use the selected rig's anchor for termination coordinates

When predict_case receives a rig with a different x_anchor_m, only the beam uses that anchor: xp still subtracts the module-level X_ANCHOR_M, and station_ranges also calculates the termination distance from that constant. For example, moving the rig anchor to −3 m produces a curvature profile whose first coordinate is negative, which TerminationSpec rejects, so this geometry sensitivity cannot run. Resolve the selected rig's anchor once and use it for both the profile coordinates and station distances.

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 e08eb95: predict_case takes the anchor from the beam's rig and passes it to station_ranges (new x_anchor_m argument), so the profile coordinates and the station distances move together. Test test_rig_anchor_sets_the_termination_coordinates runs LC 14 with the end-fitting face at -3.0 m. The registered rows are unchanged (same anchor value).

@SMI-Lab-Inha
SMI-Lab-Inha force-pushed the fix/sv11-termination-diagnosis branch from 1e4f940 to e08eb95 Compare November 18, 2026 10:14
@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. Chef's kiss.

Reviewed commit: e08eb9581a

ℹ️ 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 SV11 harness beam takes its rig as a Rig value (the registered rig is the
default, read from the module constants; the registered rows are unchanged
bit for bit) and the termination correction of a station can be run as a
variant: uniform curvature from the end-fitting face, an anchor set back
upstream, the inlet curvature zeroed or held, another stick convention. The
rig's anchor sets the termination coordinates, and a free-inlet rig needs a
mesh node at the entrance. split_values() and eq88_consistency() feed three
reported rows (SV11-SPLIT, SV11-REACH, SV11-EQ88); --sensitivity writes the
rig, stick and shear-stack sensitivities and the profile convergence of the
benchmark page. The end fitting contributes about 1 % of the correction; the
excess comes from the curvature gradients at the bellmouth contact on a
one-way curvature field, and SV11-PLANE cannot pass through any termination
correction because its small-angle cases stick. The clamped-termination
warning says so.

Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
Taxonomy recounted on the merged tree (full_scale 44 on dev plus the 6
SV11 tests of this branch).

Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
@SMI-Lab-Inha

Copy link
Copy Markdown
Owner Author

@codex review

@SMI-Lab-Inha
SMI-Lab-Inha force-pushed the fix/sv11-termination-diagnosis branch from e08eb95 to 062c17d Compare November 18, 2026 14:37

@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: 062c17de66

ℹ️ 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 +717 to +718
@lru_cache(maxsize=1)
def split_values(mu: float = MU_DECLARED) -> dict:

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 Invalidate split results when changing tendon or anchor settings

When comparing configurations in one Python process, calling split_values(), then use_tendons("rectangular") or use_anchor(0.0), and then split_values() again returns the first configuration's results unchanged. The new cache is keyed only by mu, while both setters clear gate_values but not split_values. Consequently, the decomposition can silently report round-tendon or rigid-anchor results for the newly selected configuration, even though fresh gate predictions reflect that selection. Clear this cache alongside gate_values whenever its underlying configuration changes, or include those settings in its cache key.

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 32dd46c: use_tendons(), use_anchor() and the shear-stack sensitivity context now call _clear_results(), which clears both gate_values and split_values. Test test_setting_changes_clear_the_split_cache checks both setters.

split_values() is cached by mu only; use_tendons() and use_anchor() (and the
shear-stack sensitivity context) cleared gate_values but not it, so a second
call after a settings change returned the first configuration. Both caches
are now cleared together.

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 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: 32dd46cf71

ℹ️ 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 +578 to +579
elif variant.inlet == "hold":
kk[beam.x <= 0.0] = np.interp(0.0, beam.x, k)

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 the section normalization in the held-inlet variant

For station 1.1 at x = −0.570 m, this branch overwrites the profile value at the analysed section but still passes the original beam curvature as peak. Because TerminationSpec.shape() normalizes the entire profile by its value at the section, the contact-zone curvature seen by this station is consequently multiplied by k(-0.570) / k(0), rather than kept unchanged. The sensitivity metrics include this station, so the reported held-inlet comparison mixes the intended inlet change with an unintended rescaling of the bellmouth profile. Preserve the original section normalization, or update the station history consistently with the modified profile.

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 8b1e57f: a station in the modified inlet now takes the modified curvature at its own position as its history (kappa_peak_termination), so the shape normalised at the section reproduces the beam's contact-zone curvature. Test test_held_inlet_keeps_the_contact_zone_curvature. The held-inlet sensitivity changes from median 1.46 (5 of 14) to 1.61 (3 of 14), GJ 1.57 unchanged; the benchmark page and the PR description are updated (the step at the curved-section start is not the main source of the increment).

The correction normalises the curvature shape at the section. For a station
in the held inlet (1.1 at -0.57 m) the variant changed the shape at the
section but kept the beam curvature as its history, which rescaled the
contact-zone curvature that station saw by k(-0.57)/k(0). Such a station now
takes the held curvature as its history, so the field elsewhere keeps its
values. The held-inlet sensitivity reads median 1.61 (3 of 14) and GJ 1.57,
not 1.46 (5 of 14): removing the step at the curved-section start changes
little; the gradients across the contact zone carry the increment.

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. More of your lovely PRs please.

Reviewed commit: 8b1e57f1f3

ℹ️ 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 56b8d1e into dev Nov 18, 2026
12 checks passed
@SMI-Lab-Inha
SMI-Lab-Inha deleted the fix/sv11-termination-diagnosis branch November 18, 2026 19:29
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