From 0225447f14566b6e1ffd81105ad3ef44e7d176ba Mon Sep 17 00:00:00 2001 From: Jae Hoon Seo Date: Sun, 22 Nov 2026 20:19:33 +0900 Subject: [PATCH 1/2] feat: bonded outer armour face (gap G8) A helical layer may declare bonded_face: outer. Its outer face is bonded to the polymer outside it (a sheath extruded onto the wires, or a bitumen or compound bond) and does not slip: the wires slide on their inner face only, so the friction-setting pressure keeps the inner face's share of the bounded radial chain, and the bond is an elastic spring through the polymer outside (an inner-loaded layered annulus free at the cable surface, plus the strip concentration). The stuck layer is unchanged; in full slip the bond keeps xi_bond of the layer's plane-section stiffness, added in parallel to the law and to compute_stiffness's EI_min. The bending law (compute_mkappa, SectionLaw, the exported law) and compute_stiffness use it; the wire-stress, fatigue and capacity routes refuse a bonded cable, which would miss the bond's share of the wire force. Bounded contact model only, without winding stress or pretension. The Zeidan (2025) input declares it, as an identified input: its sheath sits on the wires with no tape, and the bonded state matches the measured post-slip slope. Z-ID now passes (P0 1085.9 kPa; work +9.9/-4.7/-9.0 %, RMSE 6.4/4.3/4.4 %, range -4.4/-8.5/-8.0 %); Z-EI fails narrowly (EI_min 10.09 against 8.65-9.70 kN m2 in the plotted curvature). Menard and Witz keep sliding faces and are unchanged. Signed-off-by: Jae Hoon Seo --- CHANGELOG.md | 21 +++ VALIDATION.md | 44 +++-- doc/benchmarks.md | 72 +++++++- src/cablexsec/api.py | 16 +- src/cablexsec/cable_adapters.py | 79 +++++++-- src/cablexsec/cables/schema.py | 10 ++ src/cablexsec/cables/zeidan2025.yaml | 6 + src/cablexsec/mechanics/stick_support.py | 49 ++++++ src/cablexsec/mechanics/stiffness.py | 202 +++++++++++++++++++++ tests/test_bonded_face.py | 213 +++++++++++++++++++++++ tests/test_zeidan2025.py | 18 +- validation/validation_report.md | 6 +- 12 files changed, 690 insertions(+), 46 deletions(-) create mode 100644 tests/test_bonded_face.py diff --git a/CHANGELOG.md b/CHANGELOG.md index d467252..acaa8a2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,27 @@ All notable changes to CableXSec are recorded in this file. The format follows ### Added +- `bonded_face: outer` on the outermost helical layer (gap G8): the outer face + of the armour is bonded to the polymer outside it (a sheath extruded onto the + wires with no tape, or a bitumen or compound bond) and does not slip. + - The wires slide on their inner face only: the friction-setting pressure + keeps the inner face's share of the bounded radial chain. + - The bond is an elastic spring through the polymer outside, an inner-loaded + layered annulus free at the cable surface + (`annulus_mode1_compliance_inner`) plus the strip concentration. It keeps + `xi_bond = K_b / (K_b + EA_w sin^2(a) / r_h^2)` of the layer's + plane-section stiffness in full slip (`bonded_face_terms`, + `bonded_face_ei`). The stuck layer is unchanged. + - Used by the bending law (`compute_mkappa`, `SectionLaw`, the exported law) + and `compute_stiffness` (whose `ei_min_Nm2` then includes the bond). The + wire-stress, fatigue and capacity routes refuse such a cable, because they + would miss the bond's share of the wire force. Bounded contact model only, + without winding stress or pretension. + - The Zeidan (2025) input declares it. Its construction shows no tape between + the outer armour and the sheath, and the bonded state is the one that + matches the measured post-slip slope of the stabilised loops. It is an + identified input, not a published one. + - `CoreFrictionSpec(core_core_coupling="relative")`: a coupled intralayer slip model of laid cores. Neighbouring cores touch at the same axial position, so the friction between them acts on their relative slip, while the filler and diff --git a/VALIDATION.md b/VALIDATION.md index 209c8ce..45ab27c 100644 --- a/VALIDATION.md +++ b/VALIDATION.md @@ -65,8 +65,8 @@ afterwards: a comparison that misses its target is reported as failed. | **BM1** | Full-slip bending stiffness EI_min, no calibration | Ménard and Cartraud (2023), Table 3 | 0.6 % (3571 N·m²) | <15 % | Pass | | **BM1-loop** | ±0.10 m⁻¹ moment–curvature loop predicted with the clamping identified on the measured ±0.05 cycle work (190 kPa), four-point arrangement | Ménard and Cartraud (2023), Fig. 16 | ordered RMSE 5.45 %; cycle work 44.4 vs 62.3 J/m (−28.8 %) | RMSE <5 %; work within 10 % | Fail | | **BM1-ID** | Laid cores, wedged trefoil and filler profiles: initial pressure identified on range (b), five ranges predicted | Ménard and Cartraud (2023), Fig. 16 | (a) +28.5 %, (c) +26.2 %, (d)–(f) within 16 % | work ±20 %, RMSE <10 % | Fail | -| **Z-EI** | Measured stick secant against the no-slip EI_max; slip slope against EI_min, 112 mm three-core cable, zero tension | Zeidan (2025), thesis Figs 5.5–5.6 | stick 141–240 kN·m² vs EI_max 311.1 kN·m² (plane-section 335); diagnosed on for the shear-stack rule | stick ≤ EI_max; slip ≥ EI_min | Pass | -| **Z-ID** | Four-point loops at 30–60 mm in the test arrangement: pressure identified on 40 mm, three amplitudes predicted | Zeidan (2025), Fig. 5.6 | P0 760 kPa; work +10.4 to −9.6 %, RMSE 13.7–15.4 %, moment range −33 to −46 % | work ±20 %, RMSE <10 %, range ±10 % | **Fail** | +| **Z-EI** | Measured stick secant against the no-slip EI_max; slip slope against EI_min, 112 mm three-core cable, zero tension | Zeidan (2025), thesis Figs 5.5–5.6 | stick 141–240 kN·m² vs EI_max 311.1 kN·m² (plane-section 335); slip 8.65–9.70 (plotted curvature) vs EI_min 10.09 kN·m² with the bonded outer face (2.72 without) | stick ≤ EI_max; slip ≥ EI_min | **Fail** | +| **Z-ID** | Four-point loops at 30–60 mm in the test arrangement: pressure identified on 40 mm, three amplitudes predicted; outer armour face bonded (identified input, gap G8) | Zeidan (2025), Fig. 5.6 | P0 1085.9 kPa; work +9.9 / −4.7 / −9.0 %, RMSE 6.4 / 4.3 / 4.4 %, moment range −4.4 / −8.5 / −8.0 % (30 / 50 / 60 mm; 40 mm RMSE 4.5 %). Both faces sliding: P0 760 kPa, range −33 to −46 % | work ±20 %, RMSE <10 %, range ±10 % | Pass | | **HU-3PB** | Conductor loop, third cycle, three-point arrangement | Hu et al. (2022) | loop area +36.7 % (Papailiou), +64.4 % (KH); transition share 32.8 % / 39.4 % | area ±15 %; share 34 ± 10 points | **Fail** | | **HU-uniform** | Same loop at uniform curvature | Hu et al. (2022) | area +4.9 % (Papailiou) | — | Not comparable | | **WITZ-EI** | Full-slip EI_min of a 2.5-inch flexible pipe, 0 bar, parameter-free | Witz (1996), measured gradients 1190 / 1014 N·m² | 1007 N·m² | 913–1309 N·m² | Pass | @@ -107,20 +107,32 @@ quantities are those of the passing rows. In particular: (BM1-loop); identified on it, the small cycles are up to 29 % high (BM1-ID). The source's 0.3 MPa is a tuning parameter of its own FE model and is not used as an input of the gated rows. The 300-bar Witz loop is too narrow after - identification at 0 bar. On the Zeidan (2025) cable the measured stick slope lies below the - 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. + identification at 0 bar. On the Zeidan (2025) cable the identified loops now meet the + registered bands (Z-ID) with the outer armour face bonded; absolute dissipation predictions + carry the uncertainty shown by WITZ-ID and Z-ID. +- **Gap G8 (slip-branch stiffness of compact sections): a bonded outer armour face.** + - With both armour faces sliding, the Zeidan (2025) slip branch is about 3.5 times softer + than measured (2.5–2.6 against 8.65–9.70 kN·m²) and the identified loops miss the moment + range by a third or more. + - The measured loops themselves show what is missing: their dissipation grows linearly with + the amplitude (a friction moment mobilised early and then constant), while their range + grows at 8–11 kN·m², an elastic, non-dissipative stiffness after slip. + - Its source is an armour face that does not slip. Zeidan's sheath sits on the outer armour + with no tape (thesis Table 5.2, Fig. 5.2); with `bonded_face: outer` (an identified input) + the full-slip stiffness is 10.09 kN·m² and Z-ID passes. The rope-filler and taped + constructions (Ménard and Cartraud 2023; Witz 1996) keep both faces sliding and need no + change (BM1, WITZ-EI). Full-scale tests of dynamic cables with bitumen-coated armour + report bending stiffness beyond the stick–slip law and attribute it to the bitumen and to + bonded layers (doc/benchmarks.md); keying by a sheath extruded onto the wires is the + construction identified here for Zeidan's cable. + - Remaining: the bond is about 4–17 % stiffer than the measured slip slope in the plotted + curvature, so the bound row Z-EI fails. The source's own optical deflection profiles + (paper Fig. 18) put the central curvature at 0.78 of the plotted one, which would place + the measured slope above EI_min; the registered row keeps the plotted reading. + - The bonded face is used by the bending law and `compute_stiffness`. The wire-stress, + fatigue and capacity routes refuse it until the bond's share of the wire force is in them. + - The eight mechanisms ruled out earlier are recorded in doc/benchmarks.md ("Known + limitation: slip-branch stiffness of compact sections"). - 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 568fe6a..fe9d2d8 100644 --- a/doc/benchmarks.md +++ b/doc/benchmarks.md @@ -1553,10 +1553,74 @@ 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 +### Gap G8 after 0.2.0: a bonded outer armour face + +**What the measured loops say, without a model.** On the stabilised Zeidan +(2025) loops (thesis Fig. 5.6) the cycle work grows linearly with the +amplitude: 300, 456, 601 and 763 J/m at 30, 40, 50 and 60 mm, a constant +5.1 / 4.7 / 5.2 kJ/m per 1/m. A friction moment that is mobilised early and +then stays constant does this. The moment range grows at 11.2 / 8.7 / +8.1 kN·m² between the same amplitudes: an elastic stiffness after slip that +does not dissipate. With both faces sliding, the full-slip stiffness is +2.72 kN·m², and a law calibrated to the loop height puts all of that height +into friction and dissipates about twice the measured work. + +**Model.** `bonded_face: outer` on the outermost helical layer: + +- the outer face carries no slip, so the friction-setting pressure keeps only + the inner face's share of the bounded radial chain; +- the bond is an elastic spring through the polymer outside the wires, an + inner-loaded layered annulus free at the cable surface plus the strip + concentration (`annulus_mode1_compliance_inner`, `bonded_face_terms`); +- the stuck layer is unchanged; +- in full slip the bond keeps `xi_bond` of the layer's plane-section + stiffness, added in parallel to the law (`bonded_face_ei`). + +**Zeidan.** The sheath sits on the outer armour with no tape (Table 5.2, +Fig. 5.2). With the outer face bonded: + +- `xi_bond` 0.0395, and the full-slip stiffness goes from 2.72 to + 10.09 kN·m²; +- Z-ID passes: P0 1085.9 kPa identified on the 40 mm work; at 30 / 50 / + 60 mm, work +9.9 / −4.7 / −9.0 %, branch RMSE 6.4 / 4.3 / 4.4 %, moment + range −4.4 / −8.5 / −8.0 %. + +The bonded state is an identified input: it is the one that matches the +measured post-slip slope, and the source does not state the interface. + +**The other measured loops keep both faces sliding**, and their slip slopes +already match: + +- Ménard and Cartraud (2023): range growth 3.67 kN·m² between the ±0.045 and + ±0.096 1/m loops, against EI_min 3.57. The paper mentions absorbent tapes. +- Witz (1996), a flexible pipe with anti-wear and outer tapes: 1014–1190 + against 1007 N·m². + +**The same mechanism in full-scale tests.** Dynamic cables with +bitumen-coated armour show bending stiffness beyond the stick–slip law, which +depends on temperature, frequency and cycling, and which the authors attribute +to the bitumen and to bonded layers: + +- Stamelos et al. (2026), Marine Structures 109, 104062; +- Komperød et al. (2017), OMAE2017-61103; +- Mackay and Thies (2026), OMAE2026-175041. + +**Remaining.** + +- The bond is 4–17 % stiffer than the measured slip slope in the plotted + curvature, so the bound row Z-EI fails (8.65–9.70 against 10.09 kN·m²). The + source's optical deflection profiles (paper Fig. 18) give a central + curvature of 0.78 times the plotted one, which would put the measured slope + above EI_min; the registered row keeps the plotted reading. +- The bond enters the bending law and `compute_stiffness` only. The + wire-stress, fatigue and capacity routes refuse a bonded face until they + carry the bond's share of the wire force. + +### Known limitation: slip-branch stiffness of compact sections (0.2.0) + +Gap G8 was closed for release 0.2.0 as a documented known limitation; the +section above supersedes it. No mechanism tested with source inputs closed it +then. 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. diff --git a/src/cablexsec/api.py b/src/cablexsec/api.py index 41cb3af..93f303c 100644 --- a/src/cablexsec/api.py +++ b/src/cablexsec/api.py @@ -212,6 +212,8 @@ STICK_SUPPORTS, axial_torsional_matrix, bending_stiffness_by_layer, + bonded_face_ei, + bonded_face_terms, ea_fixed, ea_free, ei_max_stuck, @@ -345,7 +347,8 @@ class StiffnessResult: ea_free_N : float Free-end (Schur-reduced) axial stiffness ``K_ee − K_et²/K_tt`` [N]. ei_min_Nm2 : float - Full-slip bending stiffness (individual-wire bending) [N·m²]. + Full-slip bending stiffness (individual-wire bending) [N·m²], plus the + elastic share of any bonded outer armour face (``bonded_face``, gap G8). ei_max_Nm2 : float No-slip bending stiffness with the selected shear compliance [N·m²]. This is not the component-axis plane-section limit when xi < 1. @@ -436,12 +439,18 @@ def compute_stiffness( lyr.name: xi_for_layer(cable, lyr.name, stick_support=stick_support) for lyr in cable.helical_layers } + for lyr in cable.helical_layers: + if lyr.bonded_face == "outer" and lyr.structural: + # Stuck, the support and the bond act in parallel (gap G8), as in + # the bending law: report that stick coefficient. + terms = bonded_face_terms(cable, lyr.name, xi_map[lyr.name]) + xi_map[lyr.name] = terms.xi_slider + terms.xi_bond bending = bending_stiffness_by_layer(cable, xi_map) return StiffnessResult( cable_name=cable.cable.name, ea_fixed_N=ea_fixed(cable), ea_free_N=ea_free(cable), - ei_min_Nm2=ei_min_slip(cable), + ei_min_Nm2=ei_min_slip(cable) + bonded_face_ei(cable), ei_max_Nm2=ei_max_stuck(cable, xi_map), gj_Nm2=at.K_tt, axial_torsion_coupling_Nm=at.K_et, @@ -663,13 +672,14 @@ def _prepare_mkappa_law( section_state=section_state, radial_state=radial_state, stick_support=stick_support, + bonded_faces=True, ) ei_min = ei_min_slip( cable, modulus_scale=section_state.modulus_scale if section_state is not None else None, - ) + ) + bonded_face_ei(cable) # the bonds' elastic share (gap G8); 0 without model = ( None if core_spec is None diff --git a/src/cablexsec/cable_adapters.py b/src/cablexsec/cable_adapters.py index 56f6b30..a70e6af 100644 --- a/src/cablexsec/cable_adapters.py +++ b/src/cablexsec/cable_adapters.py @@ -582,6 +582,7 @@ def cable_to_mkappa_specs( section_state: SectionState | None = None, radial_state: CableRadialState | None = None, stick_support: str = "yun_stack", + bonded_faces: bool = False, ) -> list[HelicalLayerSpec]: r"""Build frozen M-κ specs for a cable's structural armour layers. @@ -598,14 +599,61 @@ def cable_to_mkappa_specs( :func:`~cablexsec.mechanics.stiffness.xi_for_layer` (``"yun_stack"``, the default, or the opt-in ``"annulus"``). + A layer with ``bonded_face="outer"`` (gap G8) slides on its inner face + only: its friction-setting pressure and normal load keep the inner face's + share ``P_inner / (P_inner + P_outer)`` of the bounded radial chain, and + its stick coefficient is the slider's share ``xi_tot - xi_bond`` of + :func:`~cablexsec.mechanics.stiffness.bonded_face_terms`. The bond's + elastic share is not in these specs: the bending law adds + :func:`~cablexsec.mechanics.stiffness.bonded_face_ei` to its parallel + EI. Only callers that do so pass ``bonded_faces=True``; any other route + (wire stress, fatigue, capacity) would miss the bond's share of the wire + force and is refused for such a cable. + Raises ------ CableSchemaError - If the cable has no fully-specified structural armour layer. + If the cable has no fully-specified structural armour layer, or + declares a bonded face on a route that does not support it. """ - from cablexsec.mechanics.stiffness import xi_for_layer # noqa: PLC0415 + from cablexsec.mechanics.stiffness import ( # noqa: PLC0415 + bonded_face_terms, + xi_for_layer, + ) require_fully_specified(cable, "cable_to_mkappa_specs") + bonded = [ + lyr for lyr in structural_armour_layers(cable) if lyr.bonded_face == "outer" + ] + face_split: dict[str, tuple[float, float]] = {} + if bonded: + names = ", ".join(lyr.name for lyr in bonded) + if not bonded_faces: + raise CableSchemaError( + f"{names}: bonded_face='outer' is implemented for the bending law " + "(compute_mkappa, SectionLaw, the exported law) and " + "compute_stiffness; this route would miss the bond's share of the " + "wire force" + ) + if ( + contact_model != "bounded" + or section_state is not None + or radial_state is not None + ): + raise CableSchemaError( + f"{names}: bonded_face='outer' is implemented with the bounded " + "contact model, without a section or radial state" + ) + if any( + lyr.winding_stress_Pa or lyr.pretension_Pa for lyr in cable.helical_layers + ): + raise CableSchemaError( + f"{names}: bonded_face='outer' with a declared winding stress or " + "pretension is not implemented (the face split of the pressure jump)" + ) + p_ext = cable.initial_state.external_pressure_Pa + loaded = compute_contact_forces(cable, tension_N, p_ext_Pa=p_ext) + face_split = _bounded_face_pressures(cable, loaded.interface_pressure_Pa, p_ext) if contact_model == "solved" and radial_state is None: radial_state = solve_cable_radial_state(cable, tension_N) fn_map = _normal_force_map( @@ -629,6 +677,20 @@ def cable_to_mkappa_specs( mu_eff = ( mu if mu is not None else library.get_property(lyr.material, "mu_on_hdpe") ) + xi = xi_for_layer( + cable, + lyr.name, + youngs_modulus_Pa=section_state.youngs_modulus_Pa + if section_state is not None + else None, + stick_support=stick_support, + ) + f_n, pressure = fn_map[lyr.name], pressure_map[lyr.name] + if lyr.bonded_face == "outer": + below, above = face_split[lyr.name] + share = below / (below + above) if below + above > 0.0 else 0.0 + f_n, pressure = f_n * share, pressure * share + xi = bonded_face_terms(cable, lyr.name, xi).xi_slider specs.append( HelicalLayerSpec( n_wires=lyr.n_wires, @@ -640,18 +702,11 @@ def cable_to_mkappa_specs( A_wire_m2=math.pi * lyr.d_wire_m**2 / 4.0 if lyr.wire_shape == "round" else lyr.wire_section.area, - xi=xi_for_layer( - cable, - lyr.name, - youngs_modulus_Pa=section_state.youngs_modulus_Pa - if section_state is not None - else None, - stick_support=stick_support, - ), + xi=xi, mu=mu_eff, - F_n_axi_N=fn_map[lyr.name], + F_n_axi_N=f_n, shape_g=None, - contact_pressure_Pa=pressure_map[lyr.name], + contact_pressure_Pa=pressure, normal_load_is_line=True, section=None if lyr.wire_shape == "round" else lyr.wire_section, ) diff --git a/src/cablexsec/cables/schema.py b/src/cablexsec/cables/schema.py index 7150936..1442ab9 100644 --- a/src/cablexsec/cables/schema.py +++ b/src/cablexsec/cables/schema.py @@ -587,6 +587,16 @@ class HelicalLayer(_LayerBase): # curvature of the wire's individual bending in the full-slip bending # stiffness (cablexsec.mechanics.tendon_bending.curvature_coefficients). transverse_slip_fraction: float = 0.0 + # Interface condition of the layer's outer face (gap G8). "none" (default): + # both faces slide by Coulomb friction. "outer": the outer face is bonded, + # for example a sheath extruded directly onto the wires (no tape between) + # or a bitumen or compound bond; it carries no slip, only the elastic + # coupling of the polymer outside (cablexsec.mechanics.stiffness + # .bonded_face_terms). Allowed on the outermost helical layer with + # cylindrical polymer layers outside it. Used by the bending law + # (compute_mkappa, SectionLaw, the exported law) and compute_stiffness; + # the wire-stress routes refuse it. + bonded_face: Literal["none", "outer"] = "none" # Declared manufacturing clamping state (value, basis, source); see # ManufacturingClamping and cablexsec.clamping. When given it sets the # equivalent legacy field below, which every contact route reads. diff --git a/src/cablexsec/cables/zeidan2025.yaml b/src/cablexsec/cables/zeidan2025.yaml index b8b0ca6..ff1a6e7 100644 --- a/src/cablexsec/cables/zeidan2025.yaml +++ b/src/cablexsec/cables/zeidan2025.yaml @@ -161,6 +161,12 @@ layers: lay_angle_deg: 14.23 # atan(2 pi r / 1233 mm) lay_direction: left_hand # pitch -1233 mm bulk_sn: saevik_2011_flat_steel + # Outer face bonded to the sheath (gap G8). Not published: the sheath sits + # on the wires with no tape in [Zeidan2025] Table 5.2 and Fig. 5.2, and the + # bonded state is the one that matches the measured post-slip slope of the + # stabilised loops (range growth 11.2 / 8.7 / 8.1 kN m2 between 30 and + # 60 mm against 2.7 kN m2 with both faces sliding). An identified input. + bonded_face: outer source: "[Zeidan2026] Table 3 (armouring exterior OD 103 mm, 82 x 3.5 mm, pitch -1233 mm)" - name: outer_sheath diff --git a/src/cablexsec/mechanics/stick_support.py b/src/cablexsec/mechanics/stick_support.py index e6b95de..d61571a 100644 --- a/src/cablexsec/mechanics/stick_support.py +++ b/src/cablexsec/mechanics/stick_support.py @@ -48,6 +48,7 @@ __all__ = [ "SupportCondition", "annulus_mode1_compliance", + "annulus_mode1_compliance_inner", "strip_concentration_compliance", ] @@ -122,6 +123,54 @@ def annulus_mode1_compliance( return w / sigma +def annulus_mode1_compliance_inner( + layers: Sequence[tuple[float, float, float]], +) -> float: + """Inner-surface compliance ``w(r_i) / tau_z`` [m/Pa] with a free outer surface. + + The mode-1 antiplane problem of :func:`annulus_mode1_compliance`, loaded + on the INNER surface of the stack and free of shear stress on its outer + surface: the polymer outside a helical layer whose outer face is bonded to + it (a sheath extruded onto the wires). For one layer it is + ``r_i (r_i^2 + r_o^2) / (G (r_o^2 - r_i^2))``. + + Parameters + ---------- + layers : sequence of (r_inner, r_outer, G) + Layers from the inside out: radii [m], shear modulus [Pa]. A radial + gap between consecutive layers is rigid (it keeps the displacement and + the shear flow ``sigma r``); an overlap within the cable schema's + radial tolerance is a touching interface, a larger one is refused. + + Returns + ------- + float + Axial surface displacement amplitude per unit axial traction + amplitude at the inner radius; ``0`` for an empty stack. + """ + if not layers: + return 0.0 + seq = list(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") + for (_, r_out_a, _), (r_in_b, _, _) in zip(seq[:-1], seq[1:], strict=True): + if r_out_a - r_in_b > _radial_tol(r_out_a): + raise ValueError("layers must not overlap") + # Free outer surface (w = 1, zero shear stress); carry the field inward. + w, sigma = 1.0, 0.0 + r_prev = seq[-1][1] + for r_in, r_out, g in reversed(seq): + r_out = min(r_out, r_prev) # a touching interface starts at r_prev + if r_out < r_prev: + sigma *= r_prev / r_out # rigid gap: shear flow sigma r is kept + w, sigma = _propagate(w, sigma, r_out, r_in, g) + r_prev = r_in + return abs(w / sigma) + + def strip_concentration_compliance( spacing_m: float, half_width_m: float, diff --git a/src/cablexsec/mechanics/stiffness.py b/src/cablexsec/mechanics/stiffness.py index e2b2b04..99c80d7 100644 --- a/src/cablexsec/mechanics/stiffness.py +++ b/src/cablexsec/mechanics/stiffness.py @@ -55,6 +55,7 @@ _radial_tol, is_serving, layer_stiffness, + uses_cable_materials, ) from cablexsec.exceptions import CableInputError from cablexsec.materials import library @@ -93,6 +94,11 @@ "require_stick_support", "xi_for_layer", "yun_shear_stack", + "BondedFaceTerms", + "bonded_face_stack", + "bonded_face_stiffness", + "bonded_face_terms", + "bonded_face_ei", "BendingStiffnessContribution", "bending_stiffness_by_layer", ] @@ -736,6 +742,202 @@ def xi_for_layer( return yun_xi(k_g, ea_w, layer.lay_angle_rad, layer.r_helix_m) +# --------------------------------------------------------------------------- # +# Bonded outer armour face (gap G8) # +# --------------------------------------------------------------------------- # +@dataclass(frozen=True) +class BondedFaceTerms: + """Terms of a helical layer whose outer face is bonded (``bonded_face="outer"``). + + Attributes + ---------- + stiffness_N_m2 : float + Per-wire, per-length stiffness ``K_b`` of the bond through the polymer + outside the wires [N/m²]. + xi_bond : float + ``K_b / (K_b + EA_w sin^2(a) / r_h^2)``: the elastic share the bond keeps + in full slip. + xi_slider : float + Stick coefficient left to the friction slider: ``xi_tot - xi_bond``, + with ``xi_tot`` the support and the bond in parallel. The stuck layer + is then unchanged, and full slip leaves exactly ``xi_bond``. + ei_bond_Nm2 : float + ``xi_bond * 1/2 n_w E_w A_w r_h^2 cos^3(a)``: the bond's bending + stiffness, elastic and history-free, in parallel with the law. + """ + + stiffness_N_m2: float + xi_bond: float + xi_slider: float + ei_bond_Nm2: float + + +@uses_cable_materials +def bonded_face_stack( + cable: CableData, layer_name: str +) -> tuple[CylindricalLayer, ...]: + """Polymer layers outside a helical layer with a bonded outer face (inside out). + + The layer must be the outermost helical layer, and a cylindrical layer + with an isotropic modulus must touch its wires; every cylindrical layer + outside it with a modulus and a positive thickness is in the stack, which + is free of shear stress at the cable surface. + """ + layer = cable.get_layer(layer_name) + if not isinstance(layer, HelicalLayer) or layer.r_helix_m is None: + raise CableInputError(f"{layer_name}: bonded_face needs a helical layer") + if any( + (h.r_helix_m or 0.0) > layer.r_helix_m + for h in cable.helical_layers + if h.name != layer.name + ): + raise CableInputError( + f"{layer_name}: bonded_face='outer' is implemented for the outermost " + "helical layer only" + ) + r_face = layer.r_helix_m + 0.5 * layer.wire_radial_thickness_m + stack = sorted( + ( + lyr + for lyr in cable.layers + if isinstance(lyr, CylindricalLayer) + and lyr.r_inner_m is not None + and lyr.r_outer_m is not None + and lyr.r_outer_m > lyr.r_inner_m + and lyr.r_inner_m >= r_face - _radial_tol(r_face) + and _has_modulus(lyr.material) + ), + key=lambda lyr: lyr.r_inner_m or 0.0, + ) + if not stack or (stack[0].r_inner_m or 0.0) - r_face > _radial_tol(r_face): + raise CableInputError( + f"{layer_name}: bonded_face='outer' needs a cylindrical polymer layer " + "on the wires (no gap)" + ) + return tuple(stack) + + +@uses_cable_materials +def bonded_face_stiffness( + cable: CableData, + layer_name: str, + *, + youngs_modulus_Pa: Mapping[str, float] | None = None, +) -> float: + """Per-wire bond stiffness ``K_b`` [N/m²] of a bonded outer face. + + The polymer outside the wires as a layered annulus loaded on its inner + surface and free at the cable surface + (:func:`~cablexsec.mechanics.stick_support.annulus_mode1_compliance_inner`), + with the axial and circumferential shares of the wire direction as in the + ``"annulus"`` stick support, spread over the wire spacing, plus the + concentration of the load on the wire's own width. + """ + from cablexsec.mechanics.stick_support import ( # noqa: PLC0415 + annulus_mode1_compliance_inner, + strip_concentration_compliance, + ) + + layer = cable.get_layer(layer_name) + assert isinstance(layer, HelicalLayer) + 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 bonded_face_stack(cable, layer_name): + 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 + alpha = abs(layer.lay_angle_rad) + r_contact = rows[0][0] + 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 + try: + compliance = ( + math.cos(alpha) ** 2 * annulus_mode1_compliance_inner(rows) + + 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 bonded-face stiffness cannot be evaluated: {error}" + ) from error + return math.inf if compliance <= 0.0 else 1.0 / compliance + + +@uses_cable_materials +def bonded_face_terms( + cable: CableData, + layer_name: str, + xi_support: float, + *, + youngs_modulus_Pa: Mapping[str, float] | None = None, +) -> BondedFaceTerms: + """Bond terms of a helical layer with a bonded outer face (gap G8). + + The wires slide only on their inner face. The bond is a spring ``K_b`` + (:func:`bonded_face_stiffness`) in parallel with the inner support + ``K_s = xi_support k2 / (1 - xi_support)``, ``k2 = EA_w sin^2(a)/r_h^2``. + Stuck, the layer has ``xi_tot = (K_s + K_b) / (K_s + K_b + k2)`` + (``1`` for a rigid support); in full slip the bond keeps + ``xi_bond = K_b / (K_b + k2)``. The friction slider is given + ``xi_tot - xi_bond`` and the bond's ``xi_bond`` share of the + plane-section stiffness is added to the parallel EI of the law. + """ + layer = cable.get_layer(layer_name) + assert isinstance(layer, HelicalLayer) + assert layer.lay_angle_rad is not None and layer.r_helix_m is not None + assert layer.n_wires is not None + if not (0.0 < xi_support <= 1.0): + raise CableInputError(f"{layer_name}: xi_support must lie in (0, 1]") + k_b = bonded_face_stiffness(cable, layer_name, youngs_modulus_Pa=youngs_modulus_Pa) + e_wire = ( + youngs_modulus_Pa[layer.name] + if youngs_modulus_Pa is not None + else _E(layer.material) + ) + ea_w = e_wire * _wire_area(layer) + alpha = layer.lay_angle_rad + k2 = ea_w * math.sin(alpha) ** 2 / layer.r_helix_m**2 + xi_bond = yun_xi(k_b, ea_w, alpha, layer.r_helix_m) + if xi_support >= 1.0 or math.isinf(k_b): + xi_tot = 1.0 + else: + k_s = xi_support * k2 / (1.0 - xi_support) + xi_tot = (k_s + k_b) / (k_s + k_b + k2) + ei_plane = 0.5 * layer.n_wires * ea_w * layer.r_helix_m**2 * math.cos(alpha) ** 3 + return BondedFaceTerms(k_b, xi_bond, xi_tot - xi_bond, xi_bond * ei_plane) + + +@uses_cable_materials +def bonded_face_ei( + cable: CableData, *, youngs_modulus_Pa: Mapping[str, float] | None = None +) -> float: + """Sum of the bonds' bending stiffness ``ei_bond_Nm2`` over the cable [N·m²]. + + Zero when no structural helical layer declares ``bonded_face="outer"``. + The bond's share does not depend on the inner support, so + ``xi_support = 1`` is used. + """ + return sum( + bonded_face_terms( + cable, lyr.name, 1.0, youngs_modulus_Pa=youngs_modulus_Pa + ).ei_bond_Nm2 + for lyr in cable.helical_layers + if lyr.bonded_face == "outer" and lyr.structural + ) + + # --------------------------------------------------------------------------- # # Load sharing # # --------------------------------------------------------------------------- # diff --git a/tests/test_bonded_face.py b/tests/test_bonded_face.py new file mode 100644 index 0000000..9224761 --- /dev/null +++ b/tests/test_bonded_face.py @@ -0,0 +1,213 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2026 Jae Hoon Seo, SMI Lab, Inha University +"""Bonded outer armour face (``bonded_face="outer"``, gap G8). + +Closed form of the inner-loaded annulus compliance; the default unchanged bit +for bit; the stuck section unchanged and the full-slip tangent raised by the +bond's share; the friction cap from the inner face only; energy balance; and +refusal on the routes that would miss the bond's share of the wire force. +""" + +from __future__ import annotations + +import math +from importlib.resources import files + +import numpy as np +import pytest +from pydantic import ValidationError + +import cablexsec as cx +from cablexsec.api import _prepare_mkappa_law +from cablexsec.cable_adapters import ( + _bounded_face_pressures, + cable_to_mkappa_specs, +) +from cablexsec.cables.schema import CableData +from cablexsec.exceptions import CableInputError, CableSchemaError +from cablexsec.mechanics.axisymmetric import compute_contact_forces +from cablexsec.mechanics.stick_support import annulus_mode1_compliance_inner +from cablexsec.mechanics.stiffness import ( + bonded_face_ei, + bonded_face_terms, + ei_min_slip, + xi_for_layer, +) + +G = 3.0e8 + + +def _zeidan() -> CableData: + return cx.load_cable( + files("cablexsec.cables") / "zeidan2025.yaml", geometry_override=None + ) + + +def _bond( + cable: CableData, name: str = "outer_armour", face: str = "outer" +) -> CableData: + layers = [ + lyr.model_copy(update={"bonded_face": face}) if lyr.name == name else lyr + for lyr in cable.layers + ] + return cable.model_copy(update={"layers": layers}) + + +def _law(cable: CableData): # type: ignore[no-untyped-def] + with cable.material_scope(): + return _prepare_mkappa_law( + cable, + 0.0, + mu=0.2, + phi_bend=0.0, + contact_model="bounded", + section_state=None, + radial_state=None, + core_spec=None, + progressive=None, + ) + + +@pytest.mark.analytical_sanity +def test_inner_loaded_single_layer_is_the_closed_form() -> None: + r_i, r_o = 0.05, 0.056 + expected = r_i * (r_i**2 + r_o**2) / (G * (r_o**2 - r_i**2)) + assert annulus_mode1_compliance_inner([(r_i, r_o, G)]) == pytest.approx( + expected, rel=1e-12 + ) + + +@pytest.mark.analytical_sanity +def test_inner_loaded_split_layer_equals_the_whole_layer() -> None: + whole = annulus_mode1_compliance_inner([(0.05, 0.056, G)]) + split = annulus_mode1_compliance_inner([(0.05, 0.053, G), (0.053, 0.056, G)]) + assert split == pytest.approx(whole, rel=1e-12) + + +def test_inner_loaded_refuses_overlap_and_empty_is_zero() -> None: + assert annulus_mode1_compliance_inner([]) == 0.0 + with pytest.raises(ValueError, match="overlap"): + annulus_mode1_compliance_inner([(0.05, 0.056, G), (0.054, 0.06, G)]) + + +def test_default_cable_has_no_bond_and_an_unchanged_law() -> None: + cable = _bond(_zeidan(), face="none") + with cable.material_scope(): + assert bonded_face_ei(cable) == 0.0 + ei_min = ei_min_slip(cable) + menard = cx.load_cable(cx.menard2023_yaml_path(), geometry_override=None) + explicit = _bond(menard, name="outer_armour", face="none") + np.testing.assert_array_equal( + _law(menard).run(np.linspace(0.0, 0.1, 51)).moment_Nm, + _law(explicit).run(np.linspace(0.0, 0.1, 51)).moment_Nm, + ) + explicit = _bond(cable, face="none") + kappa = np.r_[np.linspace(0.0, 0.1, 51), np.linspace(0.1, -0.1, 101)[1:]] + a, b = _law(cable).run(kappa), _law(explicit).run(kappa) + np.testing.assert_array_equal(a.moment_Nm, b.moment_Nm) + assert cx.compute_stiffness(cable).ei_min_Nm2 == ei_min + + +def test_bond_terms_keep_the_stuck_layer_and_add_the_bond_share() -> None: + cable = _bond(_zeidan()) + with cable.material_scope(): + xi_support = xi_for_layer(cable, "outer_armour") + terms = bonded_face_terms(cable, "outer_armour", xi_support) + # A compliant support: stuck, the support and the bond in parallel. + soft = bonded_face_terms(cable, "outer_armour", 0.5) + ei_bond = bonded_face_ei(cable) + assert 0.0 < terms.xi_bond < 1.0 + if xi_support >= 1.0: + assert terms.xi_slider + terms.xi_bond == pytest.approx(1.0, abs=1e-15) + k2 = terms.stiffness_N_m2 * (1.0 - terms.xi_bond) / terms.xi_bond + k_s = 0.5 * k2 / 0.5 # xi_support = 0.5 + expected = (k_s + terms.stiffness_N_m2) / (k_s + terms.stiffness_N_m2 + k2) + assert soft.xi_slider + soft.xi_bond == pytest.approx(expected, rel=1e-12) + assert ei_bond == pytest.approx(terms.ei_bond_Nm2, rel=1e-15) + + +def test_law_stuck_stiffness_unchanged_and_full_slip_tangent_raised() -> None: + base, bonded = _bond(_zeidan(), face="none"), _zeidan() + law0, law1 = _law(base), _law(bonded) + with bonded.material_scope(): + ei_bond = bonded_face_ei(bonded) + assert law1.ei_min == pytest.approx(law0.ei_min + ei_bond, rel=1e-15) + stuck0 = law0.ei_min + sum(s.EI_stick for s in law0.layers) + stuck1 = law1.ei_min + sum(s.EI_stick for s in law1.layers) + assert stuck1 == pytest.approx(stuck0, rel=1e-12) + kappa = np.linspace(0.0, 0.3, 601) + m = law1.run(kappa).moment_Nm + tangent = (m[-1] - m[-41]) / (kappa[-1] - kappa[-41]) + assert tangent == pytest.approx(law1.ei_min, rel=1e-6) + + +def test_friction_cap_is_the_inner_face_share() -> None: + base, bonded = _bond(_zeidan(), face="none"), _zeidan() + with bonded.material_scope(): + p_ext = bonded.initial_state.external_pressure_Pa + cf = compute_contact_forces(bonded, 0.0, p_ext_Pa=p_ext) + below, above = _bounded_face_pressures(bonded, cf.interface_pressure_Pa, p_ext)[ + "outer_armour" + ] + s0 = cable_to_mkappa_specs(base, mu=0.2) + s1 = cable_to_mkappa_specs(bonded, mu=0.2, bonded_faces=True) + share = below / (below + above) + assert 0.0 < share < 1.0 + names = [lyr.name for lyr in bonded.helical_layers] + i = names.index("outer_armour") + assert s1[i].contact_pressure_Pa == pytest.approx( + s0[i].contact_pressure_Pa * share, rel=1e-12 + ) + assert s1[i].F_n_axi_N == pytest.approx(s0[i].F_n_axi_N * share, rel=1e-12) + j = names.index("inner_armour") + assert s1[j] == s0[j] + + +def test_bonded_law_closes_its_energy_balance() -> None: + kappa = np.r_[np.linspace(0.0, 0.15, 151), np.linspace(0.15, -0.15, 301)[1:]] + work = _law(_bond(_zeidan())).run(kappa).work + scale = float(np.max(np.abs(work.friction_J_per_m))) + 1.0 + assert np.max(np.abs(work.balance_residual_J_per_m)) < 1e-6 * scale + + +def test_routes_without_the_bond_share_refuse_a_bonded_cable() -> None: + bonded = _bond(_zeidan()) + with bonded.material_scope(), pytest.raises(CableSchemaError, match="bonded_face"): + cable_to_mkappa_specs(bonded, mu=0.2) + with bonded.material_scope(), pytest.raises(CableSchemaError, match="bounded"): + cable_to_mkappa_specs(bonded, mu=0.2, contact_model="qp", bonded_faces=True) + + +def test_bond_needs_the_outermost_helical_layer() -> None: + cable = _bond(_zeidan(), name="inner_armour") + with cable.material_scope(), pytest.raises(CableInputError, match="outermost"): + bonded_face_terms(cable, "inner_armour", 1.0) + + +def test_schema_refuses_an_unknown_face() -> None: + lyr = next(lyr for lyr in _zeidan().layers if lyr.name == "outer_armour") + with pytest.raises(ValidationError): + type(lyr).model_validate({**lyr.model_dump(), "bonded_face": "inner"}) + + +def test_bond_share_is_small_for_a_thick_soft_free_sheath() -> None: + cable = _bond(_zeidan()) + with cable.material_scope(): + terms = bonded_face_terms(cable, "outer_armour", 1.0) + assert math.isfinite(terms.stiffness_N_m2) and terms.xi_bond < 0.2 + + +def test_exported_law_carries_the_bond_and_runs_outside_a_scope() -> None: + """The global-analysis export (raw module function, no outer material + scope) reads the cable's own materials and exports the bonded full-slip + stiffness.""" + from cablexsec.analysis.bending_law import export_bending_law # noqa: PLC0415 + + cable = _zeidan() + out = export_bending_law( + cable, tensions_N=[0.0, 50e3], kappa_max_1_m=0.2, n_points=40 + ) + sliding = cx.compute_stiffness(_bond(cable, face="none")).ei_min_Nm2 + bond = bonded_face_ei(cable) # decorated: its own material scope + np.testing.assert_allclose(out.ei_slip_Nm2, sliding + bond, rtol=1e-12) + assert bond > 1e3 diff --git a/tests/test_zeidan2025.py b/tests/test_zeidan2025.py index 4c527eb..aff9f69 100644 --- a/tests/test_zeidan2025.py +++ b/tests/test_zeidan2025.py @@ -117,20 +117,22 @@ def test_cable_geometry_follows_the_paper_table(): @full_scale def test_z_ei_reports_the_registered_outcome(): - """The measured stick secant lies below the packaged no-slip EI_max and - the measured slip slope above EI_min: Z-EI passes. Diagnosed on, not - independent: this row found the defect of the former shear stack, which - counted the EPR of the offset cores (xi 0.009 / 0.016, EI_max 12.0 kN m2, - FAIL). The stack now stops at the support: the bedding under the inner - armour (xi 0.832) and nothing between the armours (xi 1).""" + """The measured stick secant lies below the packaged no-slip EI_max; the + measured slip slope (plotted curvature) lies 4-17 % below EI_min with the + bonded outer face of the packaged input (gap G8): Z-EI fails narrowly. + With both faces sliding EI_min is 2.72 kN m2 and the slope is about 3.5 + times above it. The shear stack stops at the support: the bedding under + the inner armour (xi 0.832) and nothing between the armours (xi 1; the + bonded outer layer keeps it, its support being rigid).""" out = zd.z_ei() - assert out["pass"] is True + assert out["pass"] is False assert out["pass_plane_section"] is True assert list(out["xi"].values()) == pytest.approx([0.832, 1.0], abs=1e-3) assert out["ei_max_Nm2"] == pytest.approx(311.1e3, rel=1e-3) + assert out["ei_min_Nm2"] == pytest.approx(10.09e3, rel=1e-3) for amp in zd.AMPLITUDES_MM: assert max(out["stick_true_Nm2"][amp]) < out["ei_max_Nm2"] - assert out["slip_Nm2"][amp] > 3 * out["ei_min_Nm2"] + assert 0.83 < out["slip_Nm2"][amp] / out["ei_min_Nm2"] < 1.0 @full_scale diff --git a/validation/validation_report.md b/validation/validation_report.md index 5ef3adb..845780a 100644 --- a/validation/validation_report.md +++ b/validation/validation_report.md @@ -55,8 +55,8 @@ Every row is computed from published data or closed-form references in this repo | 2 | BM1 | Ménard full-slip EI_min (calibration-free) | < 15% | 0.6% (EI_min 3571 N·m²) | PASS | | 2 | BM1-loop | Ménard +/-0.10 M-kappa (range b), clamping identified on the measured +/-0.05 cycle work (range a), four-point test arrangement (Sec. 3: M = Fa L1, LVDT parabola) | ordered RMSE < 5%; matched experimental cycle work within 10% | P0 190.1 kPa; model -474/474 N·m and W=44.4 J/m vs measured 62.3 J/m; measured -502/526 N·m; ordered RMSE 5.45%; matched experimental work difference -28.8% | FAIL | | 2 | BM1-ID | Ménard laid cores, wedged trefoil and filler profiles (mu 0.2): P0 identified on range (b) cycle work, ranges (a), (c)-(f) predicted | (b) ordered RMSE < 5%; (a), (c)-(f) cycle work within 20% and ordered RMSE < 10% | P0 215.9 kPa; (a) +28.5% / 5.85%; (b) +0.0% / 2.75%; (c) +26.2% / 6.47%; (d) +15.2% / 4.96%; (e) -6.5% / 4.59%; (f) -11.7% / 4.43% | FAIL | -| 2 | Z-EI | Zeidan (2025) four-point test, 112 mm three-core cable: measured stick secant (x1.425, reading R2) vs the no-slip EI_max; measured slip slope vs EI_min (parameter-free) | stick secant <= EI_max and slip slope >= EI_min at 30-60 mm | stick 141-240 kN·m² vs EI_max 311.1 kN·m² (xi 0.832/1.000; plane-section 335 kN·m²); slip 8.65-9.70 vs EI_min 2.72 kN·m² | PASS | -| 2 | Z-ID | Zeidan (2025) loops at 30-60 mm in the four-point arrangement (reading R2), laid cores with wedge and filler profiles (mu 0.2): P0 identified on the 40 mm work, 30, 50, 60 mm predicted | 40 mm branch RMSE < 5%; 30, 50, 60 mm work within 20%, RMSE < 10%, moment range within 10% | P0 759.8 kPa; 30 mm +10.4% / 14.2% / -32.6%; 40 mm -0.0% / 13.7% / -39.5%; 50 mm -5.1% / 14.7% / -43.2%; 60 mm -9.6% / 15.4% / -45.5% | FAIL | +| 2 | Z-EI | Zeidan (2025) four-point test, 112 mm three-core cable: measured stick secant (x1.425, reading R2) vs the no-slip EI_max; measured slip slope vs EI_min (parameter-free) | stick secant <= EI_max and slip slope >= EI_min at 30-60 mm | stick 141-240 kN·m² vs EI_max 311.1 kN·m² (xi 0.832/1.000; plane-section 335 kN·m²); slip 8.65-9.70 vs EI_min 10.09 kN·m² | FAIL | +| 2 | Z-ID | Zeidan (2025) loops at 30-60 mm in the four-point arrangement (reading R2), laid cores with wedge and filler profiles (mu 0.2): P0 identified on the 40 mm work, 30, 50, 60 mm predicted | 40 mm branch RMSE < 5%; 30, 50, 60 mm work within 20%, RMSE < 10%, moment range within 10% | P0 1085.9 kPa; 30 mm +9.9% / 6.4% / -4.4%; 40 mm +0.0% / 4.5% / -8.0%; 50 mm -4.7% / 4.3% / -8.5%; 60 mm -9.0% / 4.4% / -8.0% | PASS (identified, then predicted) | | 2 | HU-3PB | Hu et al. (2022) conductor loop, third cycle, in its three-point arrangement (440 mm, ±6 mm; M = FL/4, kappa = 12w/L²) | loop area 3.185 N·m/m ±15% and transition share 34% ±10 points | KH: area 5.236 N·m/m (+64.4%), share 39.4%, M_max 8.83 N·m; Papailiou: area 4.354 N·m/m (+36.7%), share 32.8%, M_max 8.11 N·m | FAIL | | 2 | HU-uniform | Hu et al. (2022) conductor loop at uniform curvature (pre-T1 basis, kept for continuity) | loop area 3.185 N·m/m ±15% and transition share 34% ±10 points | KH: area 4.084 N·m/m (+28.2%), share 1.7%, M_max 7.58 N·m; Papailiou: area 3.340 N·m/m (+4.9%), share 1.7%, M_max 7.07 N·m | NOT COMPARABLE (the test does not impose uniform curvature) | | 2 | WITZ-EI | Witz (1996) pipe full-slip EI_min, 0 bar, vs measured gradients 1190 / 1014 N·m² (parameter-free) | within [913, 1309] N·m² (gradients ±10%) | 1007 N·m² (-15.4% / -0.7%) | PASS | @@ -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: `1316 passed` +- analytical_sanity: `1318 passed` - independent_method: `92 passed` - full_scale: `59 passed` From bd1d39760e37152b1643ff697f0f8bfc6f289e74 Mon Sep 17 00:00:00 2001 From: Jae Hoon Seo Date: Sun, 22 Nov 2026 20:29:21 +0900 Subject: [PATCH 2/2] fix: split a tension-history pressure at a bonded face compute_mkappa with contact_tension_history_N replaced the specs' friction-setting pressure with the unsplit P1+P2 history, so a bonded outer face slid on both faces along the history. Each sample now keeps the inner face's share of the bounded chain (affine in tension, two solves), as the specs do at a fixed tension. A user-supplied contact_pressure_Pa history, which cannot be split without its contact state, is refused for a bonded layer. Signed-off-by: Jae Hoon Seo --- src/cablexsec/api.py | 44 +++++++++++++++++++++++++++++++++++++++ tests/test_bonded_face.py | 31 +++++++++++++++++++++++++++ 2 files changed, 75 insertions(+) diff --git a/src/cablexsec/api.py b/src/cablexsec/api.py index 93f303c..bc3111c 100644 --- a/src/cablexsec/api.py +++ b/src/cablexsec/api.py @@ -988,8 +988,21 @@ def compute_mkappa( raise CableSchemaError("contact_model must be 'bounded', 'qp' or 'solved'.") # Armour layers in the order of the law's specifications. names = [layer.name for layer in structural_armour_layers(cable)] + bonded = [ + layer.name + for layer in structural_armour_layers(cable) + if layer.bonded_face == "outer" + ] pressure_history: dict[str, FloatArray] | None = None if contact_pressure_Pa is not None: + if bonded: + # A P1+P2 history cannot be split into its faces without the + # contact state that produced it (gap G8). + raise CableSchemaError( + f"{', '.join(bonded)}: contact_pressure_Pa gives P1+P2, which a " + "bonded outer face cannot split into its sliding share; give " + "contact_tension_history_N instead" + ) pressure_history = _mkappa_pressure_history( contact_pressure_Pa, names, kappa.shape ) @@ -1011,6 +1024,37 @@ def compute_mkappa( cable, tension_history, contact_model, crossing_loads=False ) pressure_history = {name: histories[name] for name in names} + if bonded: + # A bonded outer face slides on its inner face only (gap G8): keep + # that face's share at every sample, as the specs do at a fixed + # tension. The bounded chain is affine in tension. + from cablexsec.cable_adapters import ( # noqa: PLC0415 + _bounded_face_pressures, + ) + from cablexsec.mechanics.axisymmetric import ( # noqa: PLC0415 + compute_contact_forces, + ) + + p_ext = cable.initial_state.external_pressure_Pa + scale = max(float(np.max(tension_history)), 1.0) + ends = [ + _bounded_face_pressures( + cable, + compute_contact_forces( + cable, t, p_ext_Pa=p_ext + ).interface_pressure_Pa, + p_ext, + ) + for t in (0.0, scale) + ] + for name in bonded: + (below0, above0), (below1, above1) = ends[0][name], ends[1][name] + below = below0 + (below1 - below0) * tension_history / scale + total = below + above0 + (above1 - above0) * tension_history / scale + share = np.divide( + below, total, out=np.zeros_like(total), where=total > 0.0 + ) + pressure_history[name] = pressure_history[name] * share # Soft guard: the linear-elastic wire-stress assumption holds below the # armour yield curvature (where the capacity envelope's wire-yield mechanism diff --git a/tests/test_bonded_face.py b/tests/test_bonded_face.py index 9224761..2463ed0 100644 --- a/tests/test_bonded_face.py +++ b/tests/test_bonded_face.py @@ -211,3 +211,34 @@ def test_exported_law_carries_the_bond_and_runs_outside_a_scope() -> None: bond = bonded_face_ei(cable) # decorated: its own material scope np.testing.assert_allclose(out.ei_slip_Nm2, sliding + bond, rtol=1e-12) assert bond > 1e3 + + +def test_tension_history_keeps_the_inner_face_share() -> None: + """A constant tension history gives the fixed-tension law: the history's + P1+P2 is split into the inner face's share at every sample, as the specs + are at a fixed tension.""" + cable = _zeidan() + kappa = np.r_[np.linspace(0.0, 0.1, 51), np.linspace(0.1, -0.1, 101)[1:]] + fixed = cx.compute_mkappa(cable, kappa, tension_N=50e3, mu=0.2) + history = cx.compute_mkappa( + cable, + kappa, + mu=0.2, + contact_tension_history_N=np.full(kappa.shape, 50e3), + ) + np.testing.assert_allclose(history.moment_Nm, fixed.moment_Nm, rtol=1e-9, atol=1e-9) + unsplit = cx.compute_mkappa( + _bond(cable, face="none"), + kappa, + mu=0.2, + contact_tension_history_N=np.full(kappa.shape, 50e3), + ) + assert np.max(np.abs(history.moment_Nm - unsplit.moment_Nm)) > 1.0 + + +def test_a_pressure_history_is_refused_for_a_bonded_face() -> None: + cable = _zeidan() + kappa = np.linspace(0.0, 0.1, 11) + pressure = {lyr.name: np.full(kappa.shape, 1e6) for lyr in cable.helical_layers} + with pytest.raises(CableSchemaError, match="contact_tension_history_N"): + cx.compute_mkappa(cable, kappa, mu=0.2, contact_pressure_Pa=pressure)