From b51c13754710ce876c18e6905e02815bd36e6f05 Mon Sep 17 00:00:00 2001 From: Jae Hoon Seo Date: Fri, 20 Nov 2026 22:18:09 +0900 Subject: [PATCH 1/6] docs: gap G8 as a known limitation; opt-in annulus stick support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Gap G8 is closed for release 0.2.0 as a documented known limitation. The slip branch of a compact, solid-filler three-core cable is about 3.5 times softer than measured (Z-ID), the 300-bar Witz loop is too narrow (WITZ-ID, G8-W1/W3), and HU-3PB and the Ménard loops at one clamping miss. doc/benchmarks.md states what fails and by how much; the eight mechanisms tested with source inputs (stick-support compliance, residual pressure, neighbour-wire contact, compacted bundle, end anchorage, conductor compaction, the metric, the insulation modulus) and why each was ruled out; where the model is reliable (rope-filler bundles) and where it under-predicts the slip stiffness; the direction of the error; and the data that would settle it. VALIDATION.md and the local analysis guide summarise it. New keyword stick_support on compute_mkappa, compute_stiffness, SectionLaw.from_cable, cable_to_mkappa_specs and xi_for_layer. The default, "yun_stack", is unchanged bit for bit. The opt-in "annulus" (mechanics/stick_support.py) solves the mode-1 antiplane shear of the layered polymer annulus under the armour with its actual inner boundary, plus the concentration of the load on each wire's width. On a hollow-core verification tube it gives the sectional stick coefficient of a line-contact finite-element model within 4 %, where the default is about twice too stiff (new stated row XI-FE). Closed-form limits and an independent finite-difference solution are tested. Signed-off-by: Jae Hoon Seo --- CHANGELOG.md | 24 +++ VALIDATION.md | 11 + doc/benchmarks.md | 96 +++++++++ doc/local_analysis_guide.md | 30 +++ src/cablexsec/analysis/beam_test.py | 8 + src/cablexsec/api.py | 35 +++- src/cablexsec/cable_adapters.py | 5 + src/cablexsec/mechanics/stick_support.py | 146 ++++++++++++++ src/cablexsec/mechanics/stiffness.py | 110 ++++++++++ tests/test_stick_support.py | 188 ++++++++++++++++++ validation/README.md | 1 + validation/paper_data/README.md | 6 + .../paper_data/line_contact_tube_copper.yaml | 48 +++++ .../paper_data/line_contact_tube_hollow.yaml | 42 ++++ .../paper_data/line_contact_tube_stick.csv | 11 + validation/scripts/check_stick_support_fe.py | 73 +++++++ validation/scripts/run_validation.py | 33 +++ validation/validation_report.md | 5 +- 18 files changed, 868 insertions(+), 4 deletions(-) create mode 100644 src/cablexsec/mechanics/stick_support.py create mode 100644 tests/test_stick_support.py create mode 100644 validation/paper_data/line_contact_tube_copper.yaml create mode 100644 validation/paper_data/line_contact_tube_hollow.yaml create mode 100644 validation/paper_data/line_contact_tube_stick.csv create mode 100644 validation/scripts/check_stick_support_fe.py diff --git a/CHANGELOG.md b/CHANGELOG.md index 0328269..0260d2d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,30 @@ All notable changes to CableXSec are recorded in this file. The format follows ### Added +- `stick_support` keyword on `compute_mkappa`, `compute_stiffness`, + `SectionLaw.from_cable`, `cable_to_mkappa_specs` and `xi_for_layer`. + - It selects the model of the armour stick coefficient ξ. The default, + `"yun_stack"`, is unchanged, bit for bit. + - The opt-in `"annulus"` (`cablexsec.mechanics.stick_support`) solves the + mode-1 antiplane shear of the layered polymer annulus under the armour, + with its actual inner boundary (rigid support, free bore or axis), plus + the concentration of the load on each wire's width. + - On thin layers over a stiff support it agrees with the default within a + few per cent. On a hollow-core verification tube it gives the sectional ξ + of a line-contact finite-element model within 4 %, where the default is + about twice too stiff. + - New stated row XI-FE (`validation/scripts/check_stick_support_fe.py`, + `validation/paper_data/line_contact_tube_*`). + - Closed-form limits and an independent finite-difference solution in + `tests/test_stick_support.py`. +- Gap G8 documented as a known limitation for 0.2.0 (doc/benchmarks.md, + VALIDATION.md, local analysis guide). + - It covers what fails and by how much, and the eight mechanisms tested with + source inputs and why each was ruled out. + - It states where the model is reliable (rope-filler bundles) and where it + under-predicts the slip stiffness (compact solid-filler bundles), the + direction of the error, and the data that would settle it. + - `validation/scripts/benchmark_throughput.py`: one-core throughput of sea-state fatigue on the 66 kV template (direction-tied and distributed models, every wire or 12 positions, 4 or 32 fibres), the damage differences from an earlier build, and the sea-state batch time diff --git a/VALIDATION.md b/VALIDATION.md index e90b055..e7f688f 100644 --- a/VALIDATION.md +++ b/VALIDATION.md @@ -81,6 +81,7 @@ afterwards: a comparison that misses its target is reported as failed. | **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 | | **DAI18-T3** | Test 3 loops (0.01–0.2 Hz) against the rate-independent spring-slider | Dai, Sævik and Ye (2018), Fig. 4c | dynamic level −3.5 to +0.3 %; static peak +10.6 % at 0.2 Hz not represented | stated, not gated | Info | +| **XI-FE** | Armour stick coefficient of two verification tubes (hollow core; copper core), default and opt-in stick support | three-dimensional line-contact finite-element model (model to model) | hollow: `annulus` +4.3 %, default +104 %; copper: +8.8 %, +5.9 % | stated, not gated | Info | | **BM5** | Conductor temperature of the CIGRE TB 880 export cable, from the source's tabulated network inputs (`compute_thermal` on the cable itself is not yet comparable) | Poradowski tabulated thermal network; FEM 89.62 °C | 84.4 °C | ≤90 °C, about 5 K low | Partial | | **BM4** | Axial stiffness of a population of umbilicals | Sævik and Bruaseth (2005) | mean ratio about 1.45 | <1.25 | Not validated | @@ -105,6 +106,16 @@ quantities are those of the passing rows. In particular: no-slip bound since the armour shear stack stops at its support (Z-EI, diagnosed on), but the identified loops miss the moment range by a third or more (Z-ID); absolute dissipation predictions therefore carry the uncertainty shown by WITZ-ID and Z-ID. +- **Known limitation (gap G8, closed for 0.2.0).** + - On a compact, solid-filler three-core cable (Zeidan 2025), the slip-branch tangent is + about 3.5 times softer than measured (Z-ID: 2.5–2.6 against 8.65–9.70 kN·m²). + - With rope fillers (Ménard and Cartraud 2023), the full-slip stiffness is right (BM1). + - Eight mechanisms, each registered and tested with source inputs, were ruled out: + stick-support compliance, residual pressure, neighbour-wire contact, a compacted bundle, + end anchorage, conductor compaction, the metric, and the insulation modulus + (doc/benchmarks.md, "Known limitation: slip-branch stiffness of compact sections"). + - Direction of the error: conservative for curvature-driven quantities, not conservative + for the section moment and the interface loads. - 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 closest to them (median 1.19, 12 of 14 in band, against the 1.18 bound). At diff --git a/doc/benchmarks.md b/doc/benchmarks.md index 0a58614..fdf20c7 100644 --- a/doc/benchmarks.md +++ b/doc/benchmarks.md @@ -1538,6 +1538,102 @@ geodesic) and of tension-coupled re-sticking (Kim 2020). Interlocked carcass and Zeta layer types (G2), orthotropic tapes (G3) and an asymmetric, non-Masing loop law (G8) are open. +### Known limitation: slip-branch stiffness of compact sections + +Gap G8 is closed for release 0.2.0 as a documented known limitation. No +mechanism tested with source inputs closes it. Every candidate below was +registered (formulation, predictions and pass rules) before it was run, with +held-out rows chosen in advance. No band, target or source input was changed. + +**What fails, and by how much.** + +| Row | Measured | Model | +| --- | --- | --- | +| Z-ID (Zeidan 2025, four-point, reading R2) | slip tangent (ascending branch, 0 to 0.8 of the amplitude) 8.65–9.70 kN·m²; stick secant 113–143 kN·m² (plotted curvature) | slip tangent 2.50–2.59 kN·m²; stick secant 215 kN·m²; moment range −33 to −46 % at the identified initial pressure of 760 kPa | +| WITZ-ID, G8-W1, G8-W3 (Witz 1996, 300 bar) | width 1990–2164 N·m; energy/width 1.44–1.57 1/m | width 1356 N·m; energy/width 2.01 1/m (energy −12.8 %, inside its band) | +| HU-3PB (Hu et al. 2022, conductor) | loop area 3.185 N·m/m | +36.7 % (Papailiou cap), +64.4 % (Karlsen–Husøy amplitude) | +| BM1-loop, BM1-ID (Ménard and Cartraud 2023) | loops at one clamping | work +11.8 % at ±0.10 1/m after the published calibration; with the initial pressure identified on range (b), ranges (a) and (c) +28.5 % and +26.2 % | + +**Mechanisms tested, and why each was ruled out.** + +| Mechanism | Finding | +| --- | --- | +| Stick-support compliance | Two candidates were tested: the layered-annulus shear of the polymer under the armour (now the opt-in `stick_support="annulus"`, row XI-FE), and that support with an elastic line contact of round wires on polymer. On every measured section the support is a thin polymer layer over a stiff body, so the annulus moves ξ by 8 % or less. The line contact moves round-wire sections by 5–40 %. Neither moves the Witz width: ξ from ×0.25 to ×1 changes it by 0.0 %, and the line contact leaves it at 1356 N·m with energy/width 2.00. The Ménard work moves by 0.5–1.8 points. | +| Residual (manufacturing) contact pressure | Already represented by the initial pressure identified on each loop. It sets the loop height and slip onset, not the slopes, and the slope errors do not follow it: Ménard's slip slope is right at 216 kPa, Zeidan's is 3.5 times too soft at 760 kPa. | +| Contact between neighbouring wires of one layer | Zeidan's and Ménard's armours have the same coverage, 0.95–0.97, with positive nominal gaps, yet only Zeidan shows the deficit. By magnitude, neighbours slip together to within about 1/n of the slip, and lateral locking acts on the individual wire bending term of order 0.1 kN·m², against a deficit of about 6 kN·m². | +| Compacted laid-core bundle (cores and fillers bonded to the section) | The laid-core law already keeps Zeidan's cores stuck over the whole test range. A bonded bundle gives the registered Z-ID result unchanged to every printed digit. The copper is coupled to the bundle only through the 8.75 mm insulation at its 6 MPa (ξ_core 0.030), so a bonded bundle keeps 0.6 kN·m². Even a rigid bond gives 8.1 kN·m² at uniform curvature, about 6.3 in the plotted reduction. Zeidan's cross-wound armours balance their transverse shear to within 1.4 %, so the bundle carries almost none of it, and its compliance cannot soften the stick branch. Counting the filler depth in series under the inner armour alone (an earlier variant) softens Z-ID's stick for that reason and breaks Z-EI. | +| End anchorage of the specimen | No row with a slip deficit has anchored ends. Zeidan's ends are free: the outer wires moved and partly separated near the cable ends, and the supports carry no axial restraint. A free end makes the slip branch softer near the ends, not stiffer. The one anchored row (SV11) is already over-predicted by the anchored correction. | +| Conductor strand compaction | Zeidan's conductor is already a solid body in the input: a fully stuck conductor adds 0.01 kN·m². Measured compressed and shaped conductors (Yan et al. 2022, China Ocean Engineering 36(4) 629–637, Tables 1 and 3; three conductors of equal section on a 440 mm three-point rig at 0.37 1/m) slip at about 4 % of the solid bending stiffness. | +| The metric | Model and measurement are reduced by the same function: the least-squares tangent over the same curvature range of the simulated and of the measured loop. The model reaches its final tangent at about 0.003 1/m, 37–76 times below the test amplitudes, so the comparison is not a partial-slip tangent set against a full-slip value. | +| The insulation modulus | Zeidan's 6 MPa is the source finite-element model's input (Zeidan et al. 2026, Table 4), with no stated test rate or temperature; no measured value for that compound is in the reference set. Diagnostic only: any value from 6 MPa to 10 GPa gives a slip tangent of at most 4.1 kN·m² at uniform curvature. A stiffer coupling raises the cores' friction demand until they slip in the test range. | + +**Where the model is reliable, and where it is not.** + +- **Rope-filler construction** (Ménard and Cartraud 2023, Sec. 2.2: "fillers, + which are made of polypropylene (PP) ropes"). The full-slip stiffness is + right without calibration (BM1, 0.6 %). So is the reversal stiffness over + the first 0.0025 1/m (50 000–68 000 against 56 000 N·m²). +- **Compact, solid-filler construction.** Zeidan (2025), Ch. 5: interstices + "filled with polymeric fillers and bedding layers that … improve the + transfer of loads between components"; an LDPE filler. The model's slip + branch is about 3.5 times too soft, and its stick secant too stiff. +- **Direction of the error.** A slip branch that is too soft over-predicts the + curvature under a given moment in a global analysis. That is conservative + for curvature-driven quantities (armour stress ranges, fatigue from + curvature). It under-predicts the section moment at a given curvature, and + therefore the loads the section puts on interfaces: bend stiffeners, + hang-offs, and the contact and friction forces inside the section. Those are + **not** conservative. + +**Data that would settle it.** + +- **For the Zeidan test.** The raw time series (force, actuator displacement, + camera), the curvature method used for each plotted loop, the zeroing of the + force channel, and the construction of the metallic screen and the insulation + compound. The thesis cites two test reports for these (its references [6] and + [8]). +- **Or a new test.** A loop test on a compact, solid-filler three-core cable, + with the curvature measured from a deflection profile in a long + uniform-moment zone, the raw records published, and the insulation and + filler moduli measured at the test rate and temperature. + +### Model-to-model stick coefficient (row XI-FE) + +`validation/scripts/check_stick_support_fe.py` compares ξ for two armoured +verification tubes with the sectional stick coefficient of a three-dimensional +line-contact finite-element model. Both tubes have 40 round steel wires of 5 mm +at 15°; one has a hollow MDPE core, the other a copper core under MDPE. + +**The finite-element model.** + +- 8-node hexahedra; each wire's generators facing the core and the sheath are + node-based contact surfaces, with zero clearance. +- Full stick on the core face, frictionless sheath face. +- Rigid end plates, tension 40 kN. +- ξ is taken from the in-phase wire-tension amplitude at mid-length of a 2- or + 3-pitch tube, against the local curvature. +- The meshed wire is an octagon inscribed in the round wire (area factor + 0.900), so the comparison uses that area. + +The inputs are in `validation/paper_data/line_contact_tube_*.yaml` and +`line_contact_tube_stick.csv`. + +| Tube | FE | `"annulus"` | `"yun_stack"` (default) | +| --- | --- | --- | --- | +| hollow core | 0.198 | 0.207 (+4.3 %) | 0.405 (+104 %) | +| copper core | 0.540 | 0.588 (+8.8 %) | 0.572 (+5.9 %) | + +**Reading the table.** + +- **Hollow core.** The default takes the 20 mm core wall as a thin strip over a + rigid support. The hollow core instead shears as a beam: the mode-1 antiplane + compliance of the free-bore annulus, R(1+ρ²)/(G(1−ρ²)), is 3.3 times the + strip's t/G. +- **Copper core.** The polymer is a thin layer on a stiff body, and the two + supports agree. +- **Why the option stays opt-in.** It does not change any measured row's status + (G8 above). The default is unchanged. + ## Sævik (2011) FBG armour stresses (SV11-PLANE, SV11-GJ) Gap 2.5. The 8-inch non-bonded riser of Sævik (2011, diff --git a/doc/local_analysis_guide.md b/doc/local_analysis_guide.md index 55f7fc0..0b1fd05 100644 --- a/doc/local_analysis_guide.md +++ b/doc/local_analysis_guide.md @@ -97,6 +97,17 @@ verification gates and active limitations. Read it. validated. - The IEC three-core mutual-heating factor. (Transient heat transfer through the IEC 60287 ladder is available, Section 7.3.) +- The slip-branch bending stiffness of a compact, solid-filler three-core + cable (known limitation, gap G8; [benchmarks.md](benchmarks.md), "Known + limitation: slip-branch stiffness of compact sections"). + - On the one such measured cable, the model's slip tangent is about 3.5 + times softer than measured. + - On a cable with rope fillers, EI_min matches the measurement. + - A slip branch that is too soft over-predicts the curvature for a given + moment, which is conservative for curvature-driven quantities. It + under-predicts the section moment and the loads it puts on interfaces (bend + stiffener, hang-off, the contacts inside the section), which is not + conservative. ## 3. Installation @@ -844,6 +855,25 @@ for state in response.states: - `W_diss_J_per_m` is friction work over the whole supplied history, including conditioning cycles. For closed-cycle loss use `loop.work` and `cablexsec.analysis.curve_comparison.insert_cycle_crossings`. +- `stick_support` selects the model of the armour stick coefficient ξ. It is + accepted by `compute_mkappa`, `compute_stiffness`, `SectionLaw.from_cable` + and `xi_for_layer`. + - The default, `"yun_stack"`, is the series thin-layer stack of Yun et al. + (2020). + - `"annulus"` (opt-in) solves the shear of the layered polymer annulus + under the armour with its actual inner boundary: rigid at a helical layer + or laid cores, free at an empty bore, regular at the axis. It adds the + concentration of the load on each wire's width. + - On thin layers over a stiff support the two agree within a few per cent. + On a soft or hollow core, `"annulus"` is much softer, because the core + shears as a beam. + - On a hollow-core verification tube, `"annulus"` gives the sectional ξ of a + line-contact finite-element model within 4 %, where the default is about + twice too stiff (row XI-FE). + - The option changes the stick branch, `EI_max` and the slip onset, not + `EI_min`. It does not close gap G8. + - Other entry points, such as the fatigue path and the thermal section, + use the default. - The contact pressure is that of one contact state unless a history is given. `contact_tension_history_N` (one tension per curvature sample) sets the armour `P1+P2` of every sample through the contact model, the same diff --git a/src/cablexsec/analysis/beam_test.py b/src/cablexsec/analysis/beam_test.py index e084d0c..471ca53 100644 --- a/src/cablexsec/analysis/beam_test.py +++ b/src/cablexsec/analysis/beam_test.py @@ -93,6 +93,7 @@ from cablexsec.mechanics.progressive_friction import ProgressiveFriction from cablexsec.mechanics.radial_cable import CableRadialState from cablexsec.mechanics.section_state import SectionState +from cablexsec.mechanics.stiffness import require_stick_support from cablexsec.mechanics.strand_slip import ( CAP_SHAPES, CapShape, @@ -235,6 +236,7 @@ def from_cable( progressive: ProgressiveFriction | None = None, distributed_nodes_per_pitch: int | None = None, distributed_max_increment: float = SECTION_LAW_MAX_INCREMENT, + stick_support: str = "yun_stack", ) -> SectionLaw: """The :func:`~cablexsec.api.compute_mkappa` law of a cable. @@ -264,8 +266,13 @@ def from_cable( The law reads the cable's own materials (its ``materials:`` block) when it is built and every time it is evaluated, also outside a call of :func:`simulate_bending_test`. + + ``stick_support`` selects the armour stick-support model, as in + :func:`~cablexsec.api.compute_mkappa`: ``"yun_stack"`` by default, + ``"annulus"`` opt-in. """ require_fully_specified(cable, "SectionLaw.from_cable") + require_stick_support(stick_support) require_finite(tension_N, "tension_N") require_finite(phi_bend, "phi_bend") if friction_model not in ("direction_tied", "progressive", "distributed"): @@ -301,6 +308,7 @@ def from_cable( radial_state=radial_state, core_spec=resolve_core_friction(core_friction), progressive=settings, + stick_support=stick_support, ) ei_stick = sum(layer.EI_stick for layer in law.layers) + law.ei_min if law.core_model is not None: diff --git a/src/cablexsec/api.py b/src/cablexsec/api.py index 5e3a578..ef2df2d 100644 --- a/src/cablexsec/api.py +++ b/src/cablexsec/api.py @@ -208,6 +208,7 @@ shell_wall_stress, ) from cablexsec.mechanics.stiffness import ( + STICK_SUPPORTS, axial_torsional_matrix, bending_stiffness_by_layer, ea_fixed, @@ -382,7 +383,9 @@ def ei_shear_compliant_Nm2(self) -> float: return self.ei_max_Nm2 -def compute_stiffness(cable: CableData) -> StiffnessResult: +def compute_stiffness( + cable: CableData, *, stick_support: str = "yun_stack" +) -> StiffnessResult: r"""Cross-section axial/torsional/bending stiffness bounds for a cable. Assembles the axial-twist 2x2 reduction, individual bending, and @@ -396,6 +399,10 @@ def compute_stiffness(cable: CableData) -> StiffnessResult: ---------- cable : CableData A fully-specified cable. + stick_support : {"yun_stack", "annulus"}, optional + Stick-support model of ξ and so of `ei_max_Nm2` + (:func:~cablexsec.mechanics.stiffness.xi_for_layer); the default + is the series stack of [Yun2020], `"annulus"` is opt-in. Returns ------- @@ -419,8 +426,15 @@ def compute_stiffness(cable: CableData) -> StiffnessResult: True """ require_fully_specified(cable, "compute_stiffness") + if not isinstance(stick_support, str) or stick_support not in STICK_SUPPORTS: + raise CableSchemaError( + f"stick_support must be one of {STICK_SUPPORTS}, got {stick_support!r}" + ) at = axial_torsional_matrix(cable) - xi_map = {lyr.name: xi_for_layer(cable, lyr.name) for lyr in cable.helical_layers} + xi_map = { + lyr.name: xi_for_layer(cable, lyr.name, stick_support=stick_support) + for lyr in cable.helical_layers + } bending = bending_stiffness_by_layer(cable, xi_map) return StiffnessResult( cable_name=cable.cable.name, @@ -634,6 +648,7 @@ def _prepare_mkappa_law( radial_state: CableRadialState | None, core_spec: CoreFrictionSpec | None, progressive: ProgressiveFriction | None, + stick_support: str = "yun_stack", ) -> _MkappaLaw: """Layer specifications, full-slip stiffness and core model of the law.""" if core_spec is not None and contact_model == "solved" and radial_state is None: @@ -646,6 +661,7 @@ def _prepare_mkappa_law( contact_model=contact_model, section_state=section_state, radial_state=radial_state, + stick_support=stick_support, ) ei_min = ei_min_slip( cable, @@ -686,6 +702,7 @@ def compute_mkappa( friction_law: FrictionLaw | None = None, time_s: FloatArray | None = None, core_loads: CoreLoadMode = "follow", + stick_support: str = "yun_stack", ) -> MkappaResult: r"""Moment-curvature hysteresis of a cable over a curvature history. @@ -816,6 +833,15 @@ def compute_mkappa( slip scale of an exported law assumes; ``"reference"`` holds them at the first sample (the earlier behaviour). Without a tension history the loads are those of the reference state either way. + stick_support : {"yun_stack", "annulus"}, optional + Stick-support model of the armour stick coefficient ξ + (:func:`~cablexsec.mechanics.stiffness.xi_for_layer`). The default, + ``"yun_stack"``, is the series thin-layer stack of [Yun2020]. + ``"annulus"`` (opt-in) solves the shear of the layered polymer annulus + under the armour with its actual inner boundary. It matters for soft + or hollow cores, and moves ξ by a few per cent on thin layers over a + stiff support. It changes the stick branch, ``EI_max`` and the + slip-onset curvature, not ``EI_min``. Returns ------- @@ -856,6 +882,10 @@ def compute_mkappa( raise CableSchemaError( f"core_loads must be one of {CORE_LOAD_MODES}, got {core_loads!r}" ) + if not isinstance(stick_support, str) or stick_support not in STICK_SUPPORTS: + raise CableSchemaError( + f"stick_support must be one of {STICK_SUPPORTS}, got {stick_support!r}" + ) if mu is not None: require_finite(mu, "mu") if mu < 0.0: @@ -962,6 +992,7 @@ def compute_mkappa( radial_state=radial_state, core_spec=resolve_core_friction(core_friction), progressive=progressive_settings, + stick_support=stick_support, ) if tension_history is not None: # pressure only: the crossing loads (unused here) refuse some layer stacks diff --git a/src/cablexsec/cable_adapters.py b/src/cablexsec/cable_adapters.py index 0fde2d9..56f6b30 100644 --- a/src/cablexsec/cable_adapters.py +++ b/src/cablexsec/cable_adapters.py @@ -581,6 +581,7 @@ def cable_to_mkappa_specs( contact_model: str = "bounded", section_state: SectionState | None = None, radial_state: CableRadialState | None = None, + stick_support: str = "yun_stack", ) -> list[HelicalLayerSpec]: r"""Build frozen M-κ specs for a cable's structural armour layers. @@ -593,6 +594,9 @@ def cable_to_mkappa_specs( exploratory inner-foundation reaction is not used as an outer-face load. Independently prescribed distributions can be supplied to the lower-level HelicalLayerSpec, with their force balance and physical face specified. + ``stick_support`` selects the ξ model of + :func:`~cablexsec.mechanics.stiffness.xi_for_layer` (``"yun_stack"``, + the default, or the opt-in ``"annulus"``). Raises ------ @@ -642,6 +646,7 @@ def cable_to_mkappa_specs( youngs_modulus_Pa=section_state.youngs_modulus_Pa if section_state is not None else None, + stick_support=stick_support, ), mu=mu_eff, F_n_axi_N=fn_map[lyr.name], diff --git a/src/cablexsec/mechanics/stick_support.py b/src/cablexsec/mechanics/stick_support.py new file mode 100644 index 0000000..1e52402 --- /dev/null +++ b/src/cablexsec/mechanics/stick_support.py @@ -0,0 +1,146 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2026 Jae Hoon Seo, SMI Lab, Inha University +"""Support compliance of a stuck helical wire: layered annulus and contact strip. + +A stuck wire follows the plane-section strain of the body that supports it, +less the relative displacement taken up by the polymer between them. With a +per-wire, per-length stiffness ``K`` the stick coefficient is +``xi = K / (K + EA sin^2(alpha) / r^2)`` +(:func:`~cablexsec.mechanics.yun_coefficient.yun_xi`). + +[Yun2020] take ``K`` as thin-layer strips, ``1/K = sum t_i / (G_i b)``. +That form assumes a support that follows plane sections under the stack, and +local shear of a strip of the wire's width. + +This module supplies the ``"annulus"`` stick support of +:func:`~cablexsec.mechanics.stiffness.xi_for_layer`. On average along the +cable, the friction tractions of a stuck layer do not depend on the axial +position and vary as ``sin(phi)`` around it. The exact elastic response of a +layered annulus to that mode-1 axial surface traction is the antiplane field +``w = (A r + B / r) sin(phi)`` in each layer. Its term ``A r sin(phi)`` is +the transverse shear tilt of the supporting body. + +:func:`annulus_mode1_compliance` gives the surface compliance for three inner +boundaries: + +- a rigid support (``w = 0``): a helical layer or laid cores inside; +- a free bore (no shear stress on an empty inner surface); +- the axis (regular solution). + +For a thin layer on a rigid support it reduces to ``t / G``. A hollow polymer +core, which shears as a beam, is several times softer. + +The traction under each wire is concentrated on a strip of the wire's surface +width. :func:`strip_concentration_compliance` adds the ``k >= 1`` harmonics of +that periodic strip load on the layer under the wire. +""" + +from __future__ import annotations + +import math +from collections.abc import Sequence +from typing import Literal + +import numpy as np + +__all__ = [ + "SupportCondition", + "annulus_mode1_compliance", + "strip_concentration_compliance", +] + +SupportCondition = Literal["rigid", "bore", "axis"] + + +def _propagate( + w: float, sigma: float, r_a: float, r_b: float, g: float +) -> tuple[float, float]: + """Carry (w, sigma_rz) from ``r_a`` to ``r_b`` through one layer.""" + a = 0.5 * (w / r_a + sigma / g) + b = 0.5 * r_a * r_a * (w / r_a - sigma / g) + return a * r_b + b / r_b, g * (a - b / (r_b * r_b)) + + +def annulus_mode1_compliance( + layers: Sequence[tuple[float, float, float]], support: SupportCondition +) -> float: + """Surface compliance ``w(r_c) / tau_z`` [m/Pa] of a layered annulus. + + Parameters + ---------- + layers : sequence of (r_inner, r_outer, G) + Layers from the outside in: radii [m], shear modulus [Pa]. A radial + gap between consecutive layers is rigid: it keeps the displacement + and the shear flow ``sigma r``. + support : {"rigid", "bore", "axis"} + Inner boundary: ``w = 0``; zero shear stress; or regular at ``r = 0`` + (then the innermost layer must start at the axis). + + Returns + ------- + float + Axial surface displacement amplitude per unit axial traction + amplitude at the outer radius; ``0`` for an empty stack. + """ + if not layers: + return 0.0 + seq = list(reversed(layers)) + for r_in, r_out, g in seq: + if not (math.isfinite(r_in) and math.isfinite(r_out) and math.isfinite(g)): + raise ValueError("layer radii and shear modulus must be finite") + if r_out <= r_in or r_in < 0.0 or g <= 0.0: + raise ValueError("each layer needs 0 <= r_inner < r_outer and G > 0") + if support == "axis": + if seq[0][0] != 0.0: + raise ValueError("an axis support needs an innermost layer at r = 0") + w, sigma = seq[0][1], seq[0][2] # w = A r with A = 1 + r_prev = seq[0][1] + seq = seq[1:] + elif support == "rigid": + w, sigma, r_prev = 0.0, 1.0, seq[0][0] + elif support == "bore": + w, sigma, r_prev = 1.0, 0.0, seq[0][0] + else: + raise ValueError(f"unknown support condition {support!r}") + if support != "axis" and r_prev <= 0.0: + raise ValueError("a rigid or bore support needs an inner radius above zero") + for r_in, r_out, g in seq: + if r_in < r_prev: + raise ValueError("layers must not overlap") + if r_in > r_prev: + sigma *= r_prev / r_in + w, sigma = _propagate(w, sigma, r_in, r_out, g) + r_prev = r_out + return w / sigma + + +def strip_concentration_compliance( + spacing_m: float, + half_width_m: float, + thickness_m: float, + shear_modulus_Pa: float, +) -> float: + """Per-wire compliance [m^2/N] of the concentrated part of the contact load. + + Uniform traction on strips of half-width ``a`` at spacing ``w``, with the + displacement averaged over the strip, on a layer of thickness ``t`` over + a rigid base (antiplane): + ``(2 / (G w)) sum_k sinc^2(q_k a) tanh(q_k t) / q_k`` with + ``q_k = 2 pi k / w``. Zero for full coverage (``2 a >= w``). The mean + (``k = 0``) part is in :func:`annulus_mode1_compliance`. The sum runs to + ``k = max(4000, 200 w / a)`` (at most two million terms), where the strip + weight has fallen below ``1e-6`` of its first value. + """ + w, a, t, g = spacing_m, half_width_m, thickness_m, shear_modulus_Pa + if not all(math.isfinite(x) for x in (w, a, t, g)): + raise ValueError("strip inputs must be finite") + if w <= 0.0 or a <= 0.0 or t <= 0.0 or g <= 0.0: + raise ValueError("spacing, half-width, thickness and modulus must be positive") + if 2.0 * a >= w: + return 0.0 + kmax = int(min(2_000_000, max(4000, math.ceil(200.0 * w / a)))) + k = np.arange(1, kmax + 1, dtype=np.float64) + q = 2.0 * np.pi * k / w + weight = np.sinc(q * a / np.pi) ** 2 + total = float(np.sum(weight * np.tanh(q * t) / q)) + return 2.0 * total / (g * w) diff --git a/src/cablexsec/mechanics/stiffness.py b/src/cablexsec/mechanics/stiffness.py index bf84553..fcb5141 100644 --- a/src/cablexsec/mechanics/stiffness.py +++ b/src/cablexsec/mechanics/stiffness.py @@ -88,6 +88,8 @@ "ea_fixed", "ea_free", "load_sharing", + "STICK_SUPPORTS", + "require_stick_support", "xi_for_layer", "yun_shear_stack", "BendingStiffnessContribution", @@ -539,11 +541,87 @@ def yun_shear_stack( return tuple(stack) +STICK_SUPPORTS: tuple[str, ...] = ("yun_stack", "annulus") +"""Stick-support models of :func:`xi_for_layer`; ``"yun_stack"`` is the default.""" + + +def require_stick_support(stick_support: object) -> str: + """Return ``stick_support`` if it names a model of :data:`STICK_SUPPORTS`.""" + if not isinstance(stick_support, str) or stick_support not in STICK_SUPPORTS: + raise CableInputError( + f"stick_support must be one of {STICK_SUPPORTS}, got {stick_support!r}" + ) + return stick_support + + +def _stack_support(cable: CableData, layer_name: str, innermost: object) -> str: + """Inner boundary of the stack of :func:`yun_shear_stack`. + + ``"rigid"`` where the walk stops at a helical layer or at laid cores, + ``"axis"`` where its innermost layer reaches the cable axis, and + ``"bore"`` otherwise (an empty inner surface). + """ + names = [lyr.name for lyr in cable.layers] + for lyr in reversed(cable.layers[: names.index(layer_name)]): + if isinstance(lyr, HelicalLayer): + return "rigid" + if isinstance(lyr, CylindricalOffsetLayer) and not ( + lyr.n_cores == 1 and lyr.r_offset_m == 0.0 + ): + return "rigid" + assert isinstance(innermost, CylindricalLayer | CylindricalOffsetLayer) + return "axis" if (innermost.r_inner_m or 0.0) <= 0.0 else "bore" + + +def _annulus_support_stiffness( + cable: CableData, + layer: HelicalLayer, + stack: tuple[CylindricalLayer | CylindricalOffsetLayer, ...], + youngs_modulus_Pa: Mapping[str, float] | None, +) -> float: + """Per-wire stick-support stiffness of the ``"annulus"`` model [N/m²].""" + from cablexsec.mechanics.stick_support import ( # noqa: PLC0415 + annulus_mode1_compliance, + strip_concentration_compliance, + ) + + assert layer.lay_angle_rad is not None and layer.r_helix_m is not None + assert layer.n_wires is not None + rows: list[tuple[float, float, float]] = [] + local = 0.0 + for lyr in stack: + e = ( + youngs_modulus_Pa[lyr.name] + if youngs_modulus_Pa is not None + else _E(lyr.material) + ) + g = shear_modulus(e, library.get_property(lyr.material, "nu")) + r_in, r_out = lyr.r_inner_m or 0.0, lyr.r_outer_m or 0.0 + rows.append((r_in, r_out, g)) + local += (r_out - r_in) / g + support = _stack_support(cable, layer.name, stack[-1]) + c_axial = annulus_mode1_compliance(rows, support) # type: ignore[arg-type] + alpha = abs(layer.lay_angle_rad) + r_contact = rows[0][1] + alpha_c = math.atan(math.tan(alpha) * r_contact / layer.r_helix_m) + spacing = 2.0 * math.pi * r_contact * math.cos(alpha_c) / layer.n_wires + compliance = ( + math.cos(alpha) ** 2 * c_axial + math.sin(alpha) ** 2 * local + ) / spacing + strip_concentration_compliance( + spacing, + min(0.5 * layer.wire_surface_width_m, 0.5 * spacing), + rows[0][1] - rows[0][0], + rows[0][2], + ) + return math.inf if compliance <= 0.0 else 1.0 / compliance + + def xi_for_layer( cable: CableData, layer_name: str, *, youngs_modulus_Pa: Mapping[str, float] | None = None, + stick_support: str = "yun_stack", ) -> float: """Yun shear coefficient for a helical layer ([Yun2020]). @@ -573,7 +651,21 @@ def xi_for_layer( a support-compliance approximation, not a resolved shear solution of the section. ``youngs_modulus_Pa`` (keyed by layer name) replaces the library moduli of the wire and of the stack layers, for example at a temperature. + + ``stick_support="annulus"`` (opt-in) keeps the same stack and support but + replaces the series strips with the exact mode-1 antiplane shear of the + layered annulus (:mod:`cablexsec.mechanics.stick_support`). The support is + rigid where the walk stops at a helical layer or at laid cores, free at an + empty bore and regular at the axis. The traction is spread over the wire + spacing, plus the concentration of the load on the wire's own width. For a + thin layer on a rigid support it agrees with the default to within the + ratio of the wire width to the spacing. For a soft or hollow core it is + much softer, because the core shears as a beam. On a hollow-core armoured + tube it reproduces the sectional stick coefficient of a line-contact + finite-element model within 4 %, where the default is about twice too + stiff (doc/benchmarks.md, row XI-FE). """ + require_stick_support(stick_support) layer = cable.get_layer(layer_name) assert isinstance(layer, HelicalLayer) assert ( @@ -582,6 +674,24 @@ def xi_for_layer( and layer.r_helix_m is not None and layer.lay_angle_rad is not None ) + if stick_support == "annulus": + annulus_stack = yun_shear_stack(cable, layer_name) + if not annulus_stack: + return 1.0 + e_wire = ( + youngs_modulus_Pa[layer.name] + if youngs_modulus_Pa is not None + else _E(layer.material) + ) + k_support = _annulus_support_stiffness( + cable, layer, annulus_stack, youngs_modulus_Pa + ) + return yun_xi( + k_support, + e_wire * _wire_area(layer), + layer.lay_angle_rad, + layer.r_helix_m, + ) b = layer.wire_surface_width_m stack: list[tuple[float, float, float]] = [] for lyr in yun_shear_stack(cable, layer_name): diff --git a/tests/test_stick_support.py b/tests/test_stick_support.py new file mode 100644 index 0000000..dfbcf9d --- /dev/null +++ b/tests/test_stick_support.py @@ -0,0 +1,188 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2026 Jae Hoon Seo, SMI Lab, Inha University +"""Opt-in ``"annulus"`` stick support of the armour stick coefficient ξ. + +Closed-form limits of the layered-annulus compliance and of the strip +concentration; an independent finite-difference solution of a two-layer +annulus; the default (``"yun_stack"``) unchanged bit for bit through every +entry point; refusal of an unknown model; and the model-to-model row XI-FE. +""" + +from __future__ import annotations + +import math + +import numpy as np +import pytest + +import cablexsec as cx +from cablexsec.analysis.beam_test import SectionLaw +from cablexsec.cables.schema import CableData +from cablexsec.exceptions import CableInputError, CableSchemaError +from cablexsec.mechanics.stick_support import ( + annulus_mode1_compliance, + strip_concentration_compliance, +) +from cablexsec.mechanics.stiffness import STICK_SUPPORTS, xi_for_layer + +G = 3.0e8 + + +@pytest.mark.analytical_sanity +def test_thin_layer_on_a_rigid_support_is_the_strip_compliance() -> None: + radius, thickness = 0.05, 0.001 + c = annulus_mode1_compliance([(radius - thickness, radius, G)], "rigid") + assert c * G / thickness == pytest.approx(1.0, abs=2.0 * thickness / radius) + + +@pytest.mark.analytical_sanity +def test_solid_and_hollow_cores_have_their_closed_forms() -> None: + radius, rho = 0.04, 0.5 + assert annulus_mode1_compliance([(0.0, radius, G)], "axis") == pytest.approx( + radius / G, rel=1e-14 + ) + hollow = annulus_mode1_compliance([(rho * radius, radius, G)], "bore") + assert hollow == pytest.approx( + radius * (1 + rho**2) / (G * (1 - rho**2)), rel=1e-14 + ) + # The free bore is several times softer than a thin strip of the same wall. + assert hollow * G / (radius - rho * radius) > 3.0 + + +def _finite_difference( + layers: list[tuple[float, float, float]], support: str, n: int = 1201 +) -> float: + """Mode-1 antiplane annulus (r G w')' - G w / r = 0, unit outer traction.""" + r_in, r_out = layers[-1][0], layers[0][1] + r = np.linspace(r_in, r_out, n) + h = r[1] - r[0] + mid = 0.5 * (r[1:] + r[:-1]) + + def modulus(x: np.ndarray) -> np.ndarray: + g = np.empty_like(x) + for a, b, gi in layers: + g[(x >= a) & (x <= b)] = gi + return g + + g_mid, g_node = modulus(mid), modulus(r) + a = np.zeros((n, n)) + rhs = np.zeros(n) + for i in range(1, n - 1): + a[i, i - 1] = mid[i - 1] * g_mid[i - 1] / h**2 + a[i, i + 1] = mid[i] * g_mid[i] / h**2 + a[i, i] = -(a[i, i - 1] + a[i, i + 1]) - g_node[i] / r[i] + if support == "rigid": + a[0, 0] = 1.0 + else: + a[0, 0], a[0, 1] = -1.0, 1.0 + a[-1, -2], a[-1, -1] = -g_mid[-1] / h, g_mid[-1] / h + rhs[-1] = 1.0 + return float(np.linalg.solve(a, rhs)[-1]) + + +@pytest.mark.independent_method +@pytest.mark.parametrize("support", ["rigid", "bore"]) +def test_two_layer_annulus_matches_finite_differences(support: str) -> None: + layers = [(0.030, 0.040, 1.0e8), (0.020, 0.030, 2.0e9)] + exact = annulus_mode1_compliance(layers, support) # type: ignore[arg-type] + assert _finite_difference(layers, support) == pytest.approx(exact, rel=1e-3) + + +@pytest.mark.analytical_sanity +def test_strip_concentration_limits() -> None: + spacing = 0.006 + # Full coverage: no concentration. + assert strip_concentration_compliance(spacing, spacing / 2, 0.01, G) == 0.0 + # Thin layer (t << a): mean plus concentration is the strip of the contact + # width, t / (2 a G) (Parseval). + half, t = 0.0015, 1.0e-5 + total = t / (G * spacing) + strip_concentration_compliance(spacing, half, t, G) + assert total == pytest.approx(t / (2 * half * G), rel=5e-3) + # Half-space line load: the compliance grows by ln(10) / (pi G) per decade + # of contact width. + wide = strip_concentration_compliance(spacing, 1e-4, 1.0, G) + narrow = strip_concentration_compliance(spacing, 1e-5, 1.0, G) + assert (narrow - wide) * math.pi * G == pytest.approx(math.log(10.0), rel=1e-3) + + +@pytest.mark.analytical_sanity +def test_support_inputs_are_refused() -> None: + with pytest.raises(ValueError, match="axis"): + annulus_mode1_compliance([(0.01, 0.02, G)], "axis") + with pytest.raises(ValueError, match="r_inner"): + annulus_mode1_compliance([(0.02, 0.01, G)], "rigid") + with pytest.raises(ValueError, match="unknown"): + annulus_mode1_compliance([(0.01, 0.02, G)], "clamped") # type: ignore[arg-type] + with pytest.raises(ValueError, match="positive"): + strip_concentration_compliance(0.006, 0.0, 0.01, G) + + +def _menard() -> CableData: + return cx.load_cable(cx.menard2023_yaml_path(), geometry_override=None) + + +@pytest.mark.analytical_sanity +def test_default_is_the_yun_stack_bit_for_bit() -> None: + cable = _menard() + kappa = 0.05 * np.sin(np.linspace(0.0, 4.0 * np.pi, 240)) + for layer in cable.helical_layers: + assert xi_for_layer(cable, layer.name) == xi_for_layer( + cable, layer.name, stick_support="yun_stack" + ) + a = cx.compute_mkappa(cable, kappa) + b = cx.compute_mkappa(cable, kappa, stick_support="yun_stack") + assert np.array_equal(a.moment_Nm, b.moment_Nm) + assert a.EI_max_Nm2 == b.EI_max_Nm2 + assert ( + cx.compute_stiffness(cable).ei_max_Nm2 + == cx.compute_stiffness(cable, stick_support="yun_stack").ei_max_Nm2 + ) + assert ( + SectionLaw.from_cable(cable).ei_stick_Nm2 + == SectionLaw.from_cable(cable, stick_support="yun_stack").ei_stick_Nm2 + ) + + +@pytest.mark.analytical_sanity +def test_annulus_is_close_to_the_stack_on_thin_layers_over_a_stiff_support() -> None: + cable = _menard() # sheath and bedding over laid cores and the inner armour + for layer in cable.helical_layers: + yun = xi_for_layer(cable, layer.name) + annulus = xi_for_layer(cable, layer.name, stick_support="annulus") + assert annulus == pytest.approx(yun, rel=0.02) + kappa = 0.05 * np.sin(np.linspace(0.0, 4.0 * np.pi, 240)) + a = cx.compute_mkappa(cable, kappa, stick_support="annulus") + b = SectionLaw.from_cable(cable, stick_support="annulus") + assert a.EI_max_Nm2 == pytest.approx(b.ei_stick_Nm2, rel=1e-12) + assert a.EI_min_Nm2 == cx.compute_mkappa(cable, kappa).EI_min_Nm2 + + +@pytest.mark.analytical_sanity +def test_unknown_stick_support_is_refused_everywhere() -> None: + cable = _menard() + kappa = np.array([0.0, 0.01]) + layer = cable.helical_layers[0].name + assert STICK_SUPPORTS == ("yun_stack", "annulus") + with pytest.raises(CableInputError, match="stick_support"): + xi_for_layer(cable, layer, stick_support="series") + with pytest.raises(CableSchemaError, match="stick_support"): + cx.compute_mkappa(cable, kappa, stick_support="series") + with pytest.raises(CableSchemaError, match="stick_support"): + cx.compute_stiffness(cable, stick_support="series") + with pytest.raises(CableInputError, match="stick_support"): + SectionLaw.from_cable(cable, stick_support="series") + + +@pytest.mark.independent_method +def test_line_contact_tube_row() -> None: + import check_stick_support_fe as fe + + rows = fe.stick_comparison() + hollow, copper = rows["hollow"], rows["copper"] + # Hollow core: the annulus support follows the core's shear; the series + # stack takes the wall as a thin strip on a rigid support. + assert abs(hollow["annulus_error"]) < 0.06 + assert hollow["yun_stack_error"] > 0.9 + # Copper core: a thin layer on a stiff support, both within 10 %. + assert abs(copper["annulus_error"]) < 0.10 + assert abs(copper["yun_stack_error"]) < 0.10 diff --git a/validation/README.md b/validation/README.md index 466d8b1..545939b 100644 --- a/validation/README.md +++ b/validation/README.md @@ -38,6 +38,7 @@ registered measured comparisons listed in [`VALIDATION.md`](../VALIDATION.md#sum | `check_saevik2011.py` | Sævik (2011) and Gjøsteen et al. (2027) FBG armour-stress comparison (SV11 rows) | | `check_core_friction.py` | Laid-core friction checks and published comparisons | | `check_g8_gradual_reversal.py` | Gradual stick-to-slip transition against Witz, Hu et al. and Ménard | +| `check_stick_support_fe.py` | Armour stick coefficient of two verification tubes against a line-contact finite-element model, default and opt-in stick support (XI-FE) | | `check_t1_test_arrangement.py` | Benchmarks in their published test arrangements (three-point, four-point) | | `check_out_von_morgen.py` | Frictionless slip bounds of Out and von Morgen (1997) and Out (1989) | | `check_conductor_strand_slip.py` | Conductor strand slip and the Hu et al. (2022) conductor loop | diff --git a/validation/paper_data/README.md b/validation/paper_data/README.md index af1012c..1e2c634 100644 --- a/validation/paper_data/README.md +++ b/validation/paper_data/README.md @@ -36,6 +36,12 @@ published cable of Ménard and Cartraud (2023), bundled as | `zeidan2026_fig18_deflection.csv` | Zeidan et al., IJSS 338 (2026) 114089, Fig. 18: deflection along the half span at the four amplitudes, read from the native raster | which displacement the 30–60 mm denote; central curvature (doc/benchmarks.md) | | `revision2_digitisation_bounds.json` | Half-widths of the digitisation of the Ménard ranges | sensitivity of the bending comparison to digitisation | +## Model-to-model references + +| Files | Source | Used by | +|---|---|---| +| `line_contact_tube_hollow.yaml`, `line_contact_tube_copper.yaml`, `line_contact_tube_stick.csv` | Two armoured verification tubes (not real cables). The CSV gives the sectional stick coefficient of a three-dimensional line-contact finite-element model of each tube; its header states the model, the loading and how the value is extracted. | XI-FE row; `validation/scripts/check_stick_support_fe.py`; `tests/test_stick_support.py` | + ## Calculations on the published cable | Files | Content | diff --git a/validation/paper_data/line_contact_tube_copper.yaml b/validation/paper_data/line_contact_tube_copper.yaml new file mode 100644 index 0000000..6db67b9 --- /dev/null +++ b/validation/paper_data/line_contact_tube_copper.yaml @@ -0,0 +1,48 @@ +--- +# SPDX-License-Identifier: Apache-2.0 +# Armoured tube of the model-to-model stick-coefficient row XI-FE with an axially stiff core: a copper tube +# under an MDPE layer, armour and sheath as line_contact_tube_hollow.yaml. A verification geometry, not a +# real cable. +cable: + name: "Line-contact verification tube, copper core" + description: "Copper tube 10-30 mm, MDPE 30-40 mm, 40 steel wires of 5 mm at 15 deg, HDPE sheath 45-50 mm" + manufacturer: "Verification geometry" + source_document: "CableXSec row XI-FE (model to model)" + +initial_state: + external_pressure_Pa: 0.30e6 + identification: assumed_bound + bounds_Pa: [0.0, 0.48e6] + source: "Verification geometry; the stick coefficient does not depend on the clamping" + +layers: + - name: copper_tube + layer_type: cylindrical + material: copper_janocha2024 + r_inner_m: 0.010 + r_outer_m: 0.030 + source: "verification geometry" + + - name: core_tube + layer_type: cylindrical + material: mdpe_janocha2024 + r_inner_m: 0.030 + r_outer_m: 0.040 + source: "verification geometry" + + - name: armour + layer_type: helical + material: steel_janocha2024 + n_wires: 40 + d_wire_m: 0.005 + r_helix_m: 0.0425 + lay_angle_deg: 15.0 + lay_direction: left_hand + source: "verification geometry" + + - name: sheath + layer_type: cylindrical + material: hdpe_janocha2024 + r_inner_m: 0.045 + r_outer_m: 0.050 + source: "verification geometry" diff --git a/validation/paper_data/line_contact_tube_hollow.yaml b/validation/paper_data/line_contact_tube_hollow.yaml new file mode 100644 index 0000000..b91b14a --- /dev/null +++ b/validation/paper_data/line_contact_tube_hollow.yaml @@ -0,0 +1,42 @@ +--- +# SPDX-License-Identifier: Apache-2.0 +# Armoured tube of the model-to-model stick-coefficient row XI-FE: one layer of round steel wires between a +# hollow MDPE core and an HDPE sheath. A verification geometry, not a real cable. The same geometry and +# moduli are meshed in the three-dimensional line-contact finite-element model of the row +# (line_contact_tube_stick.csv). +cable: + name: "Line-contact verification tube, hollow core" + description: "Hollow MDPE core 20-40 mm, 40 steel wires of 5 mm at 15 deg, HDPE sheath 45-50 mm" + manufacturer: "Verification geometry" + source_document: "CableXSec row XI-FE (model to model)" + +initial_state: + external_pressure_Pa: 0.30e6 + identification: assumed_bound + bounds_Pa: [0.0, 0.48e6] + source: "Verification geometry; the stick coefficient does not depend on the clamping" + +layers: + - name: core_tube + layer_type: cylindrical + material: mdpe_janocha2024 + r_inner_m: 0.020 + r_outer_m: 0.040 + source: "verification geometry" + + - name: armour + layer_type: helical + material: steel_janocha2024 + n_wires: 40 + d_wire_m: 0.005 + r_helix_m: 0.0425 + lay_angle_deg: 15.0 + lay_direction: left_hand + source: "verification geometry" + + - name: sheath + layer_type: cylindrical + material: hdpe_janocha2024 + r_inner_m: 0.045 + r_outer_m: 0.050 + source: "verification geometry" diff --git a/validation/paper_data/line_contact_tube_stick.csv b/validation/paper_data/line_contact_tube_stick.csv new file mode 100644 index 0000000..90244cd --- /dev/null +++ b/validation/paper_data/line_contact_tube_stick.csv @@ -0,0 +1,11 @@ +# Sectional stick coefficient of the verification tubes in a three-dimensional line-contact finite-element model +# (row XI-FE, model to model). 8-node hexahedra with incompatible modes; each wire's generators facing the core +# and the sheath are node-based contact surfaces on the polymer (zero clearance); Coulomb 5 on the core face +# (full stick at the applied curvature), frictionless sheath face; tension 40 kN, external pressure 0.30 MPa; +# rigid end plates; one quarter cycle to 0.015 1/m. The value is the in-phase wire-tension amplitude at the +# middle element layer divided by E A_w R cos^2(alpha) kappa, with kappa the local curvature from the core +# section rotations and A_w the meshed wire section, an octagon inscribed in the round wire (area_factor of +# pi d^2 / 4). Mesh: 100 element layers per pitch, 80 elements around the core. +case,yaml,pitches,xi_fe,area_factor,fit_rms_over_amplitude +hollow,line_contact_tube_hollow.yaml,3,0.19819,0.90032,0.00017 +copper,line_contact_tube_copper.yaml,2,0.54042,0.90032,0.0041 diff --git a/validation/scripts/check_stick_support_fe.py b/validation/scripts/check_stick_support_fe.py new file mode 100644 index 0000000..4bda014 --- /dev/null +++ b/validation/scripts/check_stick_support_fe.py @@ -0,0 +1,73 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2026 Jae Hoon Seo, SMI Lab, Inha University +"""Stick coefficient of two armoured verification tubes against a line-contact FE model (row XI-FE). + +Model to model. The reference is the sectional stick coefficient of a three-dimensional line-contact +finite-element model of each tube (``validation/paper_data/line_contact_tube_stick.csv``; the header of +that file states the model and how the value is extracted). CableXSec's ξ is evaluated with both stick +supports of :func:`~cablexsec.mechanics.stiffness.xi_for_layer`: the default series stack +(``"yun_stack"``) and the opt-in ``"annulus"``. The finite-element wire section is an octagon inscribed +in the round wire, so the comparison uses the meshed wire area: the wire modulus is scaled by the area +factor, which scales E A_w and leaves the support unchanged. + +Usage: ``python validation/scripts/check_stick_support_fe.py``. +""" + +from __future__ import annotations + +import csv +from pathlib import Path + +import cablexsec as cx +from cablexsec.materials import library +from cablexsec.mechanics.stiffness import xi_for_layer + +DATA = Path(__file__).resolve().parents[1] / "paper_data" +ARMOUR = "armour" + + +def _cases() -> list[dict[str, str]]: + with (DATA / "line_contact_tube_stick.csv").open(encoding="utf-8") as handle: + rows = [line for line in handle if not line.startswith("#")] + return list(csv.DictReader(rows)) + + +def stick_comparison() -> dict[str, dict[str, float]]: + """ξ of the finite-element model and of both stick supports, per tube.""" + out: dict[str, dict[str, float]] = {} + for case in _cases(): + cable = cx.load_cable(DATA / case["yaml"], geometry_override=None) + with cable.material_scope(): + moduli = { + layer.name: library.get_property(layer.material, "E_Pa") + for layer in cable.layers + } + moduli[ARMOUR] *= float(case["area_factor"]) + values = { + model: xi_for_layer( + cable, ARMOUR, youngs_modulus_Pa=moduli, stick_support=model + ) + for model in ("yun_stack", "annulus") + } + xi_fe = float(case["xi_fe"]) + out[case["case"]] = { + "xi_fe": xi_fe, + "yun_stack": values["yun_stack"], + "annulus": values["annulus"], + "yun_stack_error": values["yun_stack"] / xi_fe - 1.0, + "annulus_error": values["annulus"] / xi_fe - 1.0, + } + return out + + +def main() -> None: + for name, row in stick_comparison().items(): + print( + f"{name:8s} FE {row['xi_fe']:.4f} annulus {row['annulus']:.4f} " + f"({100 * row['annulus_error']:+.1f} %) Yun stack {row['yun_stack']:.4f} " + f"({100 * row['yun_stack_error']:+.1f} %)" + ) + + +if __name__ == "__main__": + main() diff --git a/validation/scripts/run_validation.py b/validation/scripts/run_validation.py index 5e9062c..ab7e062 100644 --- a/validation/scripts/run_validation.py +++ b/validation/scripts/run_validation.py @@ -727,6 +727,38 @@ def pair(model: str) -> str: ] +def _stick_fe_rows() -> list[Row]: + """XI-FE (stated, model to model): the armour stick coefficient of two + verification tubes against a line-contact finite-element model, with the + default and the opt-in stick support. scripts/check_stick_support_fe.py.""" + import check_stick_support_fe as fe # noqa: PLC0415 + + c = fe.stick_comparison() + + def case(name: str, label: str) -> str: + r = c[name] + return ( + f"{label}: FE {r['xi_fe']:.3f}; annulus {r['annulus']:.3f} " + f"({100 * r['annulus_error']:+.1f}%); Yun stack {r['yun_stack']:.3f} " + f"({100 * r['yun_stack_error']:+.1f}%)" + ) + + return [ + Row( + "2", + "XI-FE", + "Armour stick coefficient xi of two armoured verification tubes " + "(hollow MDPE core; copper core under MDPE) against the sectional " + "value of a three-dimensional line-contact finite-element model, " + "default (yun_stack) and opt-in (annulus) stick support, meshed " + "wire area", + "stated, not gated (model to model)", + f"{case('hollow', 'hollow core')}; {case('copper', 'copper core')}", + "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. @@ -2167,6 +2199,7 @@ def _comp_row(tier: str, ident: str, quantity: str, keys: tuple[str, ...]) -> Ro rows.extend(_anchored_wire_fe_rows()) rows.extend(_dai2020_rows()) rows.extend(_dai2018_rows()) + rows.extend(_stick_fe_rows()) theta_bm5 = _bm5_conductor_temperature() # paper tabulated network, λ1' only rows.append( diff --git a/validation/validation_report.md b/validation/validation_report.md index c2ccc65..1f923fa 100644 --- a/validation/validation_report.md +++ b/validation/validation_report.md @@ -75,13 +75,14 @@ Every row is computed from published data or closed-form references in this repo | 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 | | 2 | DAI18-T3 | Dai et al. (2018) Test 3 (4 MPa, groove track, 0.01-0.2 Hz) vs the rate-independent spring-slider with the 0.01 Hz peak and level | stated, not gated | dynamic level vs 0.01 Hz -3.5, -2.4, +0.3% at 0.05/0.1/0.2 Hz (model 0); static peak +10.6% at 0.2 Hz (model 0: no rate term on mu_s); 0.2 Hz peak error -7.9/-11.4%; work -5.4 to -0.9% | INFO | +| 2 | XI-FE | Armour stick coefficient xi of two armoured verification tubes (hollow MDPE core; copper core under MDPE) against the sectional value of a three-dimensional line-contact finite-element model, default (yun_stack) and opt-in (annulus) stick support, meshed wire area | stated, not gated (model to model) | hollow core: FE 0.198; annulus 0.207 (+4.3%); Yun stack 0.405 (+104.4%); copper core: FE 0.540; annulus 0.588 (+8.8%); Yun stack 0.572 (+5.9%) | INFO | | 2 | BM5 | CIGRE TB880 conductor temp (cited Poradowski tabulated T-network, λ1') | ≤ 90 °C, ~5 K low | 84.4 °C (FEM 89.62 / IEC 90; λ1″ closes residual). NOT yet from compute_thermal(cable) — three-core geometric factor pending IEC 60287-2-1 (not yet implemented) | PARTIAL (cited network; λ1″ + 3-core factor gated) | | 2 | BM4 | Saevik-Bruaseth EA population; no-radial-interaction bound | mean model/measured < 1.25 | mean ratio about 1.45; U1 > 2.0 | NOT VALIDATED (negative finding; radial interaction missing) | ## Test taxonomy (full gate suite) -- analytical_sanity: `1248 passed` -- independent_method: `77 passed` +- analytical_sanity: `1255 passed` +- independent_method: `80 passed` - full_scale: `59 passed` Run `pytest -m ` to reproduce each group. From cd0cf10598cb126f3ce52226cb73c509e9c91d4e Mon Sep 17 00:00:00 2001 From: Jae Hoon Seo Date: Fri, 20 Nov 2026 22:37:18 +0900 Subject: [PATCH 2/6] docs: known-limitation table quotes the re-gated BM1-loop MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Ménard entry of the G8 known-limitation table now gives BM1-loop as re-gated in #51 (clamping identified on range (a), range (b) work -28.8 %) beside BM1-ID. Signed-off-by: Jae Hoon Seo --- doc/benchmarks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/benchmarks.md b/doc/benchmarks.md index 26e66d2..d8188fc 100644 --- a/doc/benchmarks.md +++ b/doc/benchmarks.md @@ -1567,7 +1567,7 @@ held-out rows chosen in advance. No band, target or source input was changed. | Z-ID (Zeidan 2025, four-point, reading R2) | slip tangent (ascending branch, 0 to 0.8 of the amplitude) 8.65–9.70 kN·m²; stick secant 113–143 kN·m² (plotted curvature) | slip tangent 2.50–2.59 kN·m²; stick secant 215 kN·m²; moment range −33 to −46 % at the identified initial pressure of 760 kPa | | WITZ-ID, G8-W1, G8-W3 (Witz 1996, 300 bar) | width 1990–2164 N·m; energy/width 1.44–1.57 1/m | width 1356 N·m; energy/width 2.01 1/m (energy −12.8 %, inside its band) | | HU-3PB (Hu et al. 2022, conductor) | loop area 3.185 N·m/m | +36.7 % (Papailiou cap), +64.4 % (Karlsen–Husøy amplitude) | -| BM1-loop, BM1-ID (Ménard and Cartraud 2023) | loops at one clamping | work +11.8 % at ±0.10 1/m after the published calibration; with the initial pressure identified on range (b), ranges (a) and (c) +28.5 % and +26.2 % | +| BM1-loop, BM1-ID (Ménard and Cartraud 2023) | loops at one clamping | BM1-loop: clamping identified on range (a), range (b) work −28.8 % and ordered RMSE 5.45 %; BM1-ID: clamping identified on range (b), ranges (a) and (c) work +28.5 % and +26.2 %. No single clamping fits both the small and the large ranges. | **Mechanisms tested, and why each was ruled out.** From eed2252e23547b2395a7a115eac1523f86c11fcd Mon Sep 17 00:00:00 2001 From: Jae Hoon Seo Date: Fri, 20 Nov 2026 23:21:00 +0900 Subject: [PATCH 3/6] fix: the annulus support takes a free bore only where nothing lies inside The stack walk skips layers without an isotropic modulus, shells and fillers. A skipped body inside the innermost stack layer now keeps the plane-section (rigid) support of the default model, instead of being treated as an empty bore. A geometry the annulus solution refuses raises CableInputError. New test: a modulus-free layer filling the bore of the hollow verification tube. Signed-off-by: Jae Hoon Seo --- src/cablexsec/mechanics/stiffness.py | 58 ++++++++++++++++++++-------- tests/test_stick_support.py | 29 ++++++++++++++ validation/validation_report.md | 2 +- 3 files changed, 71 insertions(+), 18 deletions(-) diff --git a/src/cablexsec/mechanics/stiffness.py b/src/cablexsec/mechanics/stiffness.py index fcb5141..70ba253 100644 --- a/src/cablexsec/mechanics/stiffness.py +++ b/src/cablexsec/mechanics/stiffness.py @@ -554,23 +554,42 @@ def require_stick_support(stick_support: object) -> str: return stick_support -def _stack_support(cable: CableData, layer_name: str, innermost: object) -> str: +def _stack_support( + cable: CableData, + layer_name: str, + stack: tuple[CylindricalLayer | CylindricalOffsetLayer, ...], +) -> str: """Inner boundary of the stack of :func:`yun_shear_stack`. - ``"rigid"`` where the walk stops at a helical layer or at laid cores, - ``"axis"`` where its innermost layer reaches the cable axis, and - ``"bore"`` otherwise (an empty inner surface). + ``"rigid"`` where the walk stops at a helical layer or at laid cores, or + where a layer the stack skips (no isotropic modulus, a shell, a filler) + lies inside it; ``"axis"`` where its innermost layer reaches the cable + axis; ``"bore"`` only where nothing lies inside the innermost layer (an + empty inner surface). """ names = [lyr.name for lyr in cable.layers] - for lyr in reversed(cable.layers[: names.index(layer_name)]): + inside = cable.layers[: names.index(layer_name)] + for lyr in reversed(inside): if isinstance(lyr, HelicalLayer): return "rigid" if isinstance(lyr, CylindricalOffsetLayer) and not ( lyr.n_cores == 1 and lyr.r_offset_m == 0.0 ): return "rigid" - assert isinstance(innermost, CylindricalLayer | CylindricalOffsetLayer) - return "axis" if (innermost.r_inner_m or 0.0) <= 0.0 else "bore" + innermost = stack[-1] + r_bore = innermost.r_inner_m or 0.0 + if r_bore <= 0.0: + return "axis" + in_stack = {lyr.name for lyr in stack} + if any( + lyr.name not in in_stack + and (getattr(lyr, "r_outer_m", None) or 0.0) <= r_bore * (1.0 + 1e-9) + for lyr in inside + ): + # A skipped body inside the stack: keep the plane-section support of + # the default model rather than assume a free bore. + return "rigid" + return "bore" def _annulus_support_stiffness( @@ -599,20 +618,25 @@ def _annulus_support_stiffness( r_in, r_out = lyr.r_inner_m or 0.0, lyr.r_outer_m or 0.0 rows.append((r_in, r_out, g)) local += (r_out - r_in) / g - support = _stack_support(cable, layer.name, stack[-1]) - c_axial = annulus_mode1_compliance(rows, support) # type: ignore[arg-type] + support = _stack_support(cable, layer.name, stack) alpha = abs(layer.lay_angle_rad) r_contact = rows[0][1] alpha_c = math.atan(math.tan(alpha) * r_contact / layer.r_helix_m) spacing = 2.0 * math.pi * r_contact * math.cos(alpha_c) / layer.n_wires - compliance = ( - math.cos(alpha) ** 2 * c_axial + math.sin(alpha) ** 2 * local - ) / spacing + strip_concentration_compliance( - spacing, - min(0.5 * layer.wire_surface_width_m, 0.5 * spacing), - rows[0][1] - rows[0][0], - rows[0][2], - ) + try: + c_axial = annulus_mode1_compliance(rows, support) # type: ignore[arg-type] + compliance = ( + math.cos(alpha) ** 2 * c_axial + math.sin(alpha) ** 2 * local + ) / spacing + strip_concentration_compliance( + spacing, + min(0.5 * layer.wire_surface_width_m, 0.5 * spacing), + rows[0][1] - rows[0][0], + rows[0][2], + ) + except ValueError as error: + raise CableInputError( + f"{layer.name}: the annulus stick support cannot be evaluated: {error}" + ) from error return math.inf if compliance <= 0.0 else 1.0 / compliance diff --git a/tests/test_stick_support.py b/tests/test_stick_support.py index dfbcf9d..f95ccd6 100644 --- a/tests/test_stick_support.py +++ b/tests/test_stick_support.py @@ -11,6 +11,7 @@ from __future__ import annotations import math +from pathlib import Path import numpy as np import pytest @@ -173,6 +174,34 @@ def test_unknown_stick_support_is_refused_everywhere() -> None: SectionLaw.from_cable(cable, stick_support="series") +@pytest.mark.analytical_sanity +def test_free_bore_only_where_nothing_lies_inside(tmp_path: Path) -> None: + import check_stick_support_fe as fe + + source = fe.DATA / "line_contact_tube_hollow.yaml" + hollow = cx.load_cable(source, geometry_override=None) + # A layer without an isotropic modulus fills the bore: the stack skips + # it, and the support is then kept rigid (as in the default model), not + # treated as a free bore. + text = source.read_text(encoding="utf-8").replace( + "layers:\n", + "materials:\n yarn_probe:\n description: yarn without a modulus\n" + " rho_kg_m3: {value: 500.0, source: test}\n\nlayers:\n" + " - name: bore_yarn\n layer_type: cylindrical\n material: yarn_probe\n" + " r_inner_m: 0.0\n r_outer_m: 0.020\n source: test\n\n", + 1, + ) + path = tmp_path / "filled_bore.yaml" + path.write_text(text, encoding="utf-8") + filled = cx.load_cable(path, geometry_override=None) + free = xi_for_layer(hollow, "armour", stick_support="annulus") + with filled.material_scope(): + supported = xi_for_layer(filled, "armour", stick_support="annulus") + series = xi_for_layer(filled, "armour") + assert free < 0.6 * supported + assert supported == pytest.approx(series, rel=0.05) + + @pytest.mark.independent_method def test_line_contact_tube_row() -> None: import check_stick_support_fe as fe diff --git a/validation/validation_report.md b/validation/validation_report.md index 7ca187d..506ee64 100644 --- a/validation/validation_report.md +++ b/validation/validation_report.md @@ -79,7 +79,7 @@ Every row is computed from published data or closed-form references in this repo ## Test taxonomy (full gate suite) -- analytical_sanity: `1255 passed` +- analytical_sanity: `1256 passed` - independent_method: `80 passed` - full_scale: `59 passed` From 6384deec265863299a30eb8ff24fdb958243361c Mon Sep 17 00:00:00 2001 From: Jae Hoon Seo Date: Sat, 21 Nov 2026 00:29:22 +0900 Subject: [PATCH 4/6] docs: the line-contact FE comparison is withheld for now The stated row XI-FE, its verification-tube inputs and finite-element results, check_stick_support_fe.py and their test are removed: the reference model is not published. The documentation states only that the support compliance was checked against an independent model of two verification tubes, without numbers. The opt-in annulus stick support and its closed-form verification stay; the hollow-core support test uses an inline tube geometry. Signed-off-by: Jae Hoon Seo --- CHANGELOG.md | 7 +- VALIDATION.md | 1 - doc/benchmarks.md | 39 +------- doc/local_analysis_guide.md | 6 +- src/cablexsec/mechanics/stiffness.py | 7 +- tests/test_stick_support.py | 99 +++++++++++++------ validation/README.md | 1 - validation/paper_data/README.md | 6 -- .../paper_data/line_contact_tube_copper.yaml | 48 --------- .../paper_data/line_contact_tube_hollow.yaml | 42 -------- .../paper_data/line_contact_tube_stick.csv | 11 --- validation/scripts/check_stick_support_fe.py | 73 -------------- validation/scripts/run_validation.py | 33 ------- validation/validation_report.md | 1 - 14 files changed, 77 insertions(+), 297 deletions(-) delete mode 100644 validation/paper_data/line_contact_tube_copper.yaml delete mode 100644 validation/paper_data/line_contact_tube_hollow.yaml delete mode 100644 validation/paper_data/line_contact_tube_stick.csv delete mode 100644 validation/scripts/check_stick_support_fe.py diff --git a/CHANGELOG.md b/CHANGELOG.md index 554a7e0..6334dd8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,11 +19,8 @@ All notable changes to CableXSec are recorded in this file. The format follows with its actual inner boundary (rigid support, free bore or axis), plus the concentration of the load on each wire's width. - On thin layers over a stiff support it agrees with the default within a - few per cent. On a hollow-core verification tube it gives the sectional ξ - of a line-contact finite-element model within 4 %, where the default is - about twice too stiff. - - New stated row XI-FE (`validation/scripts/check_stick_support_fe.py`, - `validation/paper_data/line_contact_tube_*`). + few per cent. A soft or hollow core shears as a beam and gives a much + smaller ξ (free bore: `R(1+ρ²)/(G(1−ρ²))` against the strip's `t/G`). - Closed-form limits and an independent finite-difference solution in `tests/test_stick_support.py`. - Gap G8 documented as a known limitation for 0.2.0 (doc/benchmarks.md, diff --git a/VALIDATION.md b/VALIDATION.md index 728599d..3361973 100644 --- a/VALIDATION.md +++ b/VALIDATION.md @@ -80,7 +80,6 @@ afterwards: a comparison that misses its target is reported as failed. | **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 | | **DAI18-T3** | Test 3 loops (0.01–0.2 Hz) against the rate-independent spring-slider | Dai, Sævik and Ye (2018), Fig. 4c | dynamic level −3.5 to +0.3 %; static peak +10.6 % at 0.2 Hz not represented | stated, not gated | Info | -| **XI-FE** | Armour stick coefficient of two verification tubes (hollow core; copper core), default and opt-in stick support | three-dimensional line-contact finite-element model (model to model) | hollow: `annulus` +4.3 %, default +104 %; copper: +8.8 %, +5.9 % | stated, not gated | Info | | **BM5** | Conductor temperature of the CIGRE TB 880 export cable, from the source's tabulated network inputs (`compute_thermal` on the cable itself is not yet comparable) | Poradowski tabulated thermal network; FEM 89.62 °C | 84.4 °C | ≤90 °C, about 5 K low | Partial | | **BM4** | Axial stiffness of a population of umbilicals | Sævik and Bruaseth (2005) | mean ratio about 1.45 | <1.25 | Not validated | diff --git a/doc/benchmarks.md b/doc/benchmarks.md index d8188fc..bfb0481 100644 --- a/doc/benchmarks.md +++ b/doc/benchmarks.md @@ -1573,7 +1573,7 @@ held-out rows chosen in advance. No band, target or source input was changed. | Mechanism | Finding | | --- | --- | -| Stick-support compliance | Two candidates were tested: the layered-annulus shear of the polymer under the armour (now the opt-in `stick_support="annulus"`, row XI-FE), and that support with an elastic line contact of round wires on polymer. On every measured section the support is a thin polymer layer over a stiff body, so the annulus moves ξ by 8 % or less. The line contact moves round-wire sections by 5–40 %. Neither moves the Witz width: ξ from ×0.25 to ×1 changes it by 0.0 %, and the line contact leaves it at 1356 N·m with energy/width 2.00. The Ménard work moves by 0.5–1.8 points. | +| Stick-support compliance | Two candidates were tested: the exact layered-annulus shear of the polymer under the armour (now the opt-in `stick_support="annulus"`; the support compliance was checked against an independent model of two verification tubes, not published), and that support with an elastic line contact of round wires on polymer. On every measured section the support is a thin polymer layer over a stiff body, so the annulus moves ξ by 8 % or less. The line contact moves round-wire sections by 5–40 %. Neither moves the Witz width: ξ from ×0.25 to ×1 changes it by 0.0 %, and the line contact leaves it at 1356 N·m with energy/width 2.00. The Ménard work moves by 0.5–1.8 points. | | Residual (manufacturing) contact pressure | Already represented by the initial pressure identified on each loop. It sets the loop height and slip onset, not the slopes, and the slope errors do not follow it: Ménard's slip slope is right at 216 kPa, Zeidan's is 3.5 times too soft at 760 kPa. | | Contact between neighbouring wires of one layer | Zeidan's and Ménard's armours have the same coverage, 0.95–0.97, with positive nominal gaps, yet only Zeidan shows the deficit. By magnitude, neighbours slip together to within about 1/n of the slip, and lateral locking acts on the individual wire bending term of order 0.1 kN·m², against a deficit of about 6 kN·m². | | Compacted laid-core bundle (cores and fillers bonded to the section) | The laid-core law already keeps Zeidan's cores stuck over the whole test range. A bonded bundle gives the registered Z-ID result unchanged to every printed digit. The copper is coupled to the bundle only through the 8.75 mm insulation at its 6 MPa (ξ_core 0.030), so a bonded bundle keeps 0.6 kN·m². Even a rigid bond gives 8.1 kN·m² at uniform curvature, about 6.3 in the plotted reduction. Zeidan's cross-wound armours balance their transverse shear to within 1.4 %, so the bundle carries almost none of it, and its compliance cannot soften the stick branch. Counting the filler depth in series under the inner armour alone (an earlier variant) softens Z-ID's stick for that reason and breaks Z-EI. | @@ -1612,43 +1612,6 @@ held-out rows chosen in advance. No band, target or source input was changed. uniform-moment zone, the raw records published, and the insulation and filler moduli measured at the test rate and temperature. -### Model-to-model stick coefficient (row XI-FE) - -`validation/scripts/check_stick_support_fe.py` compares ξ for two armoured -verification tubes with the sectional stick coefficient of a three-dimensional -line-contact finite-element model. Both tubes have 40 round steel wires of 5 mm -at 15°; one has a hollow MDPE core, the other a copper core under MDPE. - -**The finite-element model.** - -- 8-node hexahedra; each wire's generators facing the core and the sheath are - node-based contact surfaces, with zero clearance. -- Full stick on the core face, frictionless sheath face. -- Rigid end plates, tension 40 kN. -- ξ is taken from the in-phase wire-tension amplitude at mid-length of a 2- or - 3-pitch tube, against the local curvature. -- The meshed wire is an octagon inscribed in the round wire (area factor - 0.900), so the comparison uses that area. - -The inputs are in `validation/paper_data/line_contact_tube_*.yaml` and -`line_contact_tube_stick.csv`. - -| Tube | FE | `"annulus"` | `"yun_stack"` (default) | -| --- | --- | --- | --- | -| hollow core | 0.198 | 0.207 (+4.3 %) | 0.405 (+104 %) | -| copper core | 0.540 | 0.588 (+8.8 %) | 0.572 (+5.9 %) | - -**Reading the table.** - -- **Hollow core.** The default takes the 20 mm core wall as a thin strip over a - rigid support. The hollow core instead shears as a beam: the mode-1 antiplane - compliance of the free-bore annulus, R(1+ρ²)/(G(1−ρ²)), is 3.3 times the - strip's t/G. -- **Copper core.** The polymer is a thin layer on a stiff body, and the two - supports agree. -- **Why the option stays opt-in.** It does not change any measured row's status - (G8 above). The default is unchanged. - ## Sævik (2011) FBG armour stresses (SV11-PLANE, SV11-GJ) Gap 2.5. The 8-inch non-bonded riser of Sævik (2011, diff --git a/doc/local_analysis_guide.md b/doc/local_analysis_guide.md index 0b1fd05..1921c37 100644 --- a/doc/local_analysis_guide.md +++ b/doc/local_analysis_guide.md @@ -867,9 +867,9 @@ for state in response.states: - On thin layers over a stiff support the two agree within a few per cent. On a soft or hollow core, `"annulus"` is much softer, because the core shears as a beam. - - On a hollow-core verification tube, `"annulus"` gives the sectional ξ of a - line-contact finite-element model within 4 %, where the default is about - twice too stiff (row XI-FE). + - It is the exact elastic solution of that annulus: a thin layer on a rigid + support gives t/G, a solid core R/G, and a hollow core with a free bore + R(1+ρ²)/(G(1−ρ²)), several times the thin-strip value. - The option changes the stick branch, `EI_max` and the slip onset, not `EI_min`. It does not close gap G8. - Other entry points, such as the fatigue path and the thermal section, diff --git a/src/cablexsec/mechanics/stiffness.py b/src/cablexsec/mechanics/stiffness.py index 70ba253..32fcd58 100644 --- a/src/cablexsec/mechanics/stiffness.py +++ b/src/cablexsec/mechanics/stiffness.py @@ -684,10 +684,9 @@ def xi_for_layer( spacing, plus the concentration of the load on the wire's own width. For a thin layer on a rigid support it agrees with the default to within the ratio of the wire width to the spacing. For a soft or hollow core it is - much softer, because the core shears as a beam. On a hollow-core armoured - tube it reproduces the sectional stick coefficient of a line-contact - finite-element model within 4 %, where the default is about twice too - stiff (doc/benchmarks.md, row XI-FE). + much softer, because the core shears as a beam: a free bore of radius + ratio rho gives `R (1 + rho^2) / (G (1 - rho^2))` against the strip's + `t / G`. """ require_stick_support(stick_support) layer = cable.get_layer(layer_name) diff --git a/tests/test_stick_support.py b/tests/test_stick_support.py index f95ccd6..514343e 100644 --- a/tests/test_stick_support.py +++ b/tests/test_stick_support.py @@ -5,7 +5,8 @@ Closed-form limits of the layered-annulus compliance and of the strip concentration; an independent finite-difference solution of a two-layer annulus; the default (``"yun_stack"``) unchanged bit for bit through every -entry point; refusal of an unknown model; and the model-to-model row XI-FE. +entry point; refusal of an unknown model; and the support condition of a hollow +core. """ from __future__ import annotations @@ -174,44 +175,80 @@ def test_unknown_stick_support_is_refused_everywhere() -> None: SectionLaw.from_cable(cable, stick_support="series") +_TUBE = """\ +cable: + name: "Armoured tube, hollow core" + description: "Hollow MDPE core 20-40 mm, 40 steel wires of 5 mm at 15 deg, HDPE sheath" + manufacturer: "Test geometry" + source_document: "tests/test_stick_support.py" +initial_state: + external_pressure_Pa: 0.30e6 + identification: assumed_bound + bounds_Pa: [0.0, 0.48e6] + source: "test geometry" +{materials}layers: +{inner} - name: core_tube + layer_type: cylindrical + material: mdpe_janocha2024 + r_inner_m: 0.020 + r_outer_m: 0.040 + source: test + - name: armour + layer_type: helical + material: steel_janocha2024 + n_wires: 40 + d_wire_m: 0.005 + r_helix_m: 0.0425 + lay_angle_deg: 15.0 + lay_direction: left_hand + source: test + - name: sheath + layer_type: cylindrical + material: hdpe_janocha2024 + r_inner_m: 0.045 + r_outer_m: 0.050 + source: test +""" + + +def _tube(tmp_path: Path, *, filled: bool) -> CableData: + materials = ( + "materials:\n yarn_probe:\n description: yarn without a modulus\n" + " rho_kg_m3: {value: 500.0, source: test}\n" + if filled + else "" + ) + inner = ( + " - name: bore_yarn\n layer_type: cylindrical\n material: yarn_probe\n" + " r_inner_m: 0.0\n r_outer_m: 0.020\n source: test\n" + if filled + else "" + ) + path = tmp_path / ("filled.yaml" if filled else "hollow.yaml") + path.write_text(_TUBE.format(materials=materials, inner=inner), encoding="utf-8") + return cx.load_cable(path, geometry_override=None) + + @pytest.mark.analytical_sanity -def test_free_bore_only_where_nothing_lies_inside(tmp_path: Path) -> None: - import check_stick_support_fe as fe +def test_hollow_core_shears_as_a_beam(tmp_path: Path) -> None: + hollow = _tube(tmp_path, filled=False) + yun = xi_for_layer(hollow, "armour") + annulus = xi_for_layer(hollow, "armour", stick_support="annulus") + # The free bore is 3.3 times the strip compliance of the 20 mm wall, so + # the stuck wires see a much softer support. + assert annulus < 0.6 * yun - source = fe.DATA / "line_contact_tube_hollow.yaml" - hollow = cx.load_cable(source, geometry_override=None) + +@pytest.mark.analytical_sanity +def test_free_bore_only_where_nothing_lies_inside(tmp_path: Path) -> None: + hollow = _tube(tmp_path, filled=False) + filled = _tube(tmp_path, filled=True) # A layer without an isotropic modulus fills the bore: the stack skips # it, and the support is then kept rigid (as in the default model), not # treated as a free bore. - text = source.read_text(encoding="utf-8").replace( - "layers:\n", - "materials:\n yarn_probe:\n description: yarn without a modulus\n" - " rho_kg_m3: {value: 500.0, source: test}\n\nlayers:\n" - " - name: bore_yarn\n layer_type: cylindrical\n material: yarn_probe\n" - " r_inner_m: 0.0\n r_outer_m: 0.020\n source: test\n\n", - 1, - ) - path = tmp_path / "filled_bore.yaml" - path.write_text(text, encoding="utf-8") - filled = cx.load_cable(path, geometry_override=None) free = xi_for_layer(hollow, "armour", stick_support="annulus") with filled.material_scope(): supported = xi_for_layer(filled, "armour", stick_support="annulus") series = xi_for_layer(filled, "armour") assert free < 0.6 * supported assert supported == pytest.approx(series, rel=0.05) - - -@pytest.mark.independent_method -def test_line_contact_tube_row() -> None: - import check_stick_support_fe as fe - - rows = fe.stick_comparison() - hollow, copper = rows["hollow"], rows["copper"] - # Hollow core: the annulus support follows the core's shear; the series - # stack takes the wall as a thin strip on a rigid support. - assert abs(hollow["annulus_error"]) < 0.06 - assert hollow["yun_stack_error"] > 0.9 - # Copper core: a thin layer on a stiff support, both within 10 %. - assert abs(copper["annulus_error"]) < 0.10 - assert abs(copper["yun_stack_error"]) < 0.10 diff --git a/validation/README.md b/validation/README.md index 545939b..466d8b1 100644 --- a/validation/README.md +++ b/validation/README.md @@ -38,7 +38,6 @@ registered measured comparisons listed in [`VALIDATION.md`](../VALIDATION.md#sum | `check_saevik2011.py` | Sævik (2011) and Gjøsteen et al. (2027) FBG armour-stress comparison (SV11 rows) | | `check_core_friction.py` | Laid-core friction checks and published comparisons | | `check_g8_gradual_reversal.py` | Gradual stick-to-slip transition against Witz, Hu et al. and Ménard | -| `check_stick_support_fe.py` | Armour stick coefficient of two verification tubes against a line-contact finite-element model, default and opt-in stick support (XI-FE) | | `check_t1_test_arrangement.py` | Benchmarks in their published test arrangements (three-point, four-point) | | `check_out_von_morgen.py` | Frictionless slip bounds of Out and von Morgen (1997) and Out (1989) | | `check_conductor_strand_slip.py` | Conductor strand slip and the Hu et al. (2022) conductor loop | diff --git a/validation/paper_data/README.md b/validation/paper_data/README.md index 1e2c634..af1012c 100644 --- a/validation/paper_data/README.md +++ b/validation/paper_data/README.md @@ -36,12 +36,6 @@ published cable of Ménard and Cartraud (2023), bundled as | `zeidan2026_fig18_deflection.csv` | Zeidan et al., IJSS 338 (2026) 114089, Fig. 18: deflection along the half span at the four amplitudes, read from the native raster | which displacement the 30–60 mm denote; central curvature (doc/benchmarks.md) | | `revision2_digitisation_bounds.json` | Half-widths of the digitisation of the Ménard ranges | sensitivity of the bending comparison to digitisation | -## Model-to-model references - -| Files | Source | Used by | -|---|---|---| -| `line_contact_tube_hollow.yaml`, `line_contact_tube_copper.yaml`, `line_contact_tube_stick.csv` | Two armoured verification tubes (not real cables). The CSV gives the sectional stick coefficient of a three-dimensional line-contact finite-element model of each tube; its header states the model, the loading and how the value is extracted. | XI-FE row; `validation/scripts/check_stick_support_fe.py`; `tests/test_stick_support.py` | - ## Calculations on the published cable | Files | Content | diff --git a/validation/paper_data/line_contact_tube_copper.yaml b/validation/paper_data/line_contact_tube_copper.yaml deleted file mode 100644 index 6db67b9..0000000 --- a/validation/paper_data/line_contact_tube_copper.yaml +++ /dev/null @@ -1,48 +0,0 @@ ---- -# SPDX-License-Identifier: Apache-2.0 -# Armoured tube of the model-to-model stick-coefficient row XI-FE with an axially stiff core: a copper tube -# under an MDPE layer, armour and sheath as line_contact_tube_hollow.yaml. A verification geometry, not a -# real cable. -cable: - name: "Line-contact verification tube, copper core" - description: "Copper tube 10-30 mm, MDPE 30-40 mm, 40 steel wires of 5 mm at 15 deg, HDPE sheath 45-50 mm" - manufacturer: "Verification geometry" - source_document: "CableXSec row XI-FE (model to model)" - -initial_state: - external_pressure_Pa: 0.30e6 - identification: assumed_bound - bounds_Pa: [0.0, 0.48e6] - source: "Verification geometry; the stick coefficient does not depend on the clamping" - -layers: - - name: copper_tube - layer_type: cylindrical - material: copper_janocha2024 - r_inner_m: 0.010 - r_outer_m: 0.030 - source: "verification geometry" - - - name: core_tube - layer_type: cylindrical - material: mdpe_janocha2024 - r_inner_m: 0.030 - r_outer_m: 0.040 - source: "verification geometry" - - - name: armour - layer_type: helical - material: steel_janocha2024 - n_wires: 40 - d_wire_m: 0.005 - r_helix_m: 0.0425 - lay_angle_deg: 15.0 - lay_direction: left_hand - source: "verification geometry" - - - name: sheath - layer_type: cylindrical - material: hdpe_janocha2024 - r_inner_m: 0.045 - r_outer_m: 0.050 - source: "verification geometry" diff --git a/validation/paper_data/line_contact_tube_hollow.yaml b/validation/paper_data/line_contact_tube_hollow.yaml deleted file mode 100644 index b91b14a..0000000 --- a/validation/paper_data/line_contact_tube_hollow.yaml +++ /dev/null @@ -1,42 +0,0 @@ ---- -# SPDX-License-Identifier: Apache-2.0 -# Armoured tube of the model-to-model stick-coefficient row XI-FE: one layer of round steel wires between a -# hollow MDPE core and an HDPE sheath. A verification geometry, not a real cable. The same geometry and -# moduli are meshed in the three-dimensional line-contact finite-element model of the row -# (line_contact_tube_stick.csv). -cable: - name: "Line-contact verification tube, hollow core" - description: "Hollow MDPE core 20-40 mm, 40 steel wires of 5 mm at 15 deg, HDPE sheath 45-50 mm" - manufacturer: "Verification geometry" - source_document: "CableXSec row XI-FE (model to model)" - -initial_state: - external_pressure_Pa: 0.30e6 - identification: assumed_bound - bounds_Pa: [0.0, 0.48e6] - source: "Verification geometry; the stick coefficient does not depend on the clamping" - -layers: - - name: core_tube - layer_type: cylindrical - material: mdpe_janocha2024 - r_inner_m: 0.020 - r_outer_m: 0.040 - source: "verification geometry" - - - name: armour - layer_type: helical - material: steel_janocha2024 - n_wires: 40 - d_wire_m: 0.005 - r_helix_m: 0.0425 - lay_angle_deg: 15.0 - lay_direction: left_hand - source: "verification geometry" - - - name: sheath - layer_type: cylindrical - material: hdpe_janocha2024 - r_inner_m: 0.045 - r_outer_m: 0.050 - source: "verification geometry" diff --git a/validation/paper_data/line_contact_tube_stick.csv b/validation/paper_data/line_contact_tube_stick.csv deleted file mode 100644 index 90244cd..0000000 --- a/validation/paper_data/line_contact_tube_stick.csv +++ /dev/null @@ -1,11 +0,0 @@ -# Sectional stick coefficient of the verification tubes in a three-dimensional line-contact finite-element model -# (row XI-FE, model to model). 8-node hexahedra with incompatible modes; each wire's generators facing the core -# and the sheath are node-based contact surfaces on the polymer (zero clearance); Coulomb 5 on the core face -# (full stick at the applied curvature), frictionless sheath face; tension 40 kN, external pressure 0.30 MPa; -# rigid end plates; one quarter cycle to 0.015 1/m. The value is the in-phase wire-tension amplitude at the -# middle element layer divided by E A_w R cos^2(alpha) kappa, with kappa the local curvature from the core -# section rotations and A_w the meshed wire section, an octagon inscribed in the round wire (area_factor of -# pi d^2 / 4). Mesh: 100 element layers per pitch, 80 elements around the core. -case,yaml,pitches,xi_fe,area_factor,fit_rms_over_amplitude -hollow,line_contact_tube_hollow.yaml,3,0.19819,0.90032,0.00017 -copper,line_contact_tube_copper.yaml,2,0.54042,0.90032,0.0041 diff --git a/validation/scripts/check_stick_support_fe.py b/validation/scripts/check_stick_support_fe.py deleted file mode 100644 index 4bda014..0000000 --- a/validation/scripts/check_stick_support_fe.py +++ /dev/null @@ -1,73 +0,0 @@ -# SPDX-License-Identifier: Apache-2.0 -# Copyright (c) 2026 Jae Hoon Seo, SMI Lab, Inha University -"""Stick coefficient of two armoured verification tubes against a line-contact FE model (row XI-FE). - -Model to model. The reference is the sectional stick coefficient of a three-dimensional line-contact -finite-element model of each tube (``validation/paper_data/line_contact_tube_stick.csv``; the header of -that file states the model and how the value is extracted). CableXSec's ξ is evaluated with both stick -supports of :func:`~cablexsec.mechanics.stiffness.xi_for_layer`: the default series stack -(``"yun_stack"``) and the opt-in ``"annulus"``. The finite-element wire section is an octagon inscribed -in the round wire, so the comparison uses the meshed wire area: the wire modulus is scaled by the area -factor, which scales E A_w and leaves the support unchanged. - -Usage: ``python validation/scripts/check_stick_support_fe.py``. -""" - -from __future__ import annotations - -import csv -from pathlib import Path - -import cablexsec as cx -from cablexsec.materials import library -from cablexsec.mechanics.stiffness import xi_for_layer - -DATA = Path(__file__).resolve().parents[1] / "paper_data" -ARMOUR = "armour" - - -def _cases() -> list[dict[str, str]]: - with (DATA / "line_contact_tube_stick.csv").open(encoding="utf-8") as handle: - rows = [line for line in handle if not line.startswith("#")] - return list(csv.DictReader(rows)) - - -def stick_comparison() -> dict[str, dict[str, float]]: - """ξ of the finite-element model and of both stick supports, per tube.""" - out: dict[str, dict[str, float]] = {} - for case in _cases(): - cable = cx.load_cable(DATA / case["yaml"], geometry_override=None) - with cable.material_scope(): - moduli = { - layer.name: library.get_property(layer.material, "E_Pa") - for layer in cable.layers - } - moduli[ARMOUR] *= float(case["area_factor"]) - values = { - model: xi_for_layer( - cable, ARMOUR, youngs_modulus_Pa=moduli, stick_support=model - ) - for model in ("yun_stack", "annulus") - } - xi_fe = float(case["xi_fe"]) - out[case["case"]] = { - "xi_fe": xi_fe, - "yun_stack": values["yun_stack"], - "annulus": values["annulus"], - "yun_stack_error": values["yun_stack"] / xi_fe - 1.0, - "annulus_error": values["annulus"] / xi_fe - 1.0, - } - return out - - -def main() -> None: - for name, row in stick_comparison().items(): - print( - f"{name:8s} FE {row['xi_fe']:.4f} annulus {row['annulus']:.4f} " - f"({100 * row['annulus_error']:+.1f} %) Yun stack {row['yun_stack']:.4f} " - f"({100 * row['yun_stack_error']:+.1f} %)" - ) - - -if __name__ == "__main__": - main() diff --git a/validation/scripts/run_validation.py b/validation/scripts/run_validation.py index c394922..cf1a611 100644 --- a/validation/scripts/run_validation.py +++ b/validation/scripts/run_validation.py @@ -726,38 +726,6 @@ def pair(model: str) -> str: ] -def _stick_fe_rows() -> list[Row]: - """XI-FE (stated, model to model): the armour stick coefficient of two - verification tubes against a line-contact finite-element model, with the - default and the opt-in stick support. scripts/check_stick_support_fe.py.""" - import check_stick_support_fe as fe # noqa: PLC0415 - - c = fe.stick_comparison() - - def case(name: str, label: str) -> str: - r = c[name] - return ( - f"{label}: FE {r['xi_fe']:.3f}; annulus {r['annulus']:.3f} " - f"({100 * r['annulus_error']:+.1f}%); Yun stack {r['yun_stack']:.3f} " - f"({100 * r['yun_stack_error']:+.1f}%)" - ) - - return [ - Row( - "2", - "XI-FE", - "Armour stick coefficient xi of two armoured verification tubes " - "(hollow MDPE core; copper core under MDPE) against the sectional " - "value of a three-dimensional line-contact finite-element model, " - "default (yun_stack) and opt-in (annulus) stick support, meshed " - "wire area", - "stated, not gated (model to model)", - f"{case('hollow', 'hollow core')}; {case('copper', 'copper core')}", - "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. @@ -2130,7 +2098,6 @@ def _comp_row(tier: str, ident: str, quantity: str, keys: tuple[str, ...]) -> Ro rows.extend(_anchored_wire_fe_rows()) rows.extend(_dai2020_rows()) rows.extend(_dai2018_rows()) - rows.extend(_stick_fe_rows()) theta_bm5 = _bm5_conductor_temperature() # paper tabulated network, λ1' only rows.append( diff --git a/validation/validation_report.md b/validation/validation_report.md index 506ee64..4bb3004 100644 --- a/validation/validation_report.md +++ b/validation/validation_report.md @@ -73,7 +73,6 @@ Every row is computed from published data or closed-form references in this repo | 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 | | 2 | DAI18-T3 | Dai et al. (2018) Test 3 (4 MPa, groove track, 0.01-0.2 Hz) vs the rate-independent spring-slider with the 0.01 Hz peak and level | stated, not gated | dynamic level vs 0.01 Hz -3.5, -2.4, +0.3% at 0.05/0.1/0.2 Hz (model 0); static peak +10.6% at 0.2 Hz (model 0: no rate term on mu_s); 0.2 Hz peak error -7.9/-11.4%; work -5.4 to -0.9% | INFO | -| 2 | XI-FE | Armour stick coefficient xi of two armoured verification tubes (hollow MDPE core; copper core under MDPE) against the sectional value of a three-dimensional line-contact finite-element model, default (yun_stack) and opt-in (annulus) stick support, meshed wire area | stated, not gated (model to model) | hollow core: FE 0.198; annulus 0.207 (+4.3%); Yun stack 0.405 (+104.4%); copper core: FE 0.540; annulus 0.588 (+8.8%); Yun stack 0.572 (+5.9%) | INFO | | 2 | BM5 | CIGRE TB880 conductor temp (cited Poradowski tabulated T-network, λ1') | ≤ 90 °C, ~5 K low | 84.4 °C (FEM 89.62 / IEC 90; λ1″ closes residual). NOT yet from compute_thermal(cable) — three-core geometric factor pending IEC 60287-2-1 (not yet implemented) | PARTIAL (cited network; λ1″ + 3-core factor gated) | | 2 | BM4 | Saevik-Bruaseth EA population; no-radial-interaction bound | mean model/measured < 1.25 | mean ratio about 1.45; U1 > 2.0 | NOT VALIDATED (negative finding; radial interaction missing) | From f22717440fb01a04ff0c361e43374217a43eb68a Mon Sep 17 00:00:00 2001 From: Jae Hoon Seo Date: Sat, 21 Nov 2026 01:49:05 +0900 Subject: [PATCH 5/6] validation: regenerate the report on e10cc14 plus this branch Generated with validation/scripts/run_validation.py (CI-like conda env, Python 3.11). Taxonomy 1263 / 79 / 59; CF, CFW and MX-scale change only in their round-off digits. Signed-off-by: Jae Hoon Seo --- validation/validation_report.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/validation/validation_report.md b/validation/validation_report.md index c24e45c..8bafe5e 100644 --- a/validation/validation_report.md +++ b/validation/validation_report.md @@ -18,8 +18,8 @@ Every row is computed from published data or closed-form references in this repo | 1 | OvM | Frictionless contact slip vs Out-von Morgen geodesic (Eqs. 26-28): loxodromic slip = wire-direction component; magnitude within bound; closed forms vs exact geodesic | < 1e-12 relative; ratio <= 1; < 1e-3 relative at k = 1e-4 | identity 1.07e-15; ratio 0.333; closed form 3.76e-04 | PASS | | 1 | OvM-g | Geodesic transverse map (eta = 1) vs Out-von Morgen slip vector (Eqs. 26-28) at mu = 0; vs exact geodesic | < 1e-12 relative; < 1e-3 relative at k = 1e-4 | closed form 1.05e-15; delta*/Eq. 28 - 1 2.9e-15; exact 2.62e-04 | PASS | | 1 | Out89 | Contact plastic slip vs Out (1989) effective curvature change dk - 2 kappa_s (Eq. 1) and damage ratios (Eqs. A8, A11) | < 1e-12 relative; < 1e-4 absolute | Eq. 1 9.63e-16; A8/A11 5.0e-07 | PASS | -| 1 | CF | Laid-core friction: mu = 0 armour-only loop; large mu tangent vs EI_max; full-slip core moment vs closed form; dissipation >= 0; rotation equivariance | 0 N m; < 1e-9; < 5e-3; >= 0; < 1e-9 relative | 0.0e+00 N m; 8.9e-16; 1.0e-04; 4.9e-06; 4.8e-14 | PASS | -| 1 | CFW | Laid-core contact statics (wedged trefoil, central filler) and laid filler profiles: mu = 0 armour-only loop; full-slip profile moment vs closed form; stick tangent vs EI_max + E J_f cos^3 / 2 | < 1e-12 relative; 0 N m; < 5e-3; < 1e-9 | 9.5e-17; 0.0e+00 N m; 1.0e-04; 8.9e-16 | PASS | +| 1 | CF | Laid-core friction: mu = 0 armour-only loop; large mu tangent vs EI_max; full-slip core moment vs closed form; dissipation >= 0; rotation equivariance | 0 N m; < 1e-9; < 5e-3; >= 0; < 1e-9 relative | 0.0e+00 N m; 7.8e-16; 1.0e-04; 4.9e-06; 4.8e-14 | PASS | +| 1 | CFW | Laid-core contact statics (wedged trefoil, central filler) and laid filler profiles: mu = 0 armour-only loop; full-slip profile moment vs closed form; stick tangent vs EI_max + E J_f cos^3 / 2 | < 1e-12 relative; 0 N m; < 5e-3; < 1e-9 | 9.5e-17; 0.0e+00 N m; 1.0e-04; 6.7e-16 | PASS | | 1 | FR | Fretting regime: Mindlin energy vs numerical Masing loop; Fouvry A/D/B at transition; Cattaneo strip I(0) = pi/16; mu = inf stick energy; planar-path rotation | < 1e-9; < 1e-12; < 1e-12; 0 J; < 1e-12 relative | 7.8e-12; 4.4e-16; 1.6e-15; 0.0e+00 J; 4.4e-16 | PASS | | 1 | TQ | Torque balance: Feyrer Ex. 2.8 torque constant c_1S (fixed radius); coupled section vs Knapp (1981) core factor, theta = 2 nu; mirror lay reverses torque and twist | 0.0345 +/- 0.2%; < 1e-4 relative; < 1e-9 relative | 0.03446 (-0.11%); -1.3e-06; 0.0e+00 | PASS | | 1 | TQ-SV | Saint-Venant twist rigidity with free warping (trefoil filler lobes): 2 x 1 rectangle vs series solution; bonded annulus as a mirrored 60 deg sector vs polar moment | < 3e-4 relative; < 1e-6 relative | 1.0e-04; -1.5e-08 | PASS | @@ -29,7 +29,7 @@ Every row is computed from published data or closed-form references in this repo | 1 | M-rec | Assembled per-wire moment vs compute_mkappa (cross-engine, single-core) | < 2% | 0.000% | PASS | | 1 | M-rec-3core | Cross-engine moment vs compute_mkappa with offset-core geometry and shared mean armour pressure | < 2% | 0.000% | PASS | | 1 | MK-Tcyc | compute_mkappa with a tension history cycling within the bending cycles vs the fatigue-path friction stress on the same history; work balance under the changing friction bound | < 1e-12 relative; < 1e-12 relative | 3.4e-16; 8.9e-16 | PASS | -| 1 | MX-scale | Exported law with a slip scaling variable: compute_mkappa at T2 vs the T1 law with the bound scaled (66 kV, cores included); group elements at T2 vs the T1 elements with yield curvatures scaled (Menard, two layers); tension cycle inside the bending cycles, scaled law vs the contact-tension history over the fixed-tension Iwan residual | < 1e-12 relative; < 1e-9 relative; ratio <= 1.25 | 6.9e-16; 1.2e-13; 1.21 | PASS | +| 1 | MX-scale | Exported law with a slip scaling variable: compute_mkappa at T2 vs the T1 law with the bound scaled (66 kV, cores included); group elements at T2 vs the T1 elements with yield curvatures scaled (Menard, two layers); tension cycle inside the bending cycles, scaled law vs the contact-tension history over the fixed-tension Iwan residual | < 1e-12 relative; < 1e-9 relative; ratio <= 1.25 | 5.5e-16; 1.2e-13; 1.21 | PASS | | 1 | FL-P | Pressure-dependent friction coefficient (FrictionLaw.pressure_factor): spring-slider under pressure steps vs closed form; compiled vs NumPy direction-tied kernel under a pressure history (static/dynamic law, local pressures across the table); work balance | < 1e-9 relative; < 1e-9 relative; < 1e-9 relative | 3.0e-16; 8.7e-16; 2.5e-15 | PASS | | 1 | slip-onset | First-to-slip wire at the neutral axis (|cos| → 0, compression side at psi ≈ 3 lam/2; Raoof/Papailiou, not extreme-fibre loop) | |cos| < 0.2 | |cos|=0.156 | PASS | | 1 | xsec-K | Coupling tangent bounds (κ→0=EI_max, κ→∞=EI_min); slip-front local slope | < 0.01% | κ0:1.91e-14% / κ∞:5.99e-13% | PASS | @@ -79,8 +79,8 @@ Every row is computed from published data or closed-form references in this repo ## Test taxonomy (full gate suite) -- analytical_sanity: `1254 passed` -- independent_method: `77 passed` +- analytical_sanity: `1263 passed` +- independent_method: `79 passed` - full_scale: `59 passed` Run `pytest -m ` to reproduce each group. From 426551874c09d2ae5af18367c7d7d7af5e86c09d Mon Sep 17 00:00:00 2001 From: Jae Hoon Seo Date: Sat, 21 Nov 2026 03:12:02 +0900 Subject: [PATCH 6/6] fix: the annulus support accepts interfaces the schema accepts as touching CableData accepts adjacent cylindrical layers that overlap by radius rounding (_radial_tol). The annulus solution refused them, so stick_support="annulus" raised CableInputError on such a cable. An overlap within that tolerance is now a touching interface; a larger overlap is still refused. The bore check of the stack support uses the same tolerance. Regression test with an inner layer ending at 0.03 m and an outer one starting at 0.0299999999 m. The default stick support is unchanged. Signed-off-by: Jae Hoon Seo --- src/cablexsec/mechanics/stick_support.py | 12 ++++++++++-- src/cablexsec/mechanics/stiffness.py | 3 ++- tests/test_stick_support.py | 15 +++++++++++++++ validation/validation_report.md | 2 +- 4 files changed, 28 insertions(+), 4 deletions(-) diff --git a/src/cablexsec/mechanics/stick_support.py b/src/cablexsec/mechanics/stick_support.py index 1e52402..e6b95de 100644 --- a/src/cablexsec/mechanics/stick_support.py +++ b/src/cablexsec/mechanics/stick_support.py @@ -43,6 +43,8 @@ import numpy as np +from cablexsec.cables.schema import _radial_tol + __all__ = [ "SupportCondition", "annulus_mode1_compliance", @@ -71,7 +73,8 @@ def annulus_mode1_compliance( layers : sequence of (r_inner, r_outer, G) Layers from the outside in: radii [m], shear modulus [Pa]. A radial gap between consecutive layers is rigid: it keeps the displacement - and the shear flow ``sigma r``. + and the shear flow ``sigma r``. An overlap within the cable schema's + radial tolerance is a touching interface; a larger one is refused. support : {"rigid", "bore", "axis"} Inner boundary: ``w = 0``; zero shear stress; or regular at ``r = 0`` (then the innermost layer must start at the axis). @@ -106,7 +109,12 @@ def annulus_mode1_compliance( raise ValueError("a rigid or bore support needs an inner radius above zero") for r_in, r_out, g in seq: if r_in < r_prev: - raise ValueError("layers must not overlap") + # Interfaces the cable schema accepts as touching (radius + # rounding) start at the previous outer radius; a genuine + # overlap is refused. + if r_prev - r_in > _radial_tol(r_prev): + raise ValueError("layers must not overlap") + r_in = r_prev if r_in > r_prev: sigma *= r_prev / r_in w, sigma = _propagate(w, sigma, r_in, r_out, g) diff --git a/src/cablexsec/mechanics/stiffness.py b/src/cablexsec/mechanics/stiffness.py index 32fcd58..e2b2b04 100644 --- a/src/cablexsec/mechanics/stiffness.py +++ b/src/cablexsec/mechanics/stiffness.py @@ -52,6 +52,7 @@ CylindricalOffsetLayer, CylindricalShellLayer, HelicalLayer, + _radial_tol, is_serving, layer_stiffness, ) @@ -583,7 +584,7 @@ def _stack_support( in_stack = {lyr.name for lyr in stack} if any( lyr.name not in in_stack - and (getattr(lyr, "r_outer_m", None) or 0.0) <= r_bore * (1.0 + 1e-9) + and (getattr(lyr, "r_outer_m", None) or 0.0) <= r_bore + _radial_tol(r_bore) for lyr in inside ): # A skipped body inside the stack: keep the plane-section support of diff --git a/tests/test_stick_support.py b/tests/test_stick_support.py index 514343e..a2173df 100644 --- a/tests/test_stick_support.py +++ b/tests/test_stick_support.py @@ -107,6 +107,21 @@ def test_strip_concentration_limits() -> None: assert (narrow - wide) * math.pi * G == pytest.approx(math.log(10.0), rel=1e-3) +@pytest.mark.analytical_sanity +def test_rounding_overlap_is_a_touching_interface() -> None: + touching = [(0.030, 0.040, 1.0e8), (0.020, 0.030, 2.0e9)] + rounded = [(0.0299999999, 0.040, 1.0e8), (0.020, 0.030, 2.0e9)] + for support in ("rigid", "bore"): + exact = annulus_mode1_compliance(touching, support) # type: ignore[arg-type] + assert annulus_mode1_compliance(rounded, support) == pytest.approx( # type: ignore[arg-type] + exact, rel=1e-12 + ) + with pytest.raises(ValueError, match="overlap"): + annulus_mode1_compliance( + [(0.029, 0.040, 1.0e8), (0.020, 0.030, 2.0e9)], "rigid" + ) + + @pytest.mark.analytical_sanity def test_support_inputs_are_refused() -> None: with pytest.raises(ValueError, match="axis"): diff --git a/validation/validation_report.md b/validation/validation_report.md index 8bafe5e..c561b68 100644 --- a/validation/validation_report.md +++ b/validation/validation_report.md @@ -79,7 +79,7 @@ Every row is computed from published data or closed-form references in this repo ## Test taxonomy (full gate suite) -- analytical_sanity: `1263 passed` +- analytical_sanity: `1264 passed` - independent_method: `79 passed` - full_scale: `59 passed`