Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ All notable changes to CableXSec are recorded in this file. The format follows

### Added

- 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
far field is not in slip), so far reported only on the benchmark page.

- `compute_neutral_axes(..., core_friction=...)`: the biaxial section moment adds the
stick-slip law of the laid power cores, their internal wire rings and the filler profiles
(`core_friction_history` over the same curvature history), so that a global model's
Expand Down
2 changes: 2 additions & 0 deletions VALIDATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -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** |
| **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 |
| **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 |
Expand Down
5 changes: 3 additions & 2 deletions doc/benchmarks.md
Original file line number Diff line number Diff line change
Expand Up @@ -1667,7 +1667,8 @@ the interface sensitivity below; about two minutes), tests
`tests/test_anchored_wire_fe.py`, digitised curves
`validation/paper_data/dong2025_figs9_14_25.csv` and
`zhu_tan2014_figs4_8.csv` (procedure, calibration, reading uncertainty and
source SHA-256 in the file headers). **Reported, not gated**: the comparison
source SHA-256 in the file headers); scorecard rows AW-DONG25 and AW-ZT14
(code-to-code, INFO). **Reported, not gated**: the comparison
was run before an agreement criterion existed, and Dong et al.'s two FE
results for the same wire differ by 8 MPa (below), so no criterion
independent of the result was available. Nothing is fitted.
Expand Down Expand Up @@ -1764,7 +1765,7 @@ its Eq. 9 with the Table 2 shifts (its plotted curves read 0.31 / 1.39,
| θi | FE anchor / peak | CableXSec anchor / peak | Source model anchor / peak |
| --- | --- | --- | --- |
| 0°, 180° | no anchor effect | no anchor effect (exact) | no anchor effect |
| 45° | 0.97 / 1.59 (165°) | 0.05 / 1.33 (161°) | 0.30 / 1.40 (145°) |
| 45° | 0.97 / 1.59 (165°) | 0.05 / 1.32 (161°) | 0.30 / 1.40 (145°) |
| 90° | 2.22 / 2.22 | 1.19 / 1.70 (137°) | 2.16 / 2.16 |
| 135° | 2.19 / 2.19 | 1.76 / 1.76 | 1.80 / 1.80 |

Expand Down
22 changes: 22 additions & 0 deletions tests/test_anchored_wire_fe.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,3 +159,25 @@ def test_digitised_files_name_their_sources():
):
head = path.read_text(encoding="utf-8").split("\n", 20)
assert any(digest in line for line in head)


@pytest.mark.independent_method
def test_report_rows_are_pinned():
import run_validation # noqa: PLC0415

rows = {r.ident: r for r in run_validation._anchored_wire_fe_rows()}
dong = rows["AW-DONG25"]
assert dong.target == "stated, not gated (code-to-code)"
assert dong.value == (
"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"
)
assert dong.status == "INFO"
zt = rows["AW-ZT14"]
assert zt.value == (
"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)"
)
assert zt.status == "INFO"
60 changes: 60 additions & 0 deletions validation/scripts/run_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,65 @@ def _saevik_rows() -> list[Row]:
]


def _anchored_wire_fe_rows() -> list[Row]:
"""Anchored wire at uniform curvature against two published FE studies.

Code-to-code, reported (doc/benchmarks.md, "Anchored wire at uniform
curvature against published FE"): the clamp-layer solver against the FE of
Dong et al. (2025) and of Zhu and Tan (2014). scripts/check_anchored_wire_fe.py.
"""
if str(ROOT) not in sys.path:
sys.path.insert(0, str(ROOT))
import check_anchored_wire_fe as aw # noqa: PLC0415

r = aw.report()
dong, zt = r["dong"], r["zt"]
d90 = dong["cablexsec"][90]
fe14, th14 = dong["fig14_fe"], dong["fig14_theory"]
fe25 = dong["fig25_fe"]
rise = "/".join(
f"{dong['cablexsec'][t]['anchor']:.1f}" for t in (0, 45, 90, 135, 180)
)
rise_fe = "/".join(
f"{fe25[t]['start']:.1f}" for t in ("0", "45", "90", "135", "180")
)
z90, f90 = zt["cablexsec"][90.0], zt["fea"][90.0]
z45, f45 = zt["cablexsec"][45.0], zt["fea"][45.0]
rms = zt["fea_far_field_rms"]
return [
Row(
"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 = "
f"{dong['parameters']['a']:.2f}), 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)",
f"Fig. 14 anchor {d90['anchor']:.1f} vs FE {fe14['start']:.1f} (source "
f"theory {th14['start']:.1f}); peak {d90['peak']:.1f} at X/P "
f"{d90['peak_X']:.3f} vs {fe14['peak']:.1f} at {fe14['peak_x']:.3f}; "
f"Fig. 25 anchors {rise} vs {rise_fe}",
"INFO",
),
Row(
"2",
"AW-ZT14",
"Zhu and Tan (2014) Figs 4-8: normalised anchor / peak stress of an "
f"anchored wire at a = {zt['a']:.2f} (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)",
f"90 deg {z90['anchor']:.2f} / {z90['peak']:.2f} vs FE "
f"{f90['start']:.2f} / {f90['peak']:.2f}; 45 deg {z45['anchor']:.2f} / "
f"{z45['peak']:.2f} vs {f45['start']:.2f} / {f45['peak']:.2f}; FE far "
f"field RMS distance to a cosine {rms['cosine']:.3f}, to the full-slip "
f"triangle {rms['triangle']:.3f} (the FE wire is not in slip)",
"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.
Expand Down Expand Up @@ -1877,6 +1936,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(_anchored_wire_fe_rows())
rows.extend(_dai2018_rows())

theta_bm5 = _bm5_conductor_temperature() # paper tabulated network, λ1' only
Expand Down
4 changes: 3 additions & 1 deletion validation/validation_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ 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 | 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 |
| 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 |
Expand All @@ -72,7 +74,7 @@ Every row is computed from published data or closed-form references in this repo
## Test taxonomy (full gate suite)

- analytical_sanity: `1190 passed`
- independent_method: `76 passed`
- independent_method: `77 passed`
- full_scale: `36 passed`

Run `pytest -m <marker>` to reproduce each group.
Expand Down
Loading