Repository navigation
validation: where the SV11 termination increment comes from (SV11-SPLIT, SV11-REACH, SV11-EQ88) - #36
Conversation
|
@codex review |
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. |
There was a problem hiding this comment.
💡 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) |
There was a problem hiding this comment.
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 👍 / 👎.
There was a problem hiding this comment.
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).
1e4f940 to
e08eb95
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. Chef's kiss. 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". |
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>
|
@codex review |
e08eb95 to
062c17d
Compare
There was a problem hiding this comment.
💡 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".
| @lru_cache(maxsize=1) | ||
| def split_values(mu: float = MU_DECLARED) -> dict: |
There was a problem hiding this comment.
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 👍 / 👎.
There was a problem hiding this comment.
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>
|
@codex review |
There was a problem hiding this comment.
💡 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".
| elif variant.inlet == "hold": | ||
| kk[beam.x <= 0.0] = np.interp(0.0, beam.x, k) |
There was a problem hiding this comment.
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 👍 / 👎.
There was a problem hiding this comment.
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>
|
@codex review |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. 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
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.
Findings
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).
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.
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.
The correction is fragile and the sectional result is not. Sensitivities from
check_saevik2011.py OUT --sensitivity, none registered: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.
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.
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.pyRig. The registered rig is the default, read from the module constants, and the registered rows are unchanged bit for bit; a test checks this.TermVariant(uniform profile, set-back, inlet zero/hold, stick).split_values,eq88_consistency,profile_convergence,sensitivity(with a temporary shear-stack patch, sensitivity only), and a--sensitivityCLI.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.doc/benchmarks.md(SV11 section),VALIDATION.md,CHANGELOG.md,validation/validation_report.md.Checks
ruff check/ruff format --check(the CI command),mypy: cleanpytest, with numba and withCABLEXSEC_DISABLE_NUMBA=1: passrun_validation.py --check: report current. Taxonomy counts were recounted on the final tree.