diff --git a/CHANGELOG.md b/CHANGELOG.md index b682b8a..e84cdc5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -540,6 +540,8 @@ All notable changes to CableXSec are recorded in this file. The format follows ### Fixed +- The provenance of `compute_coiling` lists CH-CR as its only gate. It also named CH-EI, CH-P + and CH-D, rows that were removed before 0.1.0 and no longer exist in the validation report. - `read_cabledyn_sections` reads a section placed on a deck node from that node's channels alone: `CurvX`/`CurvY` on the components route, and `Ten`, `Twist` and `Torq` on every route. Before, every section needed the channels of both nodes of its element, so a station written diff --git a/src/cablexsec/analysis/coiling.py b/src/cablexsec/analysis/coiling.py index 3775b8e..1d6fd57 100644 --- a/src/cablexsec/analysis/coiling.py +++ b/src/cablexsec/analysis/coiling.py @@ -137,7 +137,7 @@ "[LiVaz2021b]", "[DNVGL-RP-0360]", ), - gates=("CH-EI", "CH-P", "CH-D", "CH-CR"), + gates=("CH-CR",), limitations=( "uniform curvature and twist; no transition into the coil, no tank-floor " "or coil-on-coil contact, no weight of the coils above", diff --git a/tests/test_core_friction.py b/tests/test_core_friction.py index d654ce9..1bf89b3 100644 --- a/tests/test_core_friction.py +++ b/tests/test_core_friction.py @@ -485,7 +485,17 @@ def test_coupling_and_provenance(cable): plain = xsec_stiffness(cable, 0.002, tension_N=T) cored = xsec_stiffness(cable, 0.002, tension_N=T, core_friction=SPEC) assert cored.EI_max_Nm2 > plain.EI_max_Nm2 - assert cored.EI_tangent_Nm2 >= plain.EI_tangent_Nm2 + # At 0.002 1/m the section is in full slip with and without the cores: + # both tangents are EI_min, to round-off. They differ by 39 ulps + # (6.5e-15 relative), with a sign that changes with the NumPy build + # (+39 with 2.4.6, -39 with 2.5.4); the largest distance of a tangent + # from EI_min is 54 ulps (cored, 2.4.6). "The cores do not lower the + # tangent" therefore holds to round-off, not bit for bit: 128 ulps of + # EI_min (2.8e-14 relative). + noise = 128 * np.spacing(plain.EI_min_Nm2) + assert abs(plain.EI_tangent_Nm2 - plain.EI_min_Nm2) <= noise + assert abs(cored.EI_tangent_Nm2 - cored.EI_min_Nm2) <= noise + assert cored.EI_tangent_Nm2 >= plain.EI_tangent_Nm2 - noise res = cx.compute_mkappa(cable, _loop(0.1), tension_N=T, core_friction=SPEC) assert "laid-core stick-slip" in res.provenance.method assert "[KarlsenHusoy2026]" in res.provenance.citations