From 8e79acec2260e2bfd2d34f8d57ae9556239c2aca Mon Sep 17 00:00:00 2001 From: Jae Hoon Seo Date: Wed, 18 Nov 2026 19:30:54 +0900 Subject: [PATCH 1/7] validation: where the SV11 termination increment comes from 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 --- CHANGELOG.md | 16 + VALIDATION.md | 7 +- doc/benchmarks.md | 99 +++++++ src/cablexsec/analysis/termination.py | 17 +- tests/test_saevik2011_benchmark.py | 94 ++++++ tests/test_termination_warning.py | 15 +- validation/scripts/check_saevik2011.py | 393 +++++++++++++++++++++++-- validation/scripts/run_validation.py | 73 +++++ validation/validation_report.md | 5 +- 9 files changed, 689 insertions(+), 30 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ff460e..7a0c1aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,22 @@ All notable changes to CableXSec are recorded in this file. The format follows ### Added +- Reported rows SV11-SPLIT, SV11-REACH and SV11-EQ88: where the SV11 termination increment + comes from. With the bellmouth curvature imposed uniformly from the end-fitting face the + end-fitting anchor alone moves the SV11-PLANE median from 1.00 to 1.01 and SV11-GJ from 1.24 + to 1.27 (registered correction 1.62 and 1.80); with the armour anchored 20 m upstream instead + the corrected ranges do not change. The increment is the anchored chain's response to the + curvature gradients at the bellmouth contact, with the stuck straight inlet as the anchor, on + a curvature field that does not carry the anchoring. At 0.5° and 1° the pipe sticks and the + correction is zero (R 0.45, 0.54), so SV11-PLANE cannot pass through any termination + correction. Eq. 88 confirms Sævik's bellmouth end (1.72 m: 3.90 m and 15.9°; Gjøsteen et al.'s + 1.79 m gives 3.79 m and 17.0°). The benchmark page adds the rig, stick and shear-stack + sensitivities (`check_saevik2011.py OUTPUT --sensitivity`): the corrected median moves from + 1.62 to 1.25 when the rocker turns about the end-fitting face, the sectional one by 9 %; with + the Yun shear stack cut at the nearest helical layer below (ξ 0.52 → 0.88) the small-angle + sectional ratios reach the band. No registered row, input or default is changed; the SV11 + harness beam takes its rig as a `Rig` value (the registered rig by default). + - Scorecard rows AW-DONG25 and AW-ZT14 (code-to-code, stated, not gated): the anchored-wire clamp solver against the published FE of Dong et al. (2025) (anchor 156.4 against 156.9 MPa, peak 207.8 against 204.5 MPa) and Zhu and Tan (2014) (1.19 / 1.70 against 2.22, an FE whose diff --git a/VALIDATION.md b/VALIDATION.md index 33a8e5d..0643e18 100644 --- a/VALIDATION.md +++ b/VALIDATION.md @@ -68,6 +68,8 @@ afterwards: a comparison that misses its target is reported as failed. | **WITZ-ID** | 300-bar loop predicted after identifying the initial pressure at 0 bar | Witz (1996), Figs 5–6 | width 1356 N·m vs 1990–2164; energy −14.2 % | width 1692–2489 N·m; energy ±15 % | **Fail** | | **SV11-PLANE** | Inner-armour stress ranges at the bending-plane FBG stations, 14 load cases | Sævik (2011), Figs 17–23 | median ratio 1.62 (3 of 14 in band); sectional 1.00 (11 of 14) | median 0.85–1.18 and ≥12 of 14 in 0.70–1.43 | **Fail** | | **SV11-GJ** | Absolute stress ranges near the termination, load case 14 | Gjøsteen et al. (2027), Figs 27–35 | mean ratio 1.80 (sectional 1.24) | 0.72–1.38 | **Fail** | +| **SV11-SPLIT** | Origin of the termination increment: end-fitting anchor alone (uniform curvature from the face); end fitting removed (anchor 20 m upstream) | Sævik (2011); Gjøsteen et al. (2027) | end fitting alone 1.01 / 1.27 (sectional 1.00 / 1.24); without end fitting unchanged (1.70, 1.80) | stated, not gated | Info | +| **SV11-REACH** | Small-angle slip demand and the cases outside the band whatever the correction does | Sævik (2011) | a_max below 1 at 0.5° and 1°; sectional outside: LC 4, 7, 8 | stated, not gated | Info | | **AW-DONG25** | Armour wire anchored at both ends of one pitch at uniform curvature: stress at the anchor and peak, code-to-code | Dong et al. (2025), FE, Figs 14 and 25 | anchor 156.4 vs 156.9 MPa (source theory 147.8); peak 207.8 vs 204.5 MPa | stated, not gated | Info | | **AW-ZT14** | Same at a = 4.92: normalised anchor and peak stress, code-to-code | Zhu and Tan (2014), FE, Figs 4–8 | 1.19 / 1.70 vs 2.22 (the FE far field is not in slip) | stated, not gated | Info | | **DAI18-DIG** | Digitised friction loops of armour wire on anti-wear tape, Test 1: loop maximum against the printed static coefficient | Dai, Sævik and Ye (2018), Fig. 4a, p. 428 | 0.2237 / 0.2405 / 0.3786 vs 0.22 / 0.24 / 0.38 | within 0.005 + 0.0021 | Pass | @@ -98,7 +100,10 @@ quantities are those of the passing rows. In particular: WITZ-ID. - The termination-corrected (anchored-wire) armour stress is an upper estimate that the published near-termination measurements do not support (SV11-PLANE, SV11-GJ); the sectional - result is the one that matches them. + result is the one that matches them. At this rig 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 (SV11-SPLIT), and SV11-PLANE cannot pass through any termination + correction because its small-angle cases stick (SV11-REACH). - The static/dynamic friction law is compared with measured friction loops of armour wire on anti-wear tape on one spring-slider, not on a cable section (DAI18 rows): the loops re-stick at every reversal (`stick_time_s = 0`), the dynamic level is rate independent at 0.01–0.2 Hz, diff --git a/doc/benchmarks.md b/doc/benchmarks.md index b98b685..3aea1a0 100644 --- a/doc/benchmarks.md +++ b/doc/benchmarks.md @@ -1171,6 +1171,105 @@ coordinates (figures only); the curvature distribution along the pipe; the end-fitting position relative to the bellmouth (taken from the rig lengths); Sævik and Igland (2002) and Andersen et al. (2001) are not held. +**Where the termination increment comes from (SV11-SPLIT, SV11-REACH, +SV11-EQ88; reported, not gated).** The registered correction anchors the +armour at the end-fitting face and gives each station the beam's peak +curvature profile as the shape of a proportional field. Two variants of the +same solver separate the end fitting from the profile +(`check_saevik2011.split_values`; computed after the registered rows, no +target): + +| Variant | SV11-PLANE median R (in band) | SV11-GJ | +| --- | --- | --- | +| sectional (no correction) | 1.00 (11 of 14) | 1.24 | +| registered correction | 1.62 (3 of 14) | 1.80 | +| end-fitting anchor alone: uniform curvature from the face | 1.01 (11 of 14) | 1.27 | +| no end fitting: anchor 20 m upstream of the face, profile unchanged (LC 14) | LC 14 1.70 (registered 1.70) | 1.80 | + +- *The end fitting contributes about 1 %.* Even with the bellmouth curvature + imposed uniformly from the face, the anchor 1.7–5.2 m from the stations + moves the median by +0.011 and the GJ ratio by +0.024. With the end + fitting removed from the solved chain the corrected ranges do not change + (largest station change below 1e-12). The SV11 rows therefore do not test + the end-fitting mechanics of the correction at all. +- *The increment is a curvature-gradient effect.* The pipe in the straight + inlet carries at most 5 % of the bellmouth curvature, so its wires stay + stuck and the inlet acts as an anchor at the start of the curved section; + with the inlet curvature set to zero the result is nearly the same (table + below). Across the contact zone the curvature rises from 0.008 to + 0.146 1/m within 0.7 m and falls back to 0.008 1/m within the next 0.8 m + (LC 14), against a clamp boundary layer of 1.86 m at the largest slip + demand `a = κ/κ_c ≈ 27`; the anchored-wire law amplifies the peak friction + force by about `1 + 0.54 √a ≈ 3.8` there. Holding the inlet at the + curvature of the start of the curved section (removing the step, not the + contact) lowers the median only to 1.46 (table below): both ends of + the contact zone contribute. +- *The beam does not carry it.* The profile is taken from a beam with the + sectional backbone, so the wire forces that the anchored chain builds next + to the inlet never stiffen the pipe there. The consistent two-way solution + (TC-1 to TC-3 above) spreads the bend into the bellmouth and lowers the + along-wire median from 3.09 to 1.18 and GJ from 4.2 to 1.46, still outside + both gates. +- *SV11-PLANE cannot be reached by a termination correction.* At 0.5° and + 1° the slip demand of the correction stays at a_max 0.26 and 0.36: the + pipe sticks, the correction is zero and R = 0.45 and 0.54, outside + [0.70, 1.43] whatever the correction does. Twelve of 14 then requires every + other case in the band, including LC 4 (250 kN, 17 MPa), whose sectional + ratio is already 2.17 (corrected 3.59). Passing needs the small-angle + (stick) curvature and the low-pressure cases fixed first; both are + section and beam questions, not termination ones. +- *Rig and stick sensitivities* (`check_saevik2011.py OUTPUT --sensitivity`, + none registered): + +| Variant | median R corrected (in band) | sectional (in band) | GJ corrected / sectional | +| --- | --- | --- | --- | +| registered | 1.62 (3) | 1.00 (11) | 1.80 / 1.24 | +| gap 10 mm | 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 | +| rotation at 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.46 (5) | 1.00 (11) | 1.57 / 1.24 | +| rigid stick in the correction | 2.30 (2) | 1.00 (11) | 2.24 / 1.24 | +| shear stack to the nearest helix | 2.17 (3) | 1.19 (12) | 2.07 / 1.27 | + + The correction is fragile: turning the rocker about the end-fitting face + instead of the start of the curved section (15 % longer lever arm) moves + LC 14 from 1.70 to 1.17, while the sectional result changes by a + few per cent. The rigid stick raises it, as in T2. With the shear stack of + the Yun coefficient cut at the nearest helical layer below (the 8.7 mm + pressure sheath lies under the steel pressure armour and is the larger part + of the compliance in the packaged section: ξ 0.52 → 0.88), the small-angle + ratios become 0.79, 0.86 and 1.21 (0.5°, 1°, 1.5°) and the sectional + SV11-PLANE reads median 1.19 with 12 of 14 in band (the gate's median bound + is 1.18), while the corrected median rises to 2.17 because the stiffer stick + raises the slip demand. The stick-regime deficit is therefore mostly the + assumed shear compliance of the section, not the rig. This is a sensitivity of an + unreported section property (the tape and sheath assumptions A5–A6 of + `saevik2011.yaml`), not a registered input, and changes no row. +- *Mesh and solver tolerance* (`check_saevik2011.profile_convergence`). The + beam solves to a projected gradient of 1e-9 relative to the initial one. At + 20 mm, solving to 1e-13 instead changes the station curvatures by at most + 0.5 % (LC 7, 14 and 18), and halving the mesh at 1e-13 by at most + 1.0 %. The 5 % (11 % at one station) quoted above was measured with the + 1e-9 tolerance on both meshes; on the finer mesh that tolerance stops short + of convergence (`EI/h⁴` inflates the initial gradient), so most of it is + the solve, not the mesh. +- *The rig as published.* Eq. 88 at Sævik's end, 1.72 m, gives 3.90 m and + 15.9°, both 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 is kept; the radius of 3.9 m is reached at + 1.722 m. Gjøsteen et al.'s 10 mm gap is their model's value "according to + Lukassen", Sævik's 5 mm is the test description; the harness keeps 5 mm. + Sævik's 14.5 m specimen and Gjøsteen et al.'s 16.55 m sample are + compatible if the 14.5 m counts the bare fittings (12.18 m of pipe plus + about 1.16 m each) and the 16.55 m the full rigid arrangements. Sævik's + Fig. 15, scaled with the station abscissae of Figs 17–23 (about 0.56 px per + mm on a 600 dpi render), draws the straight inlet back to about 2.35 m + before the curved section, consistent with the assumed end-fitting face at + 2.305 m. LC 14 is a 15° range in Sævik's Table 2 and ±8° in Gjøsteen et + al.; the two papers' measured ranges at the same stations imply static + stresses of 238–341 MPa (above), a ±18 % inconsistency between the two + plots of one test. + ## Measured wire-on-tape friction loops (DAI18-DIG, DAI18-RS, DAI18-T1, DAI18-T3) Source: Dai, Sævik and Ye, "An anisotropic friction model in non-bonded diff --git a/src/cablexsec/analysis/termination.py b/src/cablexsec/analysis/termination.py index 778942a..0e3a797 100644 --- a/src/cablexsec/analysis/termination.py +++ b/src/cablexsec/analysis/termination.py @@ -151,9 +151,10 @@ "the anchored-wire Coulomb correction (TerminationSpec anchor='clamped', " "clamp or along_wire solver) is an upper estimate that is not supported " "by the only published near-termination measurements (Saevik 2011 / " - "Gjosteen 2027 bellmouth FBG ranges: corrected ranges 1.65-3.4 times " - "measured, sectional 1.03 times; doc/benchmarks.md SV11 and T2). Report " - "it as a sensitivity bound beside the sectional result." + "Gjosteen 2027 bellmouth FBG ranges: corrected ranges 1.6-3.4 times " + "measured, sectional 1.0 times; the excess there comes from the bellmouth " + "curvature profile, not from the end-fitting anchor; doc/benchmarks.md " + "SV11 and T2). Report it as a sensitivity bound beside the sectional result." ) @@ -262,9 +263,13 @@ class TerminationSpec: With ``anchor="clamped"`` the anchored-wire Coulomb correction, with either solver, is an upper estimate. It is not supported by the only published near-termination measurements: on the bellmouth FBG ranges of - Saevik (2011) and Gjosteen et al. (2027) the corrected ranges are 1.65-3.4 - times the measured ones, the sectional ranges 1.03 times - (doc/benchmarks.md, SV11 and T2). :func:`compute_fatigue` therefore + Saevik (2011) and Gjosteen et al. (2027) the corrected ranges are 1.6-3.4 + times the measured ones, the sectional ranges 1.0 times + (doc/benchmarks.md, SV11 and T2). There the end fitting lies 2.3 m before + the curved bellmouth and adds about 1 %; the excess comes from the steep + curvature gradients at the ends of the bellmouth contact (the uncurved, + stuck inlet acts as the anchor) on a beam curvature that does not carry + the anchoring (row SV11-SPLIT). :func:`compute_fatigue` therefore issues :class:`~cablexsec.provenance.UnvalidatedModelWarning` for it; ``anchor="none"`` does not warn. """ diff --git a/tests/test_saevik2011_benchmark.py b/tests/test_saevik2011_benchmark.py index 547eaf5..d585575 100644 --- a/tests/test_saevik2011_benchmark.py +++ b/tests/test_saevik2011_benchmark.py @@ -14,8 +14,10 @@ import math from collections import defaultdict +from dataclasses import replace import check_saevik2011 as sv +import numpy as np import pytest import run_validation @@ -134,3 +136,95 @@ def test_registered_targets_and_results_are_pinned(rows): # Former symmetric cap: 1.90 (sectional 1.32). assert gj.value == "1.80 (sectional 1.24); static stress 271 MPa" assert gj.status == "FAIL" + + +def test_rig_defaults_are_the_registered_rig(): + rig = sv.sv11_rig() + assert (rig.x_anchor_m, rig.free_length_m, rig.rigid_right_m) == ( + sv.X_ANCHOR_M, + sv.FREE_LENGTH_M, + sv.RIGID_RIGHT_M, + ) + assert (rig.gap_m, rig.bell_end_m, rig.kappa_b0, rig.kappa_b1) == ( + sv.GAP_M, + sv.BELL_END_M, + sv.KAPPA_B0, + sv.KAPPA_B1, + ) + assert rig.inlet_bounded and rig.x_rotation_m == 0.0 + moment, _ei_max, ei_min = sv.backbone(sv.load_cases()[0], sv.MU_DECLARED) + default = sv.Beam(moment, ei_min, 500e3) + explicit = sv.Beam(moment, ei_min, 500e3, rig=rig) + assert (default.lower == explicit.lower).all() + assert (default.upper == explicit.upper).all() + a = default.solve(math.radians(2.0))[1] + b = explicit.solve(math.radians(2.0))[1] + assert (a == b).all() + + +def test_rotation_point_only_changes_the_lever_arm(): + # Turning the rocker about the clamp instead of x = 0 moves the far pin + # by the lever-arm ratio, nothing else. + moment, _ei_max, ei_min = sv.backbone(sv.load_cases()[0], sv.MU_DECLARED) + rig = sv.sv11_rig() + turned = sv.Beam( + moment, ei_min, 500e3, rig=replace(rig, x_rotation_m=rig.x_anchor_m) + ) + w = turned.solve(math.radians(1.0))[0] + lever = turned.x[-1] - rig.x_anchor_m + assert w[-1] == pytest.approx(-lever * math.sin(math.radians(1.0)), rel=1e-15) + + +def test_eq88_consistency_favours_the_1p72_m_end(): + eq = sv.eq88_consistency() + # Saevik (2011): 3.9 m at s = 1.72 m and a 16 deg slope; Gjosteen et al. + # (2027) the same radius at 1.79 m. + assert eq["1.72"]["radius_m"] == pytest.approx(3.90, abs=0.005) + assert eq["1.72"]["slope_deg"] == pytest.approx(15.9, abs=0.05) + assert eq["1.79"]["radius_m"] == pytest.approx(3.79, abs=0.005) + assert eq["1.79"]["slope_deg"] == pytest.approx(17.0, abs=0.05) + assert eq["radius_3.9"]["s_m"] == pytest.approx(1.722, abs=5e-4) + + +@needs_numba +def test_split_rows_are_pinned(): + rows = {r.ident: r for r in run_validation._saevik_split_rows()} + split = rows["SV11-SPLIT"] + assert split.target == "stated, not gated" + assert split.value == ( + "(a) median R 1.01 (11 of 14 in band), GJ 1.27; (b) LC 14 R 1.70, GJ " + "1.80, largest change against the registered correction below 1e-12; " + "registered 1.62 and 1.80, sectional 1.00 and 1.24" + ) + reach = rows["SV11-REACH"] + assert reach.value == ( + "a_max 0.26 and 0.36; R corrected 0.45 and 0.54 (sectional 0.45 and " + "0.54); sectional outside the band: LC 4 2.17, LC 7 0.45, LC 8 0.54" + ) + eq = rows["SV11-EQ88"] + assert eq.value == ( + "1.72 m: 3.90 m, 15.9 deg; 1.79 m: 3.79 m, 17.0 deg; 3.9 m at s = 1.722 m" + ) + assert {r.status for r in rows.values()} == {"INFO"} + + +def test_free_inlet_needs_a_node_at_the_entrance(): + moment, _ei_max, ei_min = sv.backbone(sv.load_cases()[0], sv.MU_DECLARED) + rig = replace(sv.sv11_rig(), inlet_bounded=False) # x_anchor -2.305 m + with pytest.raises(ValueError, match="no node at the bellmouth entrance"): + sv.Beam(moment, ei_min, 500e3, rig=rig) + on_grid = replace(rig, x_anchor_m=-2.3) + beam = sv.Beam(moment, ei_min, 500e3, rig=on_grid) + inlet = beam.x < -1e-9 + assert np.isinf(beam.upper[inlet]).all() + + +def test_rig_anchor_sets_the_termination_coordinates(): + # A rig with another end-fitting position moves the profile coordinates + # and the station distances together (the anchor is at the rig's face). + case = next(c for c in sv.load_cases() if c.lc == 14) + rig = replace(sv.sv11_rig(), x_anchor_m=-3.0, free_length_m=12.875) + res = sv.predict_case(case, sv.MU_DECLARED, only=("2.1",), rig=rig) + term = res["stations"]["2.1"]["termination"] + assert term["termination_applied"] == 1.0 + assert term["axial_p"] > 0.0 diff --git a/tests/test_termination_warning.py b/tests/test_termination_warning.py index fe7d3ad..87bacca 100644 --- a/tests/test_termination_warning.py +++ b/tests/test_termination_warning.py @@ -4,8 +4,9 @@ On the only published near-termination measurements (Saevik 2011, Gjosteen et al. 2027; BENCHMARKS SV11 and T2) the anchored-wire Coulomb correction gives -1.65-3.4 times the measured ranges, the sectional result 1.03 times. The -warning changes no number. +1.6-3.4 times the measured ranges, the sectional result 1.0 times; the +excess comes from the bellmouth curvature profile, not from the end-fitting +anchor. The warning changes no number. """ from __future__ import annotations @@ -62,7 +63,15 @@ def test_clamped_termination_warns_for_either_solver(history, solver): assert len(caught) == 1 message = str(caught[0].message) assert message == CLAMPED_TERMINATION_WARNING - for part in ("upper estimate", "1.65-3.4", "1.03", "SV11", "T2", "Saevik 2011"): + for part in ( + "upper estimate", + "1.6-3.4", + "1.0 times", + "not from the end-fitting anchor", + "SV11", + "T2", + "Saevik 2011", + ): assert part in message assert result.clamp_correction[layer.name]["applied"] # Bitwise the same result as without the warning machinery. diff --git a/validation/scripts/check_saevik2011.py b/validation/scripts/check_saevik2011.py index 999fa1f..cea1da9 100644 --- a/validation/scripts/check_saevik2011.py +++ b/validation/scripts/check_saevik2011.py @@ -54,7 +54,7 @@ import sys import time import warnings -from dataclasses import dataclass +from dataclasses import dataclass, replace from functools import lru_cache from pathlib import Path @@ -218,6 +218,45 @@ def backbone(case: LoadCase, mu: float): # type: ignore[no-untyped-def] # --------------------------------------------------------------------------- # # Global tensioned beam in the bellmouth # # --------------------------------------------------------------------------- # +@dataclass(frozen=True) +class Rig: + """Bellmouth rig geometry of the harness beam [m, 1/m]. + + ``x`` is measured from the start of the curved bellmouth section. The beam + is clamped at ``x_anchor_m`` (the end-fitting face; clamp and bellmouth + turn together with the rocker), runs ``free_length_m`` of pipe and + ``rigid_right_m`` of rigid arrangement to a pin. The bellmouth surface is + ``w = gap + kappa_b0 s^2 / 2 + kappa_b1 s^3 / 6`` for ``0 < s <= + bell_end_m``; with ``inlet_bounded`` the pipe between the clamp and the + curved section lies in a straight tube with the same gap, otherwise it is + free there and only the entrance (``s = 0``) carries the gap. The rocker + turns the clamp and the bellmouth about ``x_rotation_m``. + """ + + x_anchor_m: float + free_length_m: float + rigid_right_m: float + gap_m: float + bell_end_m: float + kappa_b0: float + kappa_b1: float + inlet_bounded: bool = True + x_rotation_m: float = 0.0 + + +def sv11_rig() -> Rig: + """The SV11 rig from the module constants (read at call time).""" + return Rig( + X_ANCHOR_M, + FREE_LENGTH_M, + RIGID_RIGHT_M, + GAP_M, + BELL_END_M, + KAPPA_B0, + KAPPA_B1, + ) + + class Beam: """Finite-difference tensioned beam with a hysteresis backbone and bounds.""" @@ -227,10 +266,13 @@ def __init__( ei_min: float, tension_N: float, h: float = 0.02, + rig: Rig | None = None, ) -> None: + rig = sv11_rig() if rig is None else rig + self.rig = rig self.h = h - x_pin = X_ANCHOR_M + FREE_LENGTH_M + RIGID_RIGHT_M - self.x = np.arange(X_ANCHOR_M, x_pin + 0.5 * h, h) + x_pin = rig.x_anchor_m + rig.free_length_m + rig.rigid_right_m + self.x = np.arange(rig.x_anchor_m, x_pin + 0.5 * h, h) self.n = self.x.size self.T = tension_N self.kmax = float(moment.x[-1]) @@ -240,14 +282,23 @@ def __init__( self.moment = moment self.dm = moment.derivative() self.energy = moment.antiderivative() - self.rigid = self.x > X_ANCHOR_M + FREE_LENGTH_M + self.rigid = self.x > rig.x_anchor_m + rig.free_length_m self.lower = np.full(self.n, -np.inf) self.upper = np.full(self.n, np.inf) - tube = self.x <= 0.0 - self.lower[tube], self.upper[tube] = -GAP_M, GAP_M - bell = (self.x > 0.0) & (self.x <= BELL_END_M) + tube = ( + self.x <= 0.0 + if rig.inlet_bounded + else np.isclose(self.x, 0.0, atol=1e-6 * h) + ) + if not tube.any(): + raise ValueError( + "the beam mesh has no node at the bellmouth entrance (x = 0): " + "choose x_anchor_m as a multiple of the mesh size" + ) + self.lower[tube], self.upper[tube] = -rig.gap_m, rig.gap_m + bell = (self.x > 0.0) & (self.x <= rig.bell_end_m) s = self.x[bell] - wb = GAP_M + KAPPA_B0 * s**2 / 2 + KAPPA_B1 * s**3 / 6 + wb = rig.gap_m + rig.kappa_b0 * s**2 / 2 + rig.kappa_b1 * s**3 / 6 self.lower[bell], self.upper[bell] = -wb, wb self.fixed = np.zeros(self.n, dtype=bool) self.fixed[[0, 1, self.n - 1]] = True @@ -324,7 +375,7 @@ def solve( w = np.zeros(self.n) if w0 is None else w0.copy() x_pin = self.x[-1] w[0] = w[1] = 0.0 - w[-1] = -x_pin * math.sin(half_angle_rad) + w[-1] = -(x_pin - self.rig.x_rotation_m) * math.sin(half_angle_rad) lo, hi = self.lower.copy(), self.upper.copy() lo[self.fixed], hi[self.fixed] = w[self.fixed], w[self.fixed] w = np.clip(w, lo, hi) @@ -389,25 +440,62 @@ def _at_azimuth(values: np.ndarray, azimuth_deg: float) -> np.ndarray: return np.asarray((1 - f) * values[i0] + f * values[i1]) +@dataclass(frozen=True) +class TermVariant: + """Termination-correction variant of the decomposition (SV11-SPLIT). + + ``uniform``: uniform curvature from the end-fitting face instead of the + beam profile (the end-fitting anchor alone). ``setback_m``: straight, + frictional, uncurved length between the armour anchor and the face (a + large value removes the end fitting from the solved chain; ``reach_lengths`` + must then cover it). ``inlet``: the profile upstream of the curved + section as solved (``"beam"``), set to zero (``"zero"``, up to 0.05 m + before a station in the inlet) or held at the curvature of the start of + the curved section (``"hold"``: the curvature step removed, the contact + zone kept). ``stick``: the stick convention of the correction. The + registered rows use the default. + """ + + uniform: bool = False + setback_m: float = 0.0 + reach_lengths: float = 8.0 + stick: str = "scaled" + inlet: str = "beam" + + +REGISTERED = TermVariant() + + def station_ranges( layer, peak: float, x_s: float, azimuth_deg: float, # type: ignore[no-untyped-def] profile: tuple[np.ndarray, np.ndarray] | None, + variant: TermVariant | None = None, + x_anchor_m: float = X_ANCHOR_M, ) -> dict[str, float]: - """Axial and single-side ranges [Pa] over the last cycle at one station.""" + """Axial and single-side ranges [Pa] over the last cycle at one station. + + ``profile=None`` and ``variant=None`` is the sectional result; otherwise + the termination correction (``variant`` defaults to the registered one), + with the anchor at ``x_anchor_m`` (the rig's end-fitting face). + """ from cablexsec.analysis.fatigue import wire_stress_field # noqa: PLC0415 from cablexsec.analysis.termination import TerminationSpec # noqa: PLC0415 kx = _history(peak) ky = np.zeros_like(kx) term = None - if profile is not None: + if profile is not None or variant is not None: + v = REGISTERED if variant is None else variant term = TerminationSpec( - distance_m=x_s - X_ANCHOR_M, - curvature_profile=profile, + distance_m=x_s - x_anchor_m, + curvature_profile=None if v.uniform else profile, k_anchor_N_m=K_ANCHOR_N_M, + setback_m=v.setback_m, + reach_lengths=v.reach_lengths, + stick=v.stick, ) field = wire_stress_field(layer, kx, ky, termination=term) last = slice(kx.size - 4 * 60 - 1, kx.size) @@ -432,6 +520,7 @@ def station_ranges( out["termination_applied"] = float(bool(inc is not None and inc.applied)) out["boundary_layer_m"] = float(inc.boundary_layer_m) if inc is not None else 0.0 out["reach_m"] = float(inc.reach_m) if inc is not None else 0.0 + out["a_max"] = float(inc.a_max) if inc is not None else 0.0 return out @@ -440,14 +529,21 @@ def predict_case( mu: float, half_angle_deg: float | None = None, only: tuple[str, ...] | None = None, + variant: TermVariant | None = None, + rig: Rig | None = None, ) -> dict: - """Station predictions of one load case (all stations, or ``only``).""" + """Station predictions of one load case (all stations, or ``only``). + + ``variant`` and ``rig`` change the termination correction and the rig of + the curvature profile (decomposition and sensitivity studies only). + """ _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) half = case.angle_range_deg / 2 if half_angle_deg is None else half_angle_deg w, k = beam.peak_profile(half) - xp = beam.x - X_ANCHOR_M + anchor = beam.rig.x_anchor_m + xp = beam.x - anchor profile = (xp, k) out = { "lc": case.lc, @@ -468,7 +564,17 @@ def predict_case( continue peak = float(np.interp(x_s, beam.x, k)) sec = station_ranges(layer, peak, x_s, az, None) - term = station_ranges(layer, peak, x_s, az, profile) + shape = profile + if variant is not None and variant.inlet != "beam": + kk = k.copy() + if variant.inlet == "zero": + kk[(beam.x <= 0.0) & (beam.x < x_s - 0.05)] = 0.0 + elif variant.inlet == "hold": + kk[beam.x <= 0.0] = np.interp(0.0, beam.x, k) + else: + raise ValueError(f"unknown inlet variant {variant.inlet!r}") + shape = (xp, kk) + term = station_ranges(layer, peak, x_s, az, shape, variant, anchor) out["stations"][name] = { "x_m": x_s, "azimuth_deg": az, @@ -548,13 +654,25 @@ def gate_values(mu: float = MU_DECLARED) -> dict: } -def gjosteen(mu: float, plane_only: bool = False) -> dict: +def gjosteen( + mu: float, + plane_only: bool = False, + variant: TermVariant | None = None, + rig: Rig | None = None, +) -> dict: """SV11-GJ: LC 14 at +-8 deg, absolute ranges [MPa].""" case = next(c for c in load_cases() if c.lc == 14) names = ("2.1", "2.5", "3.1", "3.5") + ( () if plane_only else ("2.2", "2.3", "3.2", "3.3", "3.4") ) - res = predict_case(case, mu, half_angle_deg=GJ_HALF_ANGLE_DEG, only=names) + res = predict_case( + case, + mu, + half_angle_deg=GJ_HALF_ANGLE_DEG, + only=names, + variant=variant, + rig=rig, + ) meas = measured_gjosteen() plane = ["2.1", "2.5", "3.1", "3.5"] pred = {s: res["stations"][s]["termination"]["axial_p"] / 1e6 for s in plane} @@ -588,6 +706,220 @@ def gjosteen(mu: float, plane_only: bool = False) -> dict: } +# --------------------------------------------------------------------------- # +# Decomposition of the termination increment (SV11-SPLIT, SV11-REACH) # +# --------------------------------------------------------------------------- # +FAR_ANCHOR = TermVariant(setback_m=20.0, reach_lengths=30.0) +EF_ONLY = TermVariant(uniform=True) +SMALL_ANGLE_CASES = (7, 8) # 0.5 and 1 deg + + +@lru_cache(maxsize=1) +def split_values(mu: float = MU_DECLARED) -> dict: + """Where the termination increment of SV11 comes from (reported rows). + + (a) The end-fitting anchor alone: the same correction with uniform + curvature from the end-fitting face, all load cases and SV11-GJ. + (b) No end fitting: the armour anchored 20 m upstream of the face + (straight, frictional, uncurved set-back), the bellmouth profile + unchanged; LC 14 and SV11-GJ against the registered correction. + (c) Reach of SV11-PLANE: slip demand ``a_max`` of the correction at the + small angles and the load cases whose sectional ratio is outside the band. + """ + plane = plane_stations() + reg = gate_values(mu) + ef = metrics( + [predict_case(c, mu, only=plane, variant=EF_ONLY) for c in load_cases()] + ) + gj_ef = gjosteen(mu, plane_only=True, variant=EF_ONLY) + lc14 = next(c for c in load_cases() if c.lc == 14) + far14 = metrics([predict_case(lc14, mu, only=plane, variant=FAR_ANCHOR)]) + gj_far = gjosteen(mu, plane_only=True, variant=FAR_ANCHOR) + reg_st = reg["plane"]["cases"][14]["stations"] + far_st = far14["cases"][14]["stations"] + change = max( + abs(far_st[s]["termination"] / reg_st[s]["termination"] - 1.0) for s in plane + ) + reg_gj = reg["gjosteen"]["plane_pred_MPa"] + gj_change = max(abs(gj_far["plane_pred_MPa"][s] / reg_gj[s] - 1.0) for s in reg_gj) + cases = reg["plane"]["cases"] + small = {} + for case in load_cases(): + if case.lc not in SMALL_ANGLE_CASES: + continue + res = predict_case(case, mu, only=plane) + small[case.lc] = { + "angle_range_deg": case.angle_range_deg, + "a_max": max(v["termination"]["a_max"] for v in res["stations"].values()), + "R": cases[case.lc]["R_termination"], + "R_sectional": cases[case.lc]["R_sectional"], + } + outside = sorted( + lc for lc, v in cases.items() if not 0.70 <= v["R_sectional"] <= 1.43 + ) + return { + "ef_only": { + "median_R": ef["median_R_termination"], + "count_in_band": ef["count_in_band_termination"], + "R": {lc: v["R_termination"] for lc, v in ef["cases"].items()}, + "gj_ratio": gj_ef["ratio_termination"], + }, + "no_end_fitting": { + "R_lc14": far14["cases"][14]["R_termination"], + "R_lc14_registered": cases[14]["R_termination"], + "gj_ratio": gj_far["ratio_termination"], + "gj_ratio_registered": reg["gjosteen"]["ratio_termination"], + "largest_station_change": change, + "largest_gj_change": gj_change, + }, + "registered": { + "median_R": reg["plane"]["median_R_termination"], + "median_R_sectional": reg["plane"]["median_R_sectional"], + "gj_ratio": reg["gjosteen"]["ratio_termination"], + "gj_ratio_sectional": reg["gjosteen"]["ratio_sectional"], + }, + "small_angle": small, + "sectional_outside_band": outside, + "R_sectional_outside": {lc: cases[lc]["R_sectional"] for lc in outside}, + "R_termination_outside": {lc: cases[lc]["R_termination"] for lc in outside}, + } + + +def eq88_consistency() -> dict[str, dict[str, float]]: + """Radius and slope of Saevik's Eq. 88 at the two published end points. + + Saevik (2011) states a minimum radius of 3.9 m at s = 1.72 m and a slope + of 16 deg; Gjosteen et al. (2027) the same radius at s = 1.79 m. + """ + out = {} + for s_end in (BELL_END_M, 1.79): + kappa = KAPPA_B0 + KAPPA_B1 * s_end + slope = KAPPA_B0 * s_end + KAPPA_B1 * s_end**2 / 2 + out[f"{s_end:.2f}"] = { + "radius_m": 1.0 / kappa, + "slope_deg": math.degrees(slope), + } + out["radius_3.9"] = {"s_m": (1.0 / 3.9 - KAPPA_B0) / KAPPA_B1} + return out + + +class _NearestHelixStack: + """Sensitivity only: Yun shear stack cut at the nearest helical layer below. + + The package sums the shear compliance of every polymer layer between a + helical layer and the axis. In this riser the 8.7 mm pressure sheath lies + under the steel pressure armour; inside this context the stack restarts + above the nearest helical layer below (tensile-armour ``xi`` 0.88 and 0.89 + instead of 0.52 and 0.51). Not a registered input; undone on exit. + """ + + def __enter__(self) -> None: + import cablexsec.api as api # noqa: PLC0415 + import cablexsec.mechanics.stiffness as stiffness # noqa: PLC0415 + from cablexsec.cables.schema import HelicalLayer # noqa: PLC0415 + + self._modules = (api, stiffness) + original = stiffness.xi_for_layer + self._original = original + + def xi_nearest(cable, layer_name, youngs_modulus_Pa=None): # type: ignore[no-untyped-def] + names = [lyr.name for lyr in cable.layers] + below = cable.layers[: names.index(layer_name)] + helical = [ + k for k, lyr in enumerate(below) if isinstance(lyr, HelicalLayer) + ] + if helical: + cable = cable.model_copy( + update={"layers": list(cable.layers[helical[-1] + 1 :])} + ) + return original(cable, layer_name, youngs_modulus_Pa=youngs_modulus_Pa) + + for module in self._modules: + module.xi_for_layer = xi_nearest # type: ignore[attr-defined] + gate_values.cache_clear() + + def __exit__(self, *exc: object) -> None: + for module in self._modules: + module.xi_for_layer = self._original # type: ignore[attr-defined] + gate_values.cache_clear() + + +def profile_convergence( + mu: float = MU_DECLARED, cases: tuple[int, ...] = (7, 14, 18) +) -> dict[int, dict[str, float]]: + """Station curvatures against solver tolerance and mesh (reported). + + ``tolerance``: largest relative change at 20 mm from the default + projected-gradient tolerance (1e-9) to 1e-13; ``mesh``: from 20 to 10 mm, + both at 1e-13. + """ + out = {} + for case in load_cases(): + if case.lc not in cases: + continue + moment, _ei_max, ei_min = backbone(case, mu) + peaks = [] + for h, tol in ((0.02, 1e-9), (0.02, 1e-13), (0.01, 1e-13)): + beam = Beam(moment, ei_min, case.tension_N, h=h) + w = None + k = np.zeros(beam.n) + for j in range(1, 13): + half = math.radians(case.angle_range_deg / 2 * j / 12) + w, k = beam.solve(half, w, tol=tol, max_iter=500) + peaks.append( + np.array([float(np.interp(x, beam.x, k)) for _n, x, _a in stations()]) + ) + out[case.lc] = { + "tolerance": float(np.max(np.abs(peaks[1] / peaks[0] - 1.0))), + "mesh": float(np.max(np.abs(peaks[2] / peaks[1] - 1.0))), + } + return out + + +def sensitivity(mu: float = MU_DECLARED) -> dict: + """Rig, stick and shear-stack sensitivities of SV11-PLANE and SV11-GJ. + + Reported in doc/benchmarks.md (SV11 decomposition); none is registered. + """ + plane = plane_stations() + base = sv11_rig() + rigs = { + "registered": base, + "gap 10 mm": replace(base, gap_m=0.010), + "bellmouth end 1.79 m": replace(base, bell_end_m=1.79), + "rotation at the end-fitting face": replace(base, x_rotation_m=base.x_anchor_m), + } + out: dict = {} + + def run(label: str, rig: Rig, variant: TermVariant | None) -> None: + res = metrics( + [ + predict_case(c, mu, only=plane, variant=variant, rig=rig) + for c in load_cases() + ] + ) + gj = gjosteen(mu, plane_only=True, variant=variant, rig=rig) + out[label] = { + "median_R": res["median_R_termination"], + "count": res["count_in_band_termination"], + "median_R_sectional": res["median_R_sectional"], + "count_sectional": res["count_in_band_sectional"], + "gj": gj["ratio_termination"], + "gj_sectional": gj["ratio_sectional"], + "R": {lc: v["R_termination"] for lc, v in res["cases"].items()}, + "R_sectional": {lc: v["R_sectional"] for lc, v in res["cases"].items()}, + } + + for label, rig in rigs.items(): + run(label, rig, None) + run("inlet curvature zero", base, TermVariant(inlet="zero")) + run("inlet held at the curved-start curvature", base, TermVariant(inlet="hold")) + run("rigid stick in the correction", base, TermVariant(stick="rigid")) + with _NearestHelixStack(): + run("shear stack to the nearest helix", base, None) + return out + + def identify_polymer_modulus() -> float: """Polymer modulus that makes EI_min equal 72.8 kN m2 ([Saevik2011] Table 1).""" from scipy.optimize import brentq # noqa: PLC0415 @@ -618,6 +950,12 @@ def main() -> None: parser.add_argument("--mu", type=float, default=MU_DECLARED) parser.add_argument("--cases", type=int, nargs="*", default=None) parser.add_argument("--tendons", choices=("round", "rectangular"), default="round") + parser.add_argument( + "--sensitivity", + action="store_true", + help="run the decomposition and the rig, stick and shear-stack " + "sensitivities of doc/benchmarks.md and write them to OUTPUT_JSON", + ) parser.add_argument( "--identify", action="store_true", @@ -626,6 +964,23 @@ def main() -> None: args = parser.parse_args() use_tendons(args.tendons) t0 = time.time() + if args.sensitivity: + out_s: dict = { + "split": split_values(args.mu), + "eq88": eq88_consistency(), + "convergence": profile_convergence(args.mu), + "sensitivity": sensitivity(args.mu), + } + out_s["seconds"] = time.time() - t0 + args.output.write_text(json.dumps(out_s, indent=1), encoding="utf-8") + print(json.dumps(out_s["split"], indent=1)) + for label, v in out_s["sensitivity"].items(): + print( + f"{label}: median R {v['median_R']:.2f} ({v['count']} of 14), " + f"sectional {v['median_R_sectional']:.2f} ({v['count_sectional']}); " + f"GJ {v['gj']:.2f} (sectional {v['gj_sectional']:.2f})" + ) + return cases = [c for c in load_cases() if args.cases is None or c.lc in args.cases] results = [] for case in cases: diff --git a/validation/scripts/run_validation.py b/validation/scripts/run_validation.py index ff4f875..2c3bdfe 100644 --- a/validation/scripts/run_validation.py +++ b/validation/scripts/run_validation.py @@ -517,6 +517,78 @@ def _saevik_rows() -> list[Row]: ] +def _saevik_split_rows() -> list[Row]: + """Where the SV11 termination increment comes from (reported, not gated). + + The registered correction (anchor at the end-fitting face, the beam's + bellmouth curvature profile) split into the end-fitting anchor alone and + the curvature profile alone; the slip demand at the smallest angles; the + consistency of the two published bellmouth end points with Eq. 88. + scripts/check_saevik2011.py (split_values, eq88_consistency). + """ + if str(ROOT) not in sys.path: + sys.path.insert(0, str(ROOT)) + import check_saevik2011 as sv # noqa: PLC0415 + + sp = sv.split_values() + ef, far, reg = sp["ef_only"], sp["no_end_fitting"], sp["registered"] + small = sp["small_angle"] + lo, hi = (small[lc] for lc in sv.SMALL_ANGLE_CASES) + outside = ", ".join( + f"LC {lc} {sp['R_sectional_outside'][lc]:.2f}" + for lc in sp["sectional_outside_band"] + ) + eq = sv.eq88_consistency() + change = max(far["largest_station_change"], far["largest_gj_change"]) + change_text = "below 1e-12" if change < 1e-12 else f"{change:.1e}" + return [ + Row( + "2", + "SV11-SPLIT", + "Sævik (2011) termination increment by origin: (a) end-fitting " + "anchor alone (the correction with uniform curvature from the " + "end-fitting face), 14 load cases (SV11-PLANE) and LC 14 at +-8 deg " + "(SV11-GJ); (b) no end fitting (armour anchored 20 m upstream of the " + "face, bellmouth curvature profile unchanged), LC 14 (SV11-PLANE) and " + "LC 14 at +-8 deg (SV11-GJ)", + "stated, not gated", + f"(a) median R {ef['median_R']:.2f} ({ef['count_in_band']} of 14 in " + f"band), GJ {ef['gj_ratio']:.2f}; (b) LC 14 R {far['R_lc14']:.2f}, GJ " + f"{far['gj_ratio']:.2f}, largest change against the registered " + f"correction {change_text}" + f"; registered {reg['median_R']:.2f} and {reg['gj_ratio']:.2f}, " + f"sectional {reg['median_R_sectional']:.2f} and " + f"{reg['gj_ratio_sectional']:.2f}", + "INFO", + ), + Row( + "2", + "SV11-REACH", + "SV11-PLANE reach of any termination correction: largest slip " + "demand a = kappa / kappa_c of the correction at 0.5 and 1 deg, and " + "the load cases whose sectional R is outside [0.70, 1.43]", + "stated, not gated", + f"a_max {lo['a_max']:.2f} and {hi['a_max']:.2f}; R corrected " + f"{lo['R']:.2f} and {hi['R']:.2f} (sectional {lo['R_sectional']:.2f} " + f"and {hi['R_sectional']:.2f}); sectional outside the band: {outside}", + "INFO", + ), + Row( + "2", + "SV11-EQ88", + "Sævik (2011) Eq. 88, kappa = 0.067 + 0.11 s, at the two published " + "bellmouth ends (Sævik 1.72 m; Gjøsteen et al. 1.79 m): radius and " + "slope", + "Sævik's text: 3.9 m and 16 deg", + f"1.72 m: {eq['1.72']['radius_m']:.2f} m, " + f"{eq['1.72']['slope_deg']:.1f} deg; 1.79 m: " + f"{eq['1.79']['radius_m']:.2f} m, {eq['1.79']['slope_deg']:.1f} deg; " + f"3.9 m at s = {eq['radius_3.9']['s_m']:.3f} m", + "INFO", + ), + ] + + def _anchored_wire_fe_rows() -> list[Row]: """Anchored wire at uniform curvature against two published FE studies. @@ -1936,6 +2008,7 @@ def _comp_row(tier: str, ident: str, quantity: str, keys: tuple[str, ...]) -> Ro rows.extend(_hu_rows()) rows.extend(_witz_rows()) rows.extend(_saevik_rows()) + rows.extend(_saevik_split_rows()) rows.extend(_anchored_wire_fe_rows()) rows.extend(_dai2018_rows()) diff --git a/validation/validation_report.md b/validation/validation_report.md index d96c4c9..208a3e2 100644 --- a/validation/validation_report.md +++ b/validation/validation_report.md @@ -62,6 +62,9 @@ Every row is computed from published data or closed-form references in this repo | 2 | WITZ-ID | Witz (1996) 300-bar loop predicted after p0 identified on the 0-bar width at kappa = 0 (mu = 0.10 declared) | width within [1692, 2489] N·m and energy within 15% of 3125 J/m | p0 1.071 MPa (YAML 1.071); 0-bar energy 1114 vs 1118 J/m; 300-bar width 1356 vs [1990, 2164] N·m (-31.8% / -37.3%), energy 2682 J/m (-14.2%) | FAIL | | 2 | SV11-PLANE | Sævik (2011) Figs 17-23, 14 load cases: normalised inner-armour axial stress range at the 8 bending-plane FBG stations, termination-corrected prediction, mu = 0.20 declared | median R in [0.85, 1.18] and >= 12 of 14 R in [0.70, 1.43] (R = mean predicted / mean measured, bending-plane stations) | median R 1.62 (0.45-3.59), 3 of 14 in band; sectional median 1.00 (0.45-2.17), 11 of 14 | FAIL | | 2 | SV11-GJ | Gjøsteen et al. (2027) Figs 27-35, LC 14 at +-8 deg: absolute axial range at stations 2.1, 2.5, 3.1, 3.5, termination-corrected, mu = 0.20 | mean ratio in [0.72, 1.38] | 1.80 (sectional 1.24); static stress 271 MPa | FAIL | +| 2 | SV11-SPLIT | Sævik (2011) termination increment by origin: (a) end-fitting anchor alone (the correction with uniform curvature from the end-fitting face), 14 load cases (SV11-PLANE) and LC 14 at +-8 deg (SV11-GJ); (b) no end fitting (armour anchored 20 m upstream of the face, bellmouth curvature profile unchanged), LC 14 (SV11-PLANE) and LC 14 at +-8 deg (SV11-GJ) | stated, not gated | (a) median R 1.01 (11 of 14 in band), GJ 1.27; (b) LC 14 R 1.70, GJ 1.80, largest change against the registered correction below 1e-12; registered 1.62 and 1.80, sectional 1.00 and 1.24 | INFO | +| 2 | SV11-REACH | SV11-PLANE reach of any termination correction: largest slip demand a = kappa / kappa_c of the correction at 0.5 and 1 deg, and the load cases whose sectional R is outside [0.70, 1.43] | stated, not gated | a_max 0.26 and 0.36; R corrected 0.45 and 0.54 (sectional 0.45 and 0.54); sectional outside the band: LC 4 2.17, LC 7 0.45, LC 8 0.54 | INFO | +| 2 | SV11-EQ88 | Sævik (2011) Eq. 88, kappa = 0.067 + 0.11 s, at the two published bellmouth ends (Sævik 1.72 m; Gjøsteen et al. 1.79 m): radius and slope | Sævik's text: 3.9 m and 16 deg | 1.72 m: 3.90 m, 15.9 deg; 1.79 m: 3.79 m, 17.0 deg; 3.9 m at s = 1.722 m | INFO | | 2 | AW-DONG25 | Dong et al. (2025) Figs 14 and 25: armour wire anchored at both ends of one pitch, pipe bent to a uniform 0.005 1/m (a = 1.87), clamp-layer solver against the source's FE: neutral-axis wire (Fig. 14) and anchor stress for theta0 = 0, 45, 90, 135, 180 deg (Fig. 25) [MPa] | stated, not gated (code-to-code) | Fig. 14 anchor 156.4 vs FE 156.9 (source theory 147.8); peak 207.8 at X/P 0.217 vs 204.5 at 0.223; Fig. 25 anchors 81.8/117.6/156.4/191.9/200.0 vs 89.3/121.2/164.8/199.1/195.0 | INFO | | 2 | AW-ZT14 | Zhu and Tan (2014) Figs 4-8: normalised anchor / peak stress of an anchored wire at a = 4.92 (from their Table 2), clamp-layer solver against the source's FE, wires starting at 45 and 90 deg; FE far field against the full-slip triangle | stated, not gated (code-to-code) | 90 deg 1.19 / 1.70 vs FE 2.22 / 2.23; 45 deg 0.05 / 1.32 vs 0.97 / 1.59; FE far field RMS distance to a cosine 0.028, to the full-slip triangle 0.154 (the FE wire is not in slip) | INFO | | 2 | DAI18-DIG | Dai et al. (2018) Fig. 4a, Test 1 (armour wire on anti-wear tape, 8/4/1 MPa), digitised: loop maximum vs printed mu_s 0.22/0.24/0.38 (p. 428) | within 0.005 (printed precision) + reading resolution | 0.2237/0.2405/0.3786 (largest deviation 0.0037 vs 0.0071) | PASS | @@ -75,7 +78,7 @@ Every row is computed from published data or closed-form references in this repo - analytical_sanity: `1190 passed` - independent_method: `77 passed` -- full_scale: `36 passed` +- full_scale: `42 passed` Run `pytest -m ` to reproduce each group. From d17ba8a94a7d385c9acc98c088f63dbe255d473d Mon Sep 17 00:00:00 2001 From: Jae Hoon Seo Date: Wed, 18 Nov 2026 14:54:28 +0900 Subject: [PATCH 2/7] validation: register the Dai et al. (2020) bellmouth rows before the run Dai, Saevik and Ye (2020) measured the curvature inside a bellmouth at two stations of a steel-tube umbilical against the rocking angle (Fig. 9) and the Coulomb friction strain ranges of two helical tubes (Tables 4-5). The measured Fig. 9 curves are digitised; the benchmark page registers, before any model output, the identification of the unknown bending stiffness on the S2 curvature at 4 deg and the two predicted contact angles (S2 at 90 % and S3 at 50 % of the bellmouth curvature, band +-1.0 deg), every assumed rig input, and the stated (not gated) Coulomb comparison. The harness is committed with the registration and has not been run. Signed-off-by: Jae Hoon Seo --- doc/benchmarks.md | 84 +++++ tests/test_dai2020.py | 57 ++++ .../paper_data/dai2020_fig9_curvature.csv | 128 +++++++ validation/scripts/check_dai2020.py | 321 ++++++++++++++++++ 4 files changed, 590 insertions(+) create mode 100644 tests/test_dai2020.py create mode 100644 validation/paper_data/dai2020_fig9_curvature.csv create mode 100644 validation/scripts/check_dai2020.py diff --git a/doc/benchmarks.md b/doc/benchmarks.md index 3aea1a0..eb841a1 100644 --- a/doc/benchmarks.md +++ b/doc/benchmarks.md @@ -1916,6 +1916,90 @@ itself from the suspects. Not tested: cyclic loading (both studies are monotonic), an interface stiffness from a source that prints it, transverse slip. +## Steel-tube umbilical in a bellmouth (DAI20-KAPPA, DAI20-COULOMB) + +Dai, Sævik and Ye, "Experimental and numerical studies on dynamic stress and +curvature in steel tube umbilicals", Marine Structures 72 (2020) 102724. A +9 m steel-tube umbilical between two end fittings, constant tension 200 kN +(the only tension with results), rocked by a tower against a bellmouth of +constant curvature 0.1 1/m and length 3 m (Fig. 1: L = 3 m, R = 10 m). Fibre +Bragg gratings on a spacer inside the centre tube and inside one large and one +small helical tube (lay angle 7°) at station S2, 0.675 m from the bellmouth +entrance, and S3, 0.352 m from the bellmouth end. It is the only measured +curvature history inside a bellmouth in the termination literature held here, +and an independent test of the rig-beam curvature that drives the SV11 +termination correction (same bellmouth topology: end fitting, entrance, +curved surface, free span). It is not an armour or end-fitting stress set: +the armour is not instrumented and the end fitting is not analysed. Harness +`validation/scripts/check_dai2020.py`, digitised Fig. 9 +`validation/paper_data/dai2020_fig9_curvature.csv` (procedure, reading +resolution and source SHA-256 in the header), tests `tests/test_dai2020.py`. +Targets and every assumed input below were registered before any model +output. + +**Inputs.** Given: tension 200 kN; bellmouth curvature 0.1 1/m over 3 m; +station positions; entrance gap "in an order of 5 mm", not measured (the +source's model uses 3 mm and finds 1–8 mm immaterial at S2 and S3); the +tensioner is free to rotate; the first umbilical element is linked rigidly to +the tower pivot (p. 7); contact line forces of the source's two 3D contact +models (Table 3); μ = 0.2 (assumed by the source); tube outer diameters, +thicknesses and radial locations (Table 1). Assumed here (not printed): the +end fitting lies 2.1 m before the entrance (the entrance read from the +Fig. 14 axis, a 0–9 m umbilical coordinate); the tower pivot is at the +entrance (Fig. 1 sketches it a little inside the bellmouth); 2.2 m of rigid +arrangement from the far end fitting to the tensioner pin (Fig. 1 sketch); +no inlet tube between the end fitting and the entrance; no gravity (the +source applies self-weight, value not printed); small slopes (the largest +angle is 17°); tube steel 207 GPa. The umbilical bending stiffness and weight +are not printed ("obtained from UFLEX"). + +**DAI20-KAPPA (registered).** The SV11 rig beam (`check_saevik2011.Beam` with +this rig: clamp at the end fitting, free inlet, entrance gap 3 mm, curved +surface `w = gap + 0.1 s²/2` to 3 m, far pin), linear elastic with one +bending stiffness `EI`, effective tension 200 kN, monotonic rocking (elastic: +path independent, the measured cycle is read as the mean of the two rocking +directions). `EI` is identified on one number: the S2 curvature at 4°, +0.03995 1/m (mean of 0.0354 and 0.0445 at −4° and +4°). Then two angles are +predicted, each against the mean of the two rocking directions in the +measurement (read by linear interpolation of the 0.5° samples of the +digitised file): + +- S2 reaches 90% of the bellmouth curvature (0.09 1/m) at 7.03° (7.44° and + 6.63°); +- S3 reaches 50% of it (0.05 1/m) at 14.57° (14.79° and 14.35°). + +Target: both predicted angles within ±1.0° of the measured ones. The band is +about twice the half-difference between the two rocking directions in the data +(0.40° and 0.22°) plus the reading resolution (0.2°). The plateau value is +geometry and is not a target. A failure is reported as found, with the +rig-assumption sensitivities (pivot, inlet, rigid length, gap) beside it; no +assumption is changed to pass. + +**DAI20-COULOMB (stated, not gated).** CableXSec's sectional friction stress +(direction-tied law, signed capstan bound) of each helical tube under a +±0.1 1/m cycle (full slip), with the source's own contact line forces, μ = +0.2, the tube sections of Table 1 and 207 GPa, against the measured "Coulomb +friction strain range" at S2, 200 (large tube) and 158 (small tube) +microstrain (Tables 4 and 5). The line forces are the source's Table 3, +radial model (49 000 and 8 000 N/m) and radial plus constrained hoop model +(55 500 and 46 900 N/m, the two hoop rows counted, as the source's "+13 %" +requires). Expected, from the source's own 2D numbers (its Eq. 14 on +Table 3: 374/70.4 and 424/414 microstrain): the same values within the +sectional law's cos α and capstan terms, i.e. +87%/−55% (radial) and ++112%/+162% (hoop) against the measurement. It documents the radial-only +sectional limit and checks that the package's full-slip law equals the +source's 2D formula with the same line loads; it is not a prediction of the +contact forces, which CableXSec cannot build for this section (Table 1 is +internally inconsistent: sheath "diameters" smaller than twice the enclosed +tube radii; 7° at the printed radii gives pitches of 2.0–2.3 m, not 1.875 m). + +**Not used.** The tube strain loops (Figs 12–13) and the "extreme axial strain +range" (text only) need the along-element friction through the growing +contact zone and the hoop contacts that the source adds; the curvature of the +helical tubes (Fig. 13, bottom; the small tube reads 22% above and 33% below +the bellmouth curvature, a sensor-offset error of that order by the source's +own account); results at 5, 100 and 300 kN (not reported). + ## Torque balance and twist under tension (gap 3.5: TQ, TQ-KL, TQ-UJ) Script `validation/scripts/check_torque_balance.py`, tests `tests/test_torque_balance.py`, rows TQ, diff --git a/tests/test_dai2020.py b/tests/test_dai2020.py new file mode 100644 index 0000000..b9f093f --- /dev/null +++ b/tests/test_dai2020.py @@ -0,0 +1,57 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2026 Jae Hoon Seo, SMI Lab, Inha University +"""Dai, Sævik and Ye (2020) umbilical in a bellmouth: data, targets, rows. + +The DAI20 targets were registered before any model output (doc/benchmarks.md, +steel-tube umbilical section); the pins below catch a later relaxation of the +targets or a silent change of the result (VALIDATION_POLICY Rules 2 and 9). +""" + +from __future__ import annotations + +import check_dai2020 as dai +import numpy as np +import pytest + +pytestmark = pytest.mark.full_scale + + +def test_digitised_figure_9_is_complete_and_on_the_bellmouth_plateau(): + fig = dai.measured_fig9() + assert len(fig["S2"]) == 67 + assert len(fig["S3"]) == 45 + s2 = fig["S2"] + plateau = s2[np.abs(s2[:, 0]) >= 10.0, 1] + # measured centre-tube curvature on the bellmouth: 0.1 1/m within reading + assert np.abs(np.abs(plateau) - dai.KAPPA_BELL).max() < 0.0025 + assert (fig["S2"][:, 2] <= fig["S2"][:, 3]).all() + + +def test_registered_targets_are_pinned(): + meas = dai.measured_targets() + assert meas["s2_kappa_at_4deg"] == pytest.approx(0.03995, abs=5e-6) + assert meas["s2_angle_90"] == pytest.approx(7.033, abs=5e-4) + assert meas["s3_angle_50"] == pytest.approx(14.574, abs=5e-4) + assert dai.ANGLE_BAND_DEG == 1.0 + assert (dai.IDENTIFY_ANGLE_DEG, dai.S2_LEVEL, dai.S3_LEVEL) == (4.0, 0.9, 0.5) + rig = dai.RIG + assert (rig.x_anchor_m, rig.free_length_m, rig.rigid_right_m) == (-2.1, 9.0, 2.2) + assert (rig.gap_m, rig.bell_end_m, rig.kappa_b0, rig.kappa_b1) == ( + 0.003, + 3.0, + 0.1, + 0.0, + ) + assert not rig.inlet_bounded and rig.x_rotation_m == 0.0 + assert pytest.approx(2.648) == dai.X_S3 + + +def test_bellmouth_surface_starts_at_the_gap_without_an_inlet_tube(): + beam = dai._elastic_beam(50e3) + inlet = beam.x < -1e-9 + assert np.isinf(beam.upper[inlet]).all() + entrance = np.isclose(beam.x, 0.0, atol=beam.h / 4) + assert beam.upper[entrance] == pytest.approx(dai.GAP_M) + s = beam.x[(beam.x > 0) & (beam.x <= 3.0)] + upper = beam.upper[(beam.x > 0) & (beam.x <= 3.0)] + assert upper == pytest.approx(dai.GAP_M + 0.05 * s**2) diff --git a/validation/paper_data/dai2020_fig9_curvature.csv b/validation/paper_data/dai2020_fig9_curvature.csv new file mode 100644 index 0000000..e3f12e3 --- /dev/null +++ b/validation/paper_data/dai2020_fig9_curvature.csv @@ -0,0 +1,128 @@ +# Dai, Saevik and Ye (2020) Marine Structures 72:102724, Fig. 9 (p. 8): resultant curvature +# of the CENTRE TUBE of a steel-tube umbilical against the rocking angle, at station S2 +# (0.675 m from the bellmouth entrance) and S3 (0.352 m from the bellmouth end), 200 kN, +# bellmouth of constant curvature 0.1 1/m (Fig. 1: L = 3 m, R = 10 m); "test measurement" +# series only (the four model curves of the figure are not digitised). +# Source PDF SHA-256: f94b473cb98f56761484225c3221ca821e0bf815c08443170caa3946c6a34f4b +# Digitised from a 400 dpi render of PDF page 8: axes calibrated on the solid axis lines +# (x -20..20 deg on the bottom axis; y 0.15..-0.15 1/m for S2 and 0.15..-0.10 1/m for S3 on +# the left axis, checked against the 0.10 and 0.00 tick labels); measured series by colour +# (blue, R < 100, G < 100, B > 140; legend excluded). Per pixel column: kappa_mid = median, +# kappa_lo / kappa_hi = extremes of the series pixels (line width and the two branches of +# the cycle). Sampled every 0.5 deg; S3 rows between -8.5 and 2.5 deg are missing where the +# measured line is hidden under the model curves (curvature there within +-0.002 1/m). +# Reading resolution about +-0.002 1/m and +-0.2 deg; NOT experimental uncertainty. +# Sign as plotted (S2 positive at negative angles). +station,angle_deg,kappa_mid,kappa_lo,kappa_hi +S2,-17.0,0.0988,0.0980,0.0996 +S2,-16.5,0.0991,0.0980,0.1002 +S2,-16.0,0.0991,0.0980,0.1002 +S2,-15.5,0.0991,0.0980,0.1002 +S2,-15.0,0.0988,0.0980,0.0996 +S2,-14.5,0.0988,0.0980,0.0996 +S2,-14.0,0.0986,0.0975,0.0996 +S2,-13.5,0.0988,0.0975,0.1002 +S2,-13.0,0.0983,0.0970,0.0996 +S2,-12.5,0.0991,0.0980,0.1002 +S2,-12.0,0.0988,0.0980,0.0996 +S2,-11.5,0.0988,0.0980,0.0996 +S2,-11.0,0.0988,0.0980,0.0996 +S2,-10.5,0.0996,0.0980,0.1012 +S2,-10.0,0.0991,0.0991,0.0991 +S2,-9.5,0.1004,0.0996,0.1012 +S2,-9.0,0.0988,0.0980,0.0996 +S2,-8.5,0.0978,0.0964,0.0991 +S2,-8.0,0.0951,0.0943,0.0959 +S2,-7.5,0.0908,0.0895,0.0921 +S2,-7.0,0.0844,0.0825,0.0863 +S2,-6.5,0.0755,0.0723,0.0788 +S2,-6.0,0.0667,0.0632,0.0702 +S2,-5.5,0.0554,0.0520,0.0589 +S2,-5.0,0.0474,0.0445,0.0520 +S2,-4.5,0.0418,0.0386,0.0450 +S2,-4.0,0.0354,0.0321,0.0386 +S2,-3.5,0.0300,0.0273,0.0327 +S2,-3.0,0.0236,0.0220,0.0262 +S2,-2.5,0.0179,0.0171,0.0187 +S2,-2.0,0.0121,0.0112,0.0129 +S2,-1.5,0.0070,0.0059,0.0080 +S2,-1.0,0.0019,0.0000,0.0043 +S2,-0.5,-0.0027,-0.0043,0.0011 +S2,0.0,-0.0070,-0.0080,-0.0059 +S2,0.5,-0.0064,-0.0091,-0.0021 +S2,1.0,-0.0075,-0.0129,-0.0048 +S2,1.5,-0.0126,-0.0161,-0.0091 +S2,2.0,-0.0182,-0.0209,-0.0145 +S2,2.5,-0.0230,-0.0257,-0.0204 +S2,3.0,-0.0295,-0.0327,-0.0263 +S2,3.5,-0.0359,-0.0396,-0.0321 +S2,4.0,-0.0445,-0.0466,-0.0423 +S2,4.5,-0.0485,-0.0493,-0.0477 +S2,5.0,-0.0589,-0.0616,-0.0562 +S2,5.5,-0.0699,-0.0723,-0.0675 +S2,6.0,-0.0804,-0.0841,-0.0766 +S2,6.5,-0.0884,-0.0916,-0.0852 +S2,7.0,-0.0946,-0.0954,-0.0938 +S2,7.5,-0.0970,-0.0980,-0.0959 +S2,8.0,-0.0983,-0.0996,-0.0970 +S2,8.5,-0.0988,-0.0991,-0.0986 +S2,9.0,-0.0991,-0.0996,-0.0986 +S2,9.5,-0.0991,-0.0996,-0.0986 +S2,10.0,-0.0991,-0.0996,-0.0986 +S2,10.5,-0.0991,-0.0996,-0.0986 +S2,11.0,-0.0991,-0.0996,-0.0986 +S2,11.5,-0.0988,-0.0991,-0.0986 +S2,12.0,-0.0991,-0.0996,-0.0986 +S2,12.5,-0.0988,-0.0991,-0.0986 +S2,13.0,-0.0991,-0.0996,-0.0986 +S2,13.5,-0.0991,-0.0996,-0.0986 +S2,14.0,-0.0991,-0.0996,-0.0986 +S2,14.5,-0.0988,-0.0991,-0.0986 +S2,15.0,-0.0994,-0.1002,-0.0986 +S2,15.5,-0.0988,-0.0991,-0.0986 +S2,16.0,-0.0996,-0.0996,-0.0996 +S3,-17.0,0.0993,0.0978,0.1009 +S3,-16.5,0.0891,0.0871,0.0911 +S3,-16.0,0.0743,0.0705,0.0781 +S3,-15.0,0.0542,0.0531,0.0554 +S3,-14.5,0.0440,0.0393,0.0473 +S3,-14.0,0.0346,0.0304,0.0388 +S3,-13.5,0.0279,0.0246,0.0312 +S3,-13.0,0.0208,0.0196,0.0232 +S3,-12.5,0.0165,0.0152,0.0179 +S3,-12.0,0.0123,0.0112,0.0134 +S3,-11.5,0.0089,0.0080,0.0098 +S3,-11.0,0.0069,0.0058,0.0080 +S3,-10.5,0.0049,0.0036,0.0063 +S3,-10.0,0.0033,0.0027,0.0040 +S3,-9.5,0.0025,0.0018,0.0031 +S3,-9.0,0.0020,0.0018,0.0022 +S3,-7.5,-0.0013,-0.0013,-0.0013 +S3,2.5,0.0009,0.0009,0.0009 +S3,3.0,0.0011,0.0009,0.0013 +S3,3.5,0.0009,0.0004,0.0013 +S3,4.0,0.0011,0.0009,0.0013 +S3,4.5,0.0009,0.0004,0.0013 +S3,5.0,0.0009,0.0004,0.0013 +S3,5.5,0.0011,0.0009,0.0013 +S3,6.0,0.0011,0.0009,0.0013 +S3,6.5,-0.0022,-0.0022,-0.0022 +S3,7.0,-0.0022,-0.0022,-0.0022 +S3,7.5,-0.0022,-0.0022,-0.0022 +S3,8.0,-0.0022,-0.0031,-0.0013 +S3,8.5,-0.0027,-0.0031,-0.0022 +S3,9.0,-0.0031,-0.0045,-0.0018 +S3,9.5,-0.0036,-0.0045,-0.0027 +S3,10.0,-0.0049,-0.0058,-0.0040 +S3,10.5,-0.0065,-0.0076,-0.0054 +S3,11.0,-0.0085,-0.0098,-0.0071 +S3,11.5,-0.0125,-0.0138,-0.0112 +S3,12.0,-0.0174,-0.0192,-0.0156 +S3,12.5,-0.0219,-0.0241,-0.0196 +S3,13.0,-0.0277,-0.0304,-0.0250 +S3,13.5,-0.0339,-0.0366,-0.0312 +S3,14.0,-0.0435,-0.0464,-0.0393 +S3,14.5,-0.0527,-0.0549,-0.0504 +S3,15.0,-0.0629,-0.0652,-0.0612 +S3,15.5,-0.0752,-0.0781,-0.0723 +S3,16.0,-0.0842,-0.0848,-0.0786 diff --git a/validation/scripts/check_dai2020.py b/validation/scripts/check_dai2020.py new file mode 100644 index 0000000..6a85e04 --- /dev/null +++ b/validation/scripts/check_dai2020.py @@ -0,0 +1,321 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2026 Jae Hoon Seo, SMI Lab, Inha University +"""Dai, Sævik and Ye (2020) steel-tube umbilical in a bellmouth (rows DAI20-*). + +The only measured curvature history inside a bellmouth that is published +with the rig geometry (Dai et al. 2020, Marine Structures 72, 102724): a 9 m +steel-tube umbilical at 200 kN, rocked against a bellmouth of constant +curvature 0.1 1/m (length 3 m), with fibre Bragg gratings inside the centre +tube and two helical tubes at station S2 (0.675 m from the bellmouth +entrance) and S3 (0.352 m from the bellmouth end). Targets and every assumed +input were registered before any model output (doc/benchmarks.md, Dai +section). + +DAI20-KAPPA (the rig beam of the SV11 harness in this bellmouth). The +umbilical's bending stiffness is not published, so it is identified on one +number, the S2 curvature at 4 deg; the angles at which S2 reaches 90 % and S3 +50 % of the bellmouth curvature are then predicted. Linear elastic beam +(effective tension 200 kN, no gravity, small slopes), clamped at the end +fitting 2.1 m before the entrance, free between the fitting and the entrance +(no inlet tube), 3 mm entrance gap, 9 m of umbilical and 2.2 m of rigid +arrangement to a pin; the tower turns the fitting and the bellmouth about the +entrance (assumed). + +DAI20-COULOMB (stated, not gated). The sectional full-slip range of a helical +tube (direction-tied law, signed capstan bound) with the source's own contact +line forces (its Table 3, radial and radial-plus-hoop models), mu = 0.2 as +assumed by the source, tube steel 207 GPa (assumed), tube sections from its +Table 1, against the measured "Coulomb friction strain range" (Tables 4-5). + +Usage:: + + python validation/scripts/check_dai2020.py [--json OUT] + +Thread counts are set to one. +""" + +from __future__ import annotations + +import argparse +import csv +import json +import math +import os +import sys +from functools import lru_cache +from pathlib import Path + +for _name in ( + "OMP_NUM_THREADS", + "MKL_NUM_THREADS", + "OPENBLAS_NUM_THREADS", + "NUMBA_NUM_THREADS", +): + os.environ.setdefault(_name, "1") + +import numpy as np # noqa: E402 +from scipy.interpolate import PchipInterpolator # noqa: E402 +from scipy.optimize import brentq # noqa: E402 + +ROOT = Path(__file__).resolve().parents[2] +DATA = ROOT / "validation" / "paper_data" +if str(Path(__file__).resolve().parent) not in sys.path: + sys.path.insert(0, str(Path(__file__).resolve().parent)) + +import check_saevik2011 as sv # noqa: E402 + +# Rig, [Dai2020] Sec. 2.1, 2.3, Figs 1, 8 and 14 ------------------------------ +TENSION_N = 200e3 # results reported at 200 kN only (p. 3) +KAPPA_BELL = 0.1 # constant bellmouth curvature (p. 3; Fig. 1 R = 10 m) +BELL_LENGTH_M = 3.0 # Fig. 1, L = 3 m +GAP_M = 0.003 # entrance gap of the source's model (p. 7: 1-8 mm immaterial) +INLET_M = 2.1 # end fitting to entrance, read from the Fig. 14 axis (assumed) +UMBILICAL_M = 9.0 # umbilical between the end fittings (Fig. 14 axis 0-9 m) +RIGID_RIGHT_M = 2.2 # adapter to the tensioner pin, Fig. 1 sketch (assumed) +X_S2 = 0.675 # from the entrance (Sec. 2.3) +X_S3 = BELL_LENGTH_M - 0.352 # 0.352 m from the bellmouth end (Sec. 2.3) + +RIG = sv.Rig( + x_anchor_m=-INLET_M, + free_length_m=UMBILICAL_M, + rigid_right_m=RIGID_RIGHT_M, + gap_m=GAP_M, + bell_end_m=BELL_LENGTH_M, + kappa_b0=KAPPA_BELL, + kappa_b1=0.0, + inlet_bounded=False, + x_rotation_m=0.0, +) + +# Registered targets (doc/benchmarks.md) -------------------------------------- +IDENTIFY_ANGLE_DEG = 4.0 +S2_LEVEL, S3_LEVEL = 0.9, 0.5 # fractions of the bellmouth curvature +ANGLE_BAND_DEG = 1.0 + +# Tubes, [Dai2020] Table 1 (outer diameter, thickness, radial location), 7 deg -- +LAY_DEG = 7.0 +MU = 0.2 # assumed by the source (p. 10) +E_STEEL_PA = 207e9 # not printed; assumed +TUBES = { + # name: (count, radial location [m], outer diameter [m], thickness [m]) + "large": (3, 0.03925, 0.0284, 0.0015), + "small": (9, 0.0445, 0.0179, 0.0026), +} +# Contact line forces [N/m], [Dai2020] Table 3: radial model (tube-inner core, +# tube-mid sheath) and radial plus constrained hoop model (the two hoop rows +# counted, as the source's "+13 %" for the large tube requires). +LINE_FORCE_N_M = { + "radial": {"large": 27000.0 + 22000.0, "small": 6000.0 + 2000.0}, + "hoop": { + "large": 4500.0 + 11000.0 + 20000.0 + 20000.0, + "small": 550.0 + 6350.0 + 20000.0 + 20000.0, + }, +} +MEASURED_MICROSTRAIN = {"large": 200.0, "small": 158.0} # Tables 4 and 5 +SOURCE_2D_MICROSTRAIN = { # Table 4 (the source's Eq. 14 on Table 3) + "radial": {"large": 374.0, "small": 70.4}, + "hoop": {"large": 424.0, "small": 414.0}, +} + + +def measured_fig9() -> dict[str, np.ndarray]: + """Digitised Fig. 9: per station, rows (angle, kappa_mid, lo, hi).""" + lines = [ + ln + for ln in (DATA / "dai2020_fig9_curvature.csv") + .read_text(encoding="utf-8") + .splitlines() + if ln and not ln.startswith("#") + ] + out: dict[str, list[list[float]]] = {"S2": [], "S3": []} + for r in csv.DictReader(lines): + out[r["station"]].append( + [ + float(r["angle_deg"]), + float(r["kappa_mid"]), + float(r["kappa_lo"]), + float(r["kappa_hi"]), + ] + ) + return {k: np.array(v) for k, v in out.items()} + + +def _crossing(angle: np.ndarray, value: np.ndarray, level: float) -> float: + """First angle (increasing) at which ``value`` reaches ``level``.""" + above = np.nonzero(value >= level)[0] + if above.size == 0 or above[0] == 0: + return math.nan + i = int(above[0]) + return float( + angle[i - 1] + + (level - value[i - 1]) * (angle[i] - angle[i - 1]) / (value[i] - value[i - 1]) + ) + + +def measured_targets() -> dict[str, float]: + """Measured observables, each the mean of the two rocking directions.""" + fig = measured_fig9() + s2, s3 = fig["S2"], fig["S3"] + + def sides(rows: np.ndarray, sign: int) -> tuple[np.ndarray, np.ndarray]: + # S2 and S3 curvature is positive at negative angles (as plotted) + keep = rows[:, 0] * sign > 0 + a = np.abs(rows[keep, 0]) + k = -sign * rows[keep, 1] + order = np.argsort(a) + return a[order], k[order] + + k4 = [float(np.interp(IDENTIFY_ANGLE_DEG, *sides(s2, s))) for s in (-1, 1)] + a2 = [_crossing(*sides(s2, s), S2_LEVEL * KAPPA_BELL) for s in (-1, 1)] + a3 = [_crossing(*sides(s3, s), S3_LEVEL * KAPPA_BELL) for s in (-1, 1)] + return { + "s2_kappa_at_4deg": float(np.mean(k4)), + "s2_kappa_at_4deg_sides": k4, # type: ignore[dict-item] + "s2_angle_90": float(np.mean(a2)), + "s2_angle_90_sides": a2, # type: ignore[dict-item] + "s3_angle_50": float(np.mean(a3)), + "s3_angle_50_sides": a3, # type: ignore[dict-item] + } + + +def _elastic_beam(ei: float, h: float = 0.02) -> sv.Beam: + k = np.linspace(0.0, 1.0, 5) + return sv.Beam(PchipInterpolator(k, ei * k), ei, TENSION_N, h=h, rig=RIG) + + +def station_curvature( + ei: float, angles_deg: np.ndarray, h: float = 0.02 +) -> tuple[np.ndarray, np.ndarray, float]: + """|kappa| at S2 and S3 along a monotonic rocking sweep (elastic: path free).""" + beam = _elastic_beam(ei, h) + w = None + s2, s3 = [], [] + residual = 0.0 + previous = 0.0 + for a in angles_deg: + steps = max(1, int(math.ceil(abs(a - previous) / 0.25))) + for j in range(1, steps + 1): + w, k = beam.solve(math.radians(previous + (a - previous) * j / steps), w) + previous = float(a) + residual = max(residual, beam.residual) + s2.append(abs(float(np.interp(X_S2, beam.x, k)))) + s3.append(abs(float(np.interp(X_S3, beam.x, k)))) + return np.array(s2), np.array(s3), residual + + +@lru_cache(maxsize=1) +def kappa_check(h: float = 0.02) -> dict: + """DAI20-KAPPA: identify EI on S2 at 4 deg, predict the two contact angles.""" + meas = measured_targets() + + def miss(log_ei: float) -> float: + s2, _s3, _r = station_curvature(10.0**log_ei, np.array([IDENTIFY_ANGLE_DEG]), h) + return float(s2[0]) - meas["s2_kappa_at_4deg"] + + log_ei = brentq(miss, 3.0, 7.0, xtol=1e-4) + ei = 10.0**log_ei + angles = np.arange(0.25, 20.0 + 1e-9, 0.25) + s2, s3, residual = station_curvature(ei, angles, h) + a2 = _crossing(angles, s2, S2_LEVEL * KAPPA_BELL) + a3 = _crossing(angles, s3, S3_LEVEL * KAPPA_BELL) + err2 = a2 - meas["s2_angle_90"] + err3 = a3 - meas["s3_angle_50"] + return { + "EI_Nm2": ei, + "measured": meas, + "s2_angle_90": a2, + "s3_angle_50": a3, + "error_s2_deg": err2, + "error_s3_deg": err3, + "beam_residual": residual, + "gate": bool(abs(err2) <= ANGLE_BAND_DEG and abs(err3) <= ANGLE_BAND_DEG), + "curve": { + "angle_deg": angles.tolist(), + "S2": s2.tolist(), + "S3": s3.tolist(), + }, + } + + +def coulomb_check() -> dict: + """DAI20-COULOMB: sectional full-slip range of each tube [microstrain].""" + from cablexsec.analysis.fatigue import ( # noqa: PLC0415 + FatigueLayer, + wire_stress_field, + ) + from cablexsec.materials.sn_curves import SN_CURVES # noqa: PLC0415 + from cablexsec.mechanics.mkappa import HelicalLayerSpec # noqa: PLC0415 + + alpha = math.radians(LAY_DEG) + kappa = np.concatenate( + [ + np.linspace(0.0, KAPPA_BELL, 61), + np.linspace(KAPPA_BELL, -KAPPA_BELL, 121)[1:], + np.linspace(-KAPPA_BELL, KAPPA_BELL, 121)[1:], + np.linspace(KAPPA_BELL, -KAPPA_BELL, 121)[1:], + ] + ) + last = slice(kappa.size - 241, kappa.size) + out: dict = {} + for model, forces in LINE_FORCE_N_M.items(): + out[model] = {} + for tube, (count, radius, od, t) in TUBES.items(): + area = math.pi * (od - t) * t + width = 2.0 * math.pi * radius / count + # line load per unit tube length q = P (2 pi r / n) cos(alpha) + pressure = forces[tube] / (width * math.cos(alpha)) + spec = HelicalLayerSpec( + n_wires=count, + r_helix_m=radius, + lay_angle_rad=alpha, + E_wire_Pa=E_STEEL_PA, + A_wire_m2=area, + xi=1.0, + mu=MU, + F_n_axi_N=0.0, + contact_pressure_Pa=pressure, + ) + layer = FatigueLayer( + spec=spec, + sn_bulk=SN_CURVES["saevik_2011_flat_steel"], + sigma_UTS_Pa=1.0e9, + name=f"{tube}_tubes", + ) + field = wire_stress_field(layer, kappa, np.zeros_like(kappa)) + stress_range = float(np.max(np.ptp(field.mean_Pa[:, last], axis=1))) + strain = stress_range / E_STEEL_PA * 1e6 + out[model][tube] = { + "microstrain": strain, + "vs_measured": strain / MEASURED_MICROSTRAIN[tube] - 1.0, + "vs_source_2d": strain / SOURCE_2D_MICROSTRAIN[model][tube] - 1.0, + } + return out + + +def main() -> None: + parser = argparse.ArgumentParser(description=__doc__.splitlines()[0]) + parser.add_argument("--json", type=Path, default=None) + args = parser.parse_args() + kap = kappa_check() + cou = coulomb_check() + print( + f"DAI20-KAPPA EI {kap['EI_Nm2'] / 1e3:.1f} kN m2; S2 90 %: " + f"{kap['s2_angle_90']:.2f} vs {kap['measured']['s2_angle_90']:.2f} deg; " + f"S3 50 %: {kap['s3_angle_50']:.2f} vs {kap['measured']['s3_angle_50']:.2f} " + f"deg; gate {kap['gate']}; residual {kap['beam_residual']:.1e}" + ) + for model, tubes in cou.items(): + for tube, v in tubes.items(): + print( + f"DAI20-COULOMB {model} {tube}: {v['microstrain']:.1f} microstrain, " + f"{100 * v['vs_measured']:+.1f} % vs measured, " + f"{100 * v['vs_source_2d']:+.1f} % vs source 2D" + ) + if args.json is not None: + args.json.write_text( + json.dumps({"kappa": kap, "coulomb": cou}, indent=1), encoding="utf-8" + ) + + +if __name__ == "__main__": + main() From 1e35a845a74daa563a948885aaefde61bb01e01a Mon Sep 17 00:00:00 2001 From: Jae Hoon Seo Date: Wed, 18 Nov 2026 15:05:21 +0900 Subject: [PATCH 3/7] validation: Dai et al. (2020) bellmouth curvature and tube Coulomb rows DAI20-KAPPA as registered: the SV11 rig beam in the measured bellmouth, bending stiffness identified on the S2 curvature at 4 deg (59.1 kN m2), predicts the S2 and S3 contact angles 0.87 and 0.89 deg early (band +-1.0, PASS). The beam solves to a projected gradient of 1e-13: the harness default 1e-9 leaves the curvature unconverged on finer meshes, and with the tight tolerance the result is mesh-converged (10, 5, 2.5 mm within 0.05 deg). Rig-assumption sensitivities are reported beside the row. DAI20-COULOMB (stated): the sectional full-slip tube range with the source's line forces equals the source's 2D values within 1.1 % and misses the measurement by +89 / -55 % (radial) and +114 / +163 % (radial plus hoop). Signed-off-by: Jae Hoon Seo --- CHANGELOG.md | 10 +++ VALIDATION.md | 7 ++ doc/benchmarks.md | 57 +++++++++++++++ tests/test_dai2020.py | 52 ++++++++++++++ validation/scripts/check_dai2020.py | 102 ++++++++++++++++++++++++--- validation/scripts/run_validation.py | 68 ++++++++++++++++++ 6 files changed, 285 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a0c1aa..f4bc965 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,16 @@ All notable changes to CableXSec are recorded in this file. The format follows sectional ratios reach the band. No registered row, input or default is changed; the SV11 harness beam takes its rig as a `Rig` value (the registered rig by default). +- Validation rows DAI20-KAPPA and DAI20-COULOMB (Dai, Sævik and Ye 2020, steel-tube umbilical + in a bellmouth; targets registered before the run). The SV11 rig beam in the measured + bellmouth (0.1 1/m, 3 m, 200 kN), bending stiffness identified on the S2 curvature at 4° + (59.1 kN m²), predicts the angles at which the contact front reaches S2 and S3 0.87° and + 0.89° early (band ±1.0°, PASS; mesh-converged; the rig pivot, inlet and rigid lengths are + declared assumptions with their sensitivities on the benchmark page). The sectional + full-slip range of the helical tubes with the source's contact line forces reproduces the + source's 2D values within 1.1 % and misses the measured Coulomb ranges by +89 / −55 % + (radial) and +114 / +163 % (radial plus hoop): the documented radial-only limit. + - Scorecard rows AW-DONG25 and AW-ZT14 (code-to-code, stated, not gated): the anchored-wire clamp solver against the published FE of Dong et al. (2025) (anchor 156.4 against 156.9 MPa, peak 207.8 against 204.5 MPa) and Zhu and Tan (2014) (1.19 / 1.70 against 2.22, an FE whose diff --git a/VALIDATION.md b/VALIDATION.md index 0643e18..ff62173 100644 --- a/VALIDATION.md +++ b/VALIDATION.md @@ -72,6 +72,8 @@ afterwards: a comparison that misses its target is reported as failed. | **SV11-REACH** | Small-angle slip demand and the cases outside the band whatever the correction does | Sævik (2011) | a_max below 1 at 0.5° and 1°; sectional outside: LC 4, 7, 8 | stated, not gated | Info | | **AW-DONG25** | Armour wire anchored at both ends of one pitch at uniform curvature: stress at the anchor and peak, code-to-code | Dong et al. (2025), FE, Figs 14 and 25 | anchor 156.4 vs 156.9 MPa (source theory 147.8); peak 207.8 vs 204.5 MPa | stated, not gated | Info | | **AW-ZT14** | Same at a = 4.92: normalised anchor and peak stress, code-to-code | Zhu and Tan (2014), FE, Figs 4–8 | 1.19 / 1.70 vs 2.22 (the FE far field is not in slip) | stated, not gated | Info | +| **DAI20-KAPPA** | Curvature at two stations inside a bellmouth against the rocking angle, steel-tube umbilical at 200 kN: contact angles predicted after identifying the bending stiffness on one curvature value | Dai, Sævik and Ye (2020), Fig. 9 | −0.87° (S2), −0.89° (S3); 59.1 kN m² identified | both within ±1.0° | Pass | +| **DAI20-COULOMB** | Sectional full-slip friction strain range of two helical steel tubes with the source's contact line forces | Dai, Sævik and Ye (2020), Tables 3–5 | radial +89 / −55 %; radial plus hoop +114 / +163 % | stated, not gated | Info | | **DAI18-DIG** | Digitised friction loops of armour wire on anti-wear tape, Test 1: loop maximum against the printed static coefficient | Dai, Sævik and Ye (2018), Fig. 4a, p. 428 | 0.2237 / 0.2405 / 0.3786 vs 0.22 / 0.24 / 0.38 | within 0.005 + 0.0021 | Pass | | **DAI18-RS** | Re-stick peak at every reversal, seven loops; spring-slider with `stick_time_s = 0` against the default `inf` | Dai, Sævik and Ye (2018), Figs 4a, 4c | measured 14 of 14 strokes; `0`: 14 of 14; `inf`: 0 of 14 | all; all; none | Pass | | **DAI18-T1** | Test 1 loops (8, 4, 1 MPa) against the spring-slider with the printed coefficients | Dai, Sævik and Ye (2018), Fig. 4a | peak −1.8 to +1.0 %; level −3.3 to +12.3 %; work −1.9 to −2.6 %; no gradual decay after the peak | stated, not gated | Info | @@ -104,6 +106,11 @@ quantities are those of the passing rows. In particular: the correction; the excess comes from the curvature gradients at the bellmouth contact on a one-way curvature field (SV11-SPLIT), and SV11-PLANE cannot pass through any termination correction because its small-angle cases stick (SV11-REACH). +- The rig-beam curvature that drives a bellmouth calculation is checked against the one + published curvature history inside a bellmouth (DAI20-KAPPA: contact angles within 1° with + one identified stiffness, under declared rig assumptions); the sectional Coulomb range of + helical umbilical tubes with radial contact forces is off by +89 / −55 % (DAI20-COULOMB), + the source's own two-dimensional result, because hoop contacts are not modelled. - The static/dynamic friction law is compared with measured friction loops of armour wire on anti-wear tape on one spring-slider, not on a cable section (DAI18 rows): the loops re-stick at every reversal (`stick_time_s = 0`), the dynamic level is rate independent at 0.01–0.2 Hz, diff --git a/doc/benchmarks.md b/doc/benchmarks.md index eb841a1..e0409ba 100644 --- a/doc/benchmarks.md +++ b/doc/benchmarks.md @@ -2000,6 +2000,63 @@ helical tubes (Fig. 13, bottom; the small tube reads 22% above and 33% below the bellmouth curvature, a sensor-offset error of that order by the source's own account); results at 5, 100 and 300 kN (not reported). +**Results.** + +| ID | Class | Quantity | Target | Result | Status | +| --- | --- | --- | --- | --- | --- | +| DAI20-KAPPA | M | S2 at 90 % and S3 at 50 % of the bellmouth curvature, rig beam with `EI` identified on S2 at 4° | both within ±1.0° of 7.03° and 14.57° | `EI` 59.1 kN m²; S2 6.16° (−0.87°), S3 13.69° (−0.89°) | PASS | +| — | I | same on 10, 5 and 2.5 mm beam meshes (20 mm registered) | reported | −0.89/−0.89°, −0.91/−0.90°, −0.91/−0.90° | converged | +| DAI20-COULOMB | M | sectional full-slip range, large / small tube, source's line forces | stated, not gated (200 / 158 microstrain) | radial 378 / 71 (+89 / −55 %); radial plus hoop 428 / 416 (+114 / +163 %) | INFO | +| — | I | same against the source's own 2D values (Table 4) | reported | within 1.1 % (378 / 71 / 428 / 416 against 374 / 70.4 / 424 / 414) | reproduced | + +Beam against the measurement (|κ| [1/m], measured −/+ side): S2 at 2°, 3°, +4°, 5°, 6°: 0.014, 0.025, 0.040, 0.059, 0.085 against 0.012/0.018, +0.024/0.030, 0.035/0.045, 0.047/0.059, 0.067/0.080; S3 at 14° and 15°: 0.058 +and 0.092 against 0.035/0.044 and 0.054/0.063. + +- *The rig beam carries the bellmouth curvature field within about 1°.* With + one stiffness identified at one point, the angle at which the contact front + reaches each station is predicted to −0.9° at both stations, 0.7 m and + 2.6 m into the bellmouth. The identified 59 kN m² is a plausible slipped + stiffness for a 9 m steel-tube umbilical; it is not a measured value. The + beam enters contact about 0.9° early at both stations, and its approach to + the plateau is steeper than the measured one (S3 at 15°: 0.092 against + 0.059); the source's own global model (its Fig. 9) also reaches the plateau + before the measurement. A linear elastic beam has no stick-slip hysteresis, + which would delay the approach on the loading branch. +- *Dependence on the assumed rig* (reported, `check_dai2020.kappa_sensitivity`, + S2/S3 error): registered −0.87/−0.89°; gap 1 mm −0.83/−0.89°, 8 mm + −1.05/−0.90°; inlet 1.6 m −0.89/−0.76°, 2.6 m −0.95/−1.05°; no rigid + arrangement −0.77/−1.69°, 3.9 m −0.93/−0.51°; pivot at the end fitting + +0.04/−3.14° (`EI` 287 kN m²); pivot at S2: no stiffness between 1 and + 10 000 kN m² gives the measured S2 curvature at 4°. The pass holds for the + entrance gap and inlet lengths near the declared ones and not for every + conceivable rig; the pivot position, which the source sketches but does not + dimension, is the largest unknown. Gate status unchanged by these + sensitivities. +- *Solver tolerance.* The SV11 harness solves to a projected gradient of + 1e-9 relative to the initial gradient. On meshes finer than 20 mm this + leaves the curvature unconverged by up to 5 % (EI/h⁴ inflates the initial + gradient; one 2.5 mm solve stopped on a spurious contact state); the Dai + harness solves to 1e-13, which converges the curvature to the mesh (S2 at + 4° within 0.5 % from 20 to 2.5 mm). For the registered SV11 rows (20 mm) + the tolerance matters little; see the SV11 section. +- *Coulomb ranges: the documented radial-only limit.* With the source's + radial line forces the sectional range is 1.89 times the measured one for + the large tube and 0.45 times for the small tube; with the hoop forces both + are too large (2.1 and 2.6 times). The package's full-slip law and the + source's Eq. 14 agree to 1 % on the same inputs, so the gap is in the + contact forces and in the two-dimensional assumption, which the source + closes only with its 3D hoop-contact model (Table 5: 215 / 151 + microstrain). CableXSec has no hoop contact between helical tubes and + fillers; this row documents that limit, it does not test a prediction. +- *Relevance to the termination route.* The same rig beam supplies the SV11 + curvature profile. In the one bellmouth where the curvature was measured it + is right to about 1° of rocking angle with a stiffness that fits one + measured point, so the profile itself is a credible input; the SV11 + over-prediction comes from what the one-way anchored chain does with it + (SV11-SPLIT), not from the profile. + ## Torque balance and twist under tension (gap 3.5: TQ, TQ-KL, TQ-UJ) Script `validation/scripts/check_torque_balance.py`, tests `tests/test_torque_balance.py`, rows TQ, diff --git a/tests/test_dai2020.py b/tests/test_dai2020.py index b9f093f..99c0820 100644 --- a/tests/test_dai2020.py +++ b/tests/test_dai2020.py @@ -9,9 +9,12 @@ from __future__ import annotations +import math + import check_dai2020 as dai import numpy as np import pytest +import run_validation pytestmark = pytest.mark.full_scale @@ -55,3 +58,52 @@ def test_bellmouth_surface_starts_at_the_gap_without_an_inlet_tube(): s = beam.x[(beam.x > 0) & (beam.x <= 3.0)] upper = beam.upper[(beam.x > 0) & (beam.x <= 3.0)] assert upper == pytest.approx(dai.GAP_M + 0.05 * s**2) + + +def test_coulomb_range_is_the_source_2d_formula(): + # The sectional full-slip range equals the source's Eq. 14 with the same + # line loads, apart from the wire-axis projection cos(alpha) and the + # third-order capstan term of the signed bound. + cou = dai.coulomb_check() + alpha = math.radians(dai.LAY_DEG) + for model, forces in dai.LINE_FORCE_N_M.items(): + for tube, (_n, radius, od, t) in dai.TUBES.items(): + area = math.pi * (od - t) * t + eq14 = ( + math.pi + * radius + * dai.MU + * forces[tube] + / (dai.E_STEEL_PA * area * math.sin(alpha)) + ) + got = cou[model][tube]["microstrain"] * 1e-6 + assert got == pytest.approx(eq14, rel=2e-3) + + +def test_beam_curvature_is_mesh_converged(): + # with the tight solve tolerance the identified stiffness and the two + # predicted angles move by less than 0.05 deg from 20 to 2.5 mm + reg = dai.kappa_check() + for v in dai.mesh_study().values(): + assert abs(v["error_s2_deg"] - reg["error_s2_deg"]) < 0.05 + assert abs(v["error_s3_deg"] - reg["error_s3_deg"]) < 0.05 + assert v["EI_Nm2"] == pytest.approx(reg["EI_Nm2"], rel=0.05) + + +def test_registered_rows_are_pinned(): + rows = {r.ident: r for r in run_validation._dai2020_rows()} + kap = rows["DAI20-KAPPA"] + assert kap.target == "both within +-1.0 deg of the measured 7.03 and 14.57 deg" + assert kap.value == ( + "EI 59.1 kN m2; S2 6.16 deg (-0.87), S3 13.69 deg (-0.89); finer beam " + "meshes S2/S3 error 10 mm -0.89/-0.89; 5 mm -0.91/-0.90; 2.5 mm " + "-0.91/-0.90 deg" + ) + assert kap.status == "PASS" + cou = rows["DAI20-COULOMB"] + assert cou.target == "stated, not gated (measured 200 / 158 microstrain)" + assert cou.value == ( + "radial 378 / 71 (+89 / -55 %); radial plus hoop 428 / 416 " + "(+114 / +163 %); the source's 2D values reproduced within 1.1 %" + ) + assert cou.status == "INFO" diff --git a/validation/scripts/check_dai2020.py b/validation/scripts/check_dai2020.py index 6a85e04..bfd8688 100644 --- a/validation/scripts/check_dai2020.py +++ b/validation/scripts/check_dai2020.py @@ -42,6 +42,7 @@ import math import os import sys +from dataclasses import replace from functools import lru_cache from pathlib import Path @@ -74,6 +75,12 @@ RIGID_RIGHT_M = 2.2 # adapter to the tensioner pin, Fig. 1 sketch (assumed) X_S2 = 0.675 # from the entrance (Sec. 2.3) X_S3 = BELL_LENGTH_M - 0.352 # 0.352 m from the bellmouth end (Sec. 2.3) +# Projected-gradient tolerance of the beam solves, relative to the initial +# gradient. The harness default (1e-9) leaves the curvature unconverged by up +# to 5 % on meshes finer than 20 mm (EI/h^4 grows the initial gradient); 1e-13 +# converges it to the mesh (S2 at 4 deg: 0.03986, 0.03972, 0.03965 and +# 0.03968 1/m on 20, 10, 5 and 2.5 mm at EI = 60 kN m2). +SOLVE_TOL = 1e-13 RIG = sv.Rig( x_anchor_m=-INLET_M, @@ -178,16 +185,16 @@ def sides(rows: np.ndarray, sign: int) -> tuple[np.ndarray, np.ndarray]: } -def _elastic_beam(ei: float, h: float = 0.02) -> sv.Beam: +def _elastic_beam(ei: float, h: float = 0.02, rig: sv.Rig = RIG) -> sv.Beam: k = np.linspace(0.0, 1.0, 5) - return sv.Beam(PchipInterpolator(k, ei * k), ei, TENSION_N, h=h, rig=RIG) + return sv.Beam(PchipInterpolator(k, ei * k), ei, TENSION_N, h=h, rig=rig) def station_curvature( - ei: float, angles_deg: np.ndarray, h: float = 0.02 + ei: float, angles_deg: np.ndarray, h: float = 0.02, rig: sv.Rig = RIG ) -> tuple[np.ndarray, np.ndarray, float]: """|kappa| at S2 and S3 along a monotonic rocking sweep (elastic: path free).""" - beam = _elastic_beam(ei, h) + beam = _elastic_beam(ei, h, rig) w = None s2, s3 = [], [] residual = 0.0 @@ -195,7 +202,12 @@ def station_curvature( for a in angles_deg: steps = max(1, int(math.ceil(abs(a - previous) / 0.25))) for j in range(1, steps + 1): - w, k = beam.solve(math.radians(previous + (a - previous) * j / steps), w) + w, k = beam.solve( + math.radians(previous + (a - previous) * j / steps), + w, + tol=SOLVE_TOL, + max_iter=500, + ) previous = float(a) residual = max(residual, beam.residual) s2.append(abs(float(np.interp(X_S2, beam.x, k)))) @@ -203,19 +215,39 @@ def station_curvature( return np.array(s2), np.array(s3), residual -@lru_cache(maxsize=1) -def kappa_check(h: float = 0.02) -> dict: - """DAI20-KAPPA: identify EI on S2 at 4 deg, predict the two contact angles.""" +@lru_cache(maxsize=16) +def kappa_check(h: float = 0.02, rig: sv.Rig = RIG) -> dict: + """DAI20-KAPPA: identify EI on S2 at 4 deg, predict the two contact angles. + + ``h`` and ``rig`` other than the defaults are the sensitivities of + :func:`kappa_sensitivity`; the registered row uses the defaults. + """ meas = measured_targets() def miss(log_ei: float) -> float: - s2, _s3, _r = station_curvature(10.0**log_ei, np.array([IDENTIFY_ANGLE_DEG]), h) + s2, _s3, _r = station_curvature( + 10.0**log_ei, np.array([IDENTIFY_ANGLE_DEG]), h, rig + ) return float(s2[0]) - meas["s2_kappa_at_4deg"] + if miss(3.0) * miss(7.0) > 0: + # no stiffness in 1-10 000 kN m2 gives the S2 curvature at 4 deg + nan = math.nan + return { + "EI_Nm2": nan, + "measured": meas, + "s2_angle_90": nan, + "s3_angle_50": nan, + "error_s2_deg": nan, + "error_s3_deg": nan, + "beam_residual": nan, + "gate": False, + "curve": {}, + } log_ei = brentq(miss, 3.0, 7.0, xtol=1e-4) ei = 10.0**log_ei angles = np.arange(0.25, 20.0 + 1e-9, 0.25) - s2, s3, residual = station_curvature(ei, angles, h) + s2, s3, residual = station_curvature(ei, angles, h, rig) a2 = _crossing(angles, s2, S2_LEVEL * KAPPA_BELL) a3 = _crossing(angles, s3, S3_LEVEL * KAPPA_BELL) err2 = a2 - meas["s2_angle_90"] @@ -237,6 +269,47 @@ def miss(log_ei: float) -> float: } +MESH_STUDY_M = (0.01, 0.005, 0.0025) + + +def mesh_study() -> dict[float, dict[str, float]]: + """DAI20-KAPPA on finer beam meshes (reported beside the registered row).""" + out = {} + for h in MESH_STUDY_M: + r = kappa_check(h) + out[h] = { + "EI_Nm2": r["EI_Nm2"], + "error_s2_deg": r["error_s2_deg"], + "error_s3_deg": r["error_s3_deg"], + } + return out + + +def kappa_sensitivity() -> dict[str, dict[str, float]]: + """Rig-assumption and mesh sensitivities of DAI20-KAPPA (reported only).""" + variants = { + "registered": (0.02, RIG), + "mesh 10 mm": (0.01, RIG), + "pivot at S2": (0.02, replace(RIG, x_rotation_m=X_S2)), + "pivot at the end fitting": (0.02, replace(RIG, x_rotation_m=-INLET_M)), + "no rigid arrangement": (0.02, replace(RIG, rigid_right_m=0.0)), + "rigid arrangement 3.9 m": (0.02, replace(RIG, rigid_right_m=3.9)), + "gap 1 mm": (0.02, replace(RIG, gap_m=0.001)), + "gap 8 mm": (0.02, replace(RIG, gap_m=0.008)), + "inlet 1.6 m": (0.02, replace(RIG, x_anchor_m=-1.6)), + "inlet 2.6 m": (0.02, replace(RIG, x_anchor_m=-2.6)), + } + out = {} + for label, (h, rig) in variants.items(): + r = kappa_check(h, rig) + out[label] = { + "EI_Nm2": r["EI_Nm2"], + "error_s2_deg": r["error_s2_deg"], + "error_s3_deg": r["error_s3_deg"], + } + return out + + def coulomb_check() -> dict: """DAI20-COULOMB: sectional full-slip range of each tube [microstrain].""" from cablexsec.analysis.fatigue import ( # noqa: PLC0415 @@ -298,6 +371,12 @@ def main() -> None: args = parser.parse_args() kap = kappa_check() cou = coulomb_check() + sens = kappa_sensitivity() + for label, v in sens.items(): + print( + f"DAI20-KAPPA {label}: EI {v['EI_Nm2'] / 1e3:.1f} kN m2, S2 " + f"{v['error_s2_deg']:+.2f} deg, S3 {v['error_s3_deg']:+.2f} deg" + ) print( f"DAI20-KAPPA EI {kap['EI_Nm2'] / 1e3:.1f} kN m2; S2 90 %: " f"{kap['s2_angle_90']:.2f} vs {kap['measured']['s2_angle_90']:.2f} deg; " @@ -313,7 +392,8 @@ def main() -> None: ) if args.json is not None: args.json.write_text( - json.dumps({"kappa": kap, "coulomb": cou}, indent=1), encoding="utf-8" + json.dumps({"kappa": kap, "coulomb": cou, "sensitivity": sens}, indent=1), + encoding="utf-8", ) diff --git a/validation/scripts/run_validation.py b/validation/scripts/run_validation.py index 2c3bdfe..40ebb68 100644 --- a/validation/scripts/run_validation.py +++ b/validation/scripts/run_validation.py @@ -648,6 +648,72 @@ def _anchored_wire_fe_rows() -> list[Row]: ] +def _dai2020_rows() -> list[Row]: + """Steel-tube umbilical in a bellmouth, Dai, Sævik and Ye (2020). + + DAI20-KAPPA (registered): the SV11 rig beam in the measured bellmouth, + bending stiffness identified on one curvature value, two contact angles + predicted; the finer-mesh results beside it. DAI20-COULOMB (stated): the + sectional full-slip tube range with the source's contact line forces. + scripts/check_dai2020.py. + """ + if str(ROOT) not in sys.path: + sys.path.insert(0, str(ROOT)) + import check_dai2020 as dai # noqa: PLC0415 + + k = dai.kappa_check() + m = k["measured"] + mesh = dai.mesh_study() + mesh_text = "; ".join( + f"{1000 * h:g} mm {v['error_s2_deg']:+.2f}/{v['error_s3_deg']:+.2f}" + for h, v in mesh.items() + ) + c = dai.coulomb_check() + meas = dai.MEASURED_MICROSTRAIN + worst_2d = max( + abs(v["vs_source_2d"]) for tubes in c.values() for v in tubes.values() + ) + + def pair(model: str) -> str: + lg, sm = c[model]["large"], c[model]["small"] + return ( + f"{lg['microstrain']:.0f} / {sm['microstrain']:.0f} " + f"({100 * lg['vs_measured']:+.0f} / {100 * sm['vs_measured']:+.0f} %)" + ) + + return [ + Row( + "2", + "DAI20-KAPPA", + "Dai et al. (2020) Fig. 9: centre-tube curvature in a bellmouth " + "(0.1 1/m, 3 m, 200 kN) at S2 and S3, rig beam with the bending " + "stiffness identified on the S2 curvature at 4 deg " + f"({m['s2_kappa_at_4deg']:.5f} 1/m): angle where S2 reaches 90 % and " + "S3 50 % of the bellmouth curvature", + f"both within +-{dai.ANGLE_BAND_DEG:.1f} deg of the measured " + f"{m['s2_angle_90']:.2f} and {m['s3_angle_50']:.2f} deg", + f"EI {k['EI_Nm2'] / 1e3:.1f} kN m2; S2 {k['s2_angle_90']:.2f} deg " + f"({k['error_s2_deg']:+.2f}), S3 {k['s3_angle_50']:.2f} deg " + f"({k['error_s3_deg']:+.2f}); finer beam meshes S2/S3 error " + f"{mesh_text} deg", + "PASS" if k["gate"] else "FAIL", + ), + Row( + "2", + "DAI20-COULOMB", + "Dai et al. (2020) Tables 3-5: sectional full-slip friction strain " + "range of the large / small helical steel tube at S2 with the " + "source's contact line forces (radial; radial plus hoop), mu = 0.2 " + "as assumed by the source", + f"stated, not gated (measured {meas['large']:.0f} / " + f"{meas['small']:.0f} microstrain)", + f"radial {pair('radial')}; radial plus hoop {pair('hoop')}; the " + f"source's 2D values reproduced within {100 * worst_2d:.1f} %", + "INFO", + ), + ] + + def _dai2018_rows() -> list[Row]: """Static/dynamic friction law against the measured wire-on-tape loops of Dai, Sævik and Ye (2018), Fig. 4; scripts/check_dai2018_friction.py. @@ -2010,6 +2076,7 @@ def _comp_row(tier: str, ident: str, quantity: str, keys: tuple[str, ...]) -> Ro rows.extend(_saevik_rows()) rows.extend(_saevik_split_rows()) rows.extend(_anchored_wire_fe_rows()) + rows.extend(_dai2020_rows()) rows.extend(_dai2018_rows()) theta_bm5 = _bm5_conductor_temperature() # paper tabulated network, λ1' only @@ -2242,6 +2309,7 @@ def main() -> None: "| BM6 | `copper_poon2022` SWT constants (cited registry) + representative contact | curve YES (registry); cable-level contact driver is representative, not from a cable |", "| WITZ | `witz1996.yaml` geometry + material library + digitised Witz Figs 5-6 | EI_min YES (parameter-free); WITZ-ID: initial pressure identified on the Fig. 5 width (declared `identified`), Fig. 6 predicted without refitting |", "| SV11 | `saevik2011.yaml` geometry (Table 1; outer armour, tapes and sheath assumed) + material library (polymer modulus identified on the Table 1 EI) + rig constants in `validation/scripts/check_saevik2011.py` + digitised Sævik Figs 17-23 and Gjøsteen Figs 27-35 | PARTIAL — section from the cable definition; the curvature profile along the pipe comes from a harness beam model with an assumed rotation point |", + "| DAI20 | digitised Dai et al. (2020) Fig. 9 + rig constants in `validation/scripts/check_dai2020.py` (end-fitting distance, pivot and rigid length assumed) + tube data of its Tables 1 and 3 | PARTIAL — rig beam with one identified bending stiffness; the umbilical section is not built (its Table 1 is inconsistent) |", "", "Engine note (RESOLVED): the Kim/Coulomb cross-sectional loop assumes " "extreme-fibre full slip and is NOT a valid absolute-dissipation " From ef0a16882f62d98199e85e5459864520df6c8bd2 Mon Sep 17 00:00:00 2001 From: Jae Hoon Seo Date: Wed, 18 Nov 2026 19:33:25 +0900 Subject: [PATCH 4/7] validation: report rows DAI20-KAPPA and DAI20-COULOMB Signed-off-by: Jae Hoon Seo --- validation/validation_report.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/validation/validation_report.md b/validation/validation_report.md index 208a3e2..7f72fbd 100644 --- a/validation/validation_report.md +++ b/validation/validation_report.md @@ -67,6 +67,8 @@ Every row is computed from published data or closed-form references in this repo | 2 | SV11-EQ88 | Sævik (2011) Eq. 88, kappa = 0.067 + 0.11 s, at the two published bellmouth ends (Sævik 1.72 m; Gjøsteen et al. 1.79 m): radius and slope | Sævik's text: 3.9 m and 16 deg | 1.72 m: 3.90 m, 15.9 deg; 1.79 m: 3.79 m, 17.0 deg; 3.9 m at s = 1.722 m | INFO | | 2 | AW-DONG25 | Dong et al. (2025) Figs 14 and 25: armour wire anchored at both ends of one pitch, pipe bent to a uniform 0.005 1/m (a = 1.87), clamp-layer solver against the source's FE: neutral-axis wire (Fig. 14) and anchor stress for theta0 = 0, 45, 90, 135, 180 deg (Fig. 25) [MPa] | stated, not gated (code-to-code) | Fig. 14 anchor 156.4 vs FE 156.9 (source theory 147.8); peak 207.8 at X/P 0.217 vs 204.5 at 0.223; Fig. 25 anchors 81.8/117.6/156.4/191.9/200.0 vs 89.3/121.2/164.8/199.1/195.0 | INFO | | 2 | AW-ZT14 | Zhu and Tan (2014) Figs 4-8: normalised anchor / peak stress of an anchored wire at a = 4.92 (from their Table 2), clamp-layer solver against the source's FE, wires starting at 45 and 90 deg; FE far field against the full-slip triangle | stated, not gated (code-to-code) | 90 deg 1.19 / 1.70 vs FE 2.22 / 2.23; 45 deg 0.05 / 1.32 vs 0.97 / 1.59; FE far field RMS distance to a cosine 0.028, to the full-slip triangle 0.154 (the FE wire is not in slip) | INFO | +| 2 | DAI20-KAPPA | Dai et al. (2020) Fig. 9: centre-tube curvature in a bellmouth (0.1 1/m, 3 m, 200 kN) at S2 and S3, rig beam with the bending stiffness identified on the S2 curvature at 4 deg (0.03995 1/m): angle where S2 reaches 90 % and S3 50 % of the bellmouth curvature | both within +-1.0 deg of the measured 7.03 and 14.57 deg | EI 59.1 kN m2; S2 6.16 deg (-0.87), S3 13.69 deg (-0.89); finer beam meshes S2/S3 error 10 mm -0.89/-0.89; 5 mm -0.91/-0.90; 2.5 mm -0.91/-0.90 deg | PASS | +| 2 | DAI20-COULOMB | Dai et al. (2020) Tables 3-5: sectional full-slip friction strain range of the large / small helical steel tube at S2 with the source's contact line forces (radial; radial plus hoop), mu = 0.2 as assumed by the source | stated, not gated (measured 200 / 158 microstrain) | radial 378 / 71 (+89 / -55 %); radial plus hoop 428 / 416 (+114 / +163 %); the source's 2D values reproduced within 1.1 % | INFO | | 2 | DAI18-DIG | Dai et al. (2018) Fig. 4a, Test 1 (armour wire on anti-wear tape, 8/4/1 MPa), digitised: loop maximum vs printed mu_s 0.22/0.24/0.38 (p. 428) | within 0.005 (printed precision) + reading resolution | 0.2237/0.2405/0.3786 (largest deviation 0.0037 vs 0.0071) | PASS | | 2 | DAI18-RS | Dai et al. (2018) Fig. 4a/4c, 7 loops: re-stick peak above the dynamic level at every reversal; spring-slider (FrictionLaw static_factor = mu_s/mu_d) with stick_time_s = 0 vs the default inf, third cycle | excess > 5 reading resolutions on all 14 measured strokes; stick_time_s = 0 on all 14; inf on none | measured 14/14 (excess 0.039-0.094); stick_time_s = 0 14/14; inf 0/14 | PASS | | 2 | DAI18-T1 | Dai et al. (2018) Test 1 loops vs spring-slider with the printed mu_s/mu_d, stick_time_s = 0 and each loop's stick slope (last 0.5 mm before each reversal excluded): peak and dynamic level (+x/-x stroke), stroke work; decay and peak position, Tests 1 and 3 | stated, not gated | 8 MPa: peak -1.8/-0.8%, level +0.1/+4.7%, work -2.6%; 4 MPa: peak -0.4/+0.6%, level -1.0/+6.6%, work -1.9%; 1 MPa: peak +1.0/+0.2%, level -3.3/+12.3%, work -2.1%; decay to 10% of peak-level 0.6-2.3 mm (model: one step); peak 1.4-2.5x the slider's elastic travel from the reversal | INFO | @@ -78,7 +80,7 @@ Every row is computed from published data or closed-form references in this repo - analytical_sanity: `1190 passed` - independent_method: `77 passed` -- full_scale: `42 passed` +- full_scale: `48 passed` Run `pytest -m ` to reproduce each group. From 1ac8d39219a3fb8c5fe69c823209fdb6e891bcba Mon Sep 17 00:00:00 2001 From: Jae Hoon Seo Date: Wed, 18 Nov 2026 22:51:58 +0900 Subject: [PATCH 5/7] validation: audit line for DAI20 in the report Signed-off-by: Jae Hoon Seo --- validation/validation_report.md | 1 + 1 file changed, 1 insertion(+) diff --git a/validation/validation_report.md b/validation/validation_report.md index 5fab3fc..b79cafa 100644 --- a/validation/validation_report.md +++ b/validation/validation_report.md @@ -99,5 +99,6 @@ Does each benchmark's pass come from the cable/material definition, or from an i | WITZ | `witz1996.yaml` geometry + material library + digitised Witz Figs 5-6 | EI_min YES (parameter-free); WITZ-ID: initial pressure identified on the Fig. 5 width (declared `identified`), Fig. 6 predicted without refitting | | SV11 | `saevik2011.yaml` geometry (Table 1; outer armour, tapes and sheath assumed) + material library (polymer modulus identified on the Table 1 EI) + rig constants in `validation/scripts/check_saevik2011.py` + digitised Sævik Figs 17-23 and Gjøsteen Figs 27-35 | PARTIAL — section from the cable definition; the curvature profile along the pipe comes from a harness beam model with an assumed rotation point | | ZEID | `zeidan2025.yaml` geometry (Zeidan et al. 2026 Table 3; radii the table does not close stated in the file) + its own `materials:` block (Table 4) + the four-point arrangement of the thesis (Sec. 5.3) + digitised thesis Figs 5.5-5.6 and paper Fig. 18 | YES for Z-EI (parameter-free); Z-ID: initial pressure identified on the 40 mm work (declared `identified`), 30, 50, 60 mm predicted | +| DAI20 | digitised Dai et al. (2020) Fig. 9 + rig constants in `validation/scripts/check_dai2020.py` (end-fitting distance, pivot and rigid length assumed) + tube data of its Tables 1 and 3 | PARTIAL — rig beam with one identified bending stiffness; the umbilical section is not built (its Table 1 is inconsistent) | Engine note (RESOLVED): the Kim/Coulomb cross-sectional loop assumes extreme-fibre full slip and is NOT a valid absolute-dissipation predictor (it is A11 internal-energy consistent only). BOTH `compute_mkappa` AND the per-wire `compute_stress` now route through the single **Papailiou** neutral-axis slip-front engine — experimentally compared with six public bending ranges. Corrected work predictions do not meet the historical energy targets. GATE A (M-rec) confirms the per-wire σ_f assembly recovers `compute_mkappa` cross-engine; GATE B (slip-onset) confirms slip starts at the neutral axis (Raoof/Papailiou), not the extreme fibre. The Coulomb loop is retired from every public path (A11 reference only). From 32dd46cf713a46df3952d93f7ea38ec7c731c9d2 Mon Sep 17 00:00:00 2001 From: Jae Hoon Seo Date: Wed, 18 Nov 2026 23:45:19 +0900 Subject: [PATCH 6/7] validation: settings changes clear the split cache too 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 --- tests/test_saevik2011_benchmark.py | 24 ++++++++++++++++++++++++ validation/scripts/check_saevik2011.py | 12 +++++++++--- validation/validation_report.md | 2 +- 3 files changed, 34 insertions(+), 4 deletions(-) diff --git a/tests/test_saevik2011_benchmark.py b/tests/test_saevik2011_benchmark.py index d585575..6580564 100644 --- a/tests/test_saevik2011_benchmark.py +++ b/tests/test_saevik2011_benchmark.py @@ -228,3 +228,27 @@ def test_rig_anchor_sets_the_termination_coordinates(): term = res["stations"]["2.1"]["termination"] assert term["termination_applied"] == 1.0 assert term["axial_p"] > 0.0 + + +def test_setting_changes_clear_the_split_cache(monkeypatch): + # split_values is cached by mu only: changing the tendon definition or the + # anchor stiffness must drop it together with gate_values. + cleared = [] + + class Spy: + def __init__(self, name): + self.name = name + + def cache_clear(self): + cleared.append(self.name) + + monkeypatch.setattr(sv, "gate_values", Spy("gate")) + monkeypatch.setattr(sv, "split_values", Spy("split")) + monkeypatch.setattr(sv, "cable", Spy("cable")) + monkeypatch.setattr(sv, "TENDONS", sv.TENDONS) + monkeypatch.setattr(sv, "K_ANCHOR_N_M", sv.K_ANCHOR_N_M) + sv.use_anchor(None) + assert cleared == ["gate", "split"] + cleared.clear() + sv.use_tendons("round") + assert cleared == ["cable", "gate", "split"] diff --git a/validation/scripts/check_saevik2011.py b/validation/scripts/check_saevik2011.py index cea1da9..302f118 100644 --- a/validation/scripts/check_saevik2011.py +++ b/validation/scripts/check_saevik2011.py @@ -98,7 +98,7 @@ def use_tendons(tendons: str) -> None: raise ValueError("tendons must be 'round' or 'rectangular'") TENDONS = tendons cable.cache_clear() - gate_values.cache_clear() + _clear_results() def use_anchor(k_anchor_N_m: float | None) -> None: @@ -109,7 +109,13 @@ def use_anchor(k_anchor_N_m: float | None) -> None: """ global K_ANCHOR_N_M K_ANCHOR_N_M = k_anchor_N_m + _clear_results() + + +def _clear_results() -> None: + """Drop every cached result that depends on the module settings.""" gate_values.cache_clear() + split_values.cache_clear() @dataclass(frozen=True) @@ -836,12 +842,12 @@ def xi_nearest(cable, layer_name, youngs_modulus_Pa=None): # type: ignore[no-un for module in self._modules: module.xi_for_layer = xi_nearest # type: ignore[attr-defined] - gate_values.cache_clear() + _clear_results() def __exit__(self, *exc: object) -> None: for module in self._modules: module.xi_for_layer = self._original # type: ignore[attr-defined] - gate_values.cache_clear() + _clear_results() def profile_convergence( diff --git a/validation/validation_report.md b/validation/validation_report.md index 1e5d984..0ba90d1 100644 --- a/validation/validation_report.md +++ b/validation/validation_report.md @@ -80,7 +80,7 @@ Every row is computed from published data or closed-form references in this repo - analytical_sanity: `1191 passed` - independent_method: `77 passed` -- full_scale: `50 passed` +- full_scale: `51 passed` Run `pytest -m ` to reproduce each group. From 8b1e57f1f3acd22ce110a717a36cd250ee047515 Mon Sep 17 00:00:00 2001 From: Jae Hoon Seo Date: Thu, 19 Nov 2026 01:14:56 +0900 Subject: [PATCH 7/7] validation: the held-inlet variant keeps the section normalisation 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 --- doc/benchmarks.md | 7 ++++--- tests/test_saevik2011_benchmark.py | 18 ++++++++++++++++++ validation/scripts/check_saevik2011.py | 8 +++++++- validation/validation_report.md | 2 +- 4 files changed, 30 insertions(+), 5 deletions(-) diff --git a/doc/benchmarks.md b/doc/benchmarks.md index 8d6372b..914a137 100644 --- a/doc/benchmarks.md +++ b/doc/benchmarks.md @@ -1418,8 +1418,9 @@ target): demand `a = κ/κ_c ≈ 27`; the anchored-wire law amplifies the peak friction force by about `1 + 0.54 √a ≈ 3.8` there. Holding the inlet at the curvature of the start of the curved section (removing the step, not the - contact) lowers the median only to 1.46 (table below): both ends of - the contact zone contribute. + contact) leaves the median at 1.61 and lowers GJ only to 1.57 (table + below): the step at the start of the curved section is not the main source; + the gradients across the contact zone are. - *The beam does not carry it.* The profile is taken from a beam with the sectional backbone, so the wire forces that the anchored chain builds next to the inlet never stiffen the pipe there. The consistent two-way solution @@ -1444,7 +1445,7 @@ target): | bellmouth end 1.79 m | 1.62 (3) | 1.00 (11) | 1.80 / 1.24 | | rotation at 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.46 (5) | 1.00 (11) | 1.57 / 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 | | shear stack to the nearest helix | 2.17 (3) | 1.19 (12) | 2.07 / 1.27 | diff --git a/tests/test_saevik2011_benchmark.py b/tests/test_saevik2011_benchmark.py index 6580564..56c2999 100644 --- a/tests/test_saevik2011_benchmark.py +++ b/tests/test_saevik2011_benchmark.py @@ -252,3 +252,21 @@ def cache_clear(self): cleared.clear() sv.use_tendons("round") assert cleared == ["cable", "gate", "split"] + + +def test_held_inlet_keeps_the_contact_zone_curvature(): + # A station in the held inlet takes the held curvature as its history, so + # the normalised shape reproduces the beam's contact-zone curvature. + case = next(c for c in sv.load_cases() if c.lc == 14) + held = sv.predict_case( + case, sv.MU_DECLARED, only=("1.1", "2.1"), variant=sv.TermVariant(inlet="hold") + ) + moment, _ei_max, ei_min = sv.backbone(case, sv.MU_DECLARED) + beam = sv.Beam(moment, ei_min, case.tension_N) + _w, k = beam.peak_profile(case.angle_range_deg / 2) + st = held["stations"] + assert st["1.1"]["kappa_peak_termination"] == pytest.approx( + np.interp(0.0, beam.x, k), rel=1e-12 + ) + assert st["1.1"]["kappa_peak_termination"] != st["1.1"]["kappa_peak"] + assert st["2.1"]["kappa_peak_termination"] == st["2.1"]["kappa_peak"] diff --git a/validation/scripts/check_saevik2011.py b/validation/scripts/check_saevik2011.py index 302f118..6cc494f 100644 --- a/validation/scripts/check_saevik2011.py +++ b/validation/scripts/check_saevik2011.py @@ -571,6 +571,7 @@ def predict_case( peak = float(np.interp(x_s, beam.x, k)) sec = station_ranges(layer, peak, x_s, az, None) shape = profile + peak_t = peak if variant is not None and variant.inlet != "beam": kk = k.copy() if variant.inlet == "zero": @@ -580,11 +581,16 @@ def predict_case( else: raise ValueError(f"unknown inlet variant {variant.inlet!r}") shape = (xp, kk) - term = station_ranges(layer, peak, x_s, az, shape, variant, anchor) + # The correction normalises the shape at the section; a station in + # the modified inlet takes the modified curvature as its history, + # so the field elsewhere (the contact zone) keeps its values. + peak_t = float(np.interp(x_s, beam.x, kk)) + term = station_ranges(layer, peak_t, x_s, az, shape, variant, anchor) out["stations"][name] = { "x_m": x_s, "azimuth_deg": az, "kappa_peak": peak, + "kappa_peak_termination": peak_t, "sectional": sec, "termination": term, } diff --git a/validation/validation_report.md b/validation/validation_report.md index 0ba90d1..029355d 100644 --- a/validation/validation_report.md +++ b/validation/validation_report.md @@ -80,7 +80,7 @@ Every row is computed from published data or closed-form references in this repo - analytical_sanity: `1191 passed` - independent_method: `77 passed` -- full_scale: `51 passed` +- full_scale: `52 passed` Run `pytest -m ` to reproduce each group.