diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md index fe4b37e..f9a01c0 100644 --- a/ARCHITECTURE.md +++ b/ARCHITECTURE.md @@ -330,12 +330,16 @@ selected with `friction_model="distributed"` in `wire_stress_field`, default `"direction_tied"` path is unchanged bit for bit. For each layer it solves one wire over one pitch of its helix (uniform curvature, axial slip only) as the elastic–Coulomb problem `n = e + u′`, `n′ = t`, -`t = k̂ (u − p)`, `|t| ≤ ρ(t) g(φ) + λ|n|`, with `k̂ = ξ/(1 − ξ)` from the -layer's Yun coefficient, the capstan bound `λ = μ |sin α|` and the clamping -ratio `ρ = P(t)/P_ref`. The normalisation is that of the reference solver: -below slip the field is the ξ-reduced stick stress of the default law, slip starts at the same -curvature `κ_on`, and planar monotonic loading to full slip gives the -package cap `σ0 expm1(μ |sin α| ψ)`. Each wire samples the field by phase. +`t = k̂ (u − p)`, `|t| ≤ max(ρ(t) g(φ) + λn, 0)`, with `k̂ = ξ/(1 − ξ)` from +the layer's Yun coefficient, the capstan bound `λ = μ |sin α|` on the signed +wire force and the clamping ratio `ρ = P(t)/P_ref`. The normalisation is that +of the reference solver: below slip the field is the ξ-reduced stick stress of +the default law and slip starts near the same curvature `κ_on`. Planar +monotonic loading to full slip gives `σ0 (C exp(λx) − 1)`, +`C = λπ/(2 sinh(λπ/2))`, `x` from the geometric neutral axis toward tension: +the neutral axis moves toward the tension side (zero pitch mean of the force) +and the extreme-fibre range is the linear value `σ0 λπ`. Each wire samples the +field by phase. There is no held bending direction. The kernel is `numba`-compiled. Each increment is backward Euler: a diff --git a/CHANGELOG.md b/CHANGELOG.md index d1e3d00..bd57c68 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,12 +15,39 @@ All notable changes to CableXSec are recorded in this file. The format follows helix friction law, whatever friction law the fatigue uses. It was the work of the direction-tied cap, which turns with the bending direction and under rotating curvature dissipates too little: on a circular orbit 0.16 of the distributed work at twice the slip - onset and 0.57 at large amplitude (closed forms `π(π/2 − 1)/4` and `π/4` of the two planar - cycles, now tested). Planar records change by less than 3 % from twice the slip onset; on - the synthetic 66 kV record of the manual the largest block heat rises from 0.58 to - 0.79 W/m (doc/template_66kv.md Section 4.2). Stresses and damage are unchanged. A + onset and 0.57 at large amplitude (orbit over planar work `π (sinh x₀ − λ)/(4 λ cosh x₀)`, + `x₀ = λπ/2`, against `π/4` for the distributed law, now tested). Planar records change by + less than 3 % from twice the slip onset; on the synthetic 66 kV record of the manual the + largest block heat rises from 0.57 to 0.77 W/m with the signed capstan bound below + (doc/template_66kv.md Section 4.2). Stresses and damage are unchanged. A layer with `ξ = 1` keeps the direction-tied work, and the provenance records it (`thermal_coupling.record_friction_work`). +- The capstan term of the armour friction bound is signed, as in Papailiou (1997), + Eqs. 11, 13-15 and 21, which use the signed helix angle: a rising wire stress is bounded by + `σ0 (exp(λψ) − 1)` and a falling one by `−σ0 (1 − exp(−λψ))`, `λ = μ |sin α|` + (`wire_slip_stress_bounds`). Before, the tension bound was applied on both sides, as if + a wire whose force falls pressed harder on its bed. A full reversal of a slipping wire now + spans `2 σ0 sinh(λψ)`; the peak tensile friction stress, and so the yield and capacity + checks on the tension side, are unchanged. The fix applies to the direction-tied, + progressive, distributed (`b = ρ g + λ n`) and along-wire laws, the tape and laid-core + laws, the station model of `compute_mkappa_papailiou` and the monotonic stress + snapshots. The direction-hold threshold is now `f m(λ) κ_on`, `m = 1 − 3λ²/8 + O(λ³)`, + the compression-side first slip, so that no wire slips below it. +- Size of the correction: the former bound overstated the full-slip extreme-fibre friction + stress range by `2/(1 + exp(−λπ/2))`, +2.8 to +6.7 % for the bundled power-cable + templates (`λ` 0.035 to 0.085), and the full-slip loop work by about `(π − 2)λ/2` + (+6.5 % at 35°, μ 0.2). The bulk damage of the bundled templates falls by 0 to 16 % (the + former values were 0 to 19 % high): no change while a layer sticks, the largest change + once the friction range governs the bulk range. Below about three times the onset + curvature the compression side now slips earlier and a loop can dissipate more. +- Validation rows (VALIDATION.md): BM1-loop and BM1-loop-uniform pass (ordered RMSE + 3.16 % to 2.71 %, cycle work +12.9 % to +8.8 % against the unchanged 10 % target); + SV11-PLANE and SV11-GJ move closer to the measurements and still fail; WITZ-ID moves + slightly further (300-bar energy −12.6 % to −14.2 %, width still failing), with the + initial pressure of `witz1996.yaml` re-identified (1.037 to 1.071 MPa); the + laid-core closed form of row CF is the signed one. +- `full_slip_curvature` takes the bound of each wire's side; the station slip fraction of + the Papailiou diagnostic uses the same signed intervals as the moment. ## [0.1.0] - 2026-11-14 diff --git a/README.md b/README.md index 92cf696..32219f9 100644 --- a/README.md +++ b/README.md @@ -63,10 +63,9 @@ recorded with their targets, data and scripts in the | Torque constant of a strand | Feyrer, Example 2.8 | 0.11 % | | Moment–curvature loop energy closure | closed form | 0.08 % | -Comparisons that do not meet their registered targets — the friction work of the Ménard -±0.10 m⁻¹ loop (12.9 % against a 10 % target), the Witz 300-bar loop, the Hu et al. (2022) -conductor loop and the Sævik (2011) near-termination stresses — are reported as failed in the -same record, with their tolerances unchanged. +Comparisons that do not meet their registered targets — the Witz 300-bar loop, the Hu et +al. (2022) conductor loop and the Sævik (2011) near-termination stresses — are reported as +failed in the same record, with their tolerances unchanged. ## Quick start diff --git a/VALIDATION.md b/VALIDATION.md index 2c6bc9d..202314f 100644 --- a/VALIDATION.md +++ b/VALIDATION.md @@ -34,13 +34,13 @@ afterwards: a comparison that misses its target is reported as failed. | **A10, A10b** | Vector-slip rotation equivariance; vector and loxodromic contrast | identity | 3.8e-16; 1.2e-16 | <1e-12 | Pass | | **OvM, OvM-g** | Frictionless contact slip and geodesic transverse map | Out and von Morgen (1997), Eqs. 26–28 | ≤2.7e-15; exact geodesic 2.6e-4 to 3.8e-4 | <1e-12; <1e-3 at k = 1e-4 | Pass | | **Out89** | Contact plastic slip and damage ratios | Out (1989), Eqs. 1, A8, A11 | 9.6e-16; 5.0e-7 | <1e-12; <1e-4 | Pass | -| **CF** | Laid-core friction limits | closed forms, rotation equivariance | ≤1.1e-4 | per check | Pass | +| **CF** | Laid-core friction limits | closed forms, rotation equivariance | ≤1.0e-4 | per check | Pass | | **FR** | Fretting regime: Mindlin energy, Fouvry transition, Cattaneo strip | closed forms, numerical Masing loop | ≤7.8e-12 | <1e-9 to <1e-12 | Pass | | **TQ** | Torque constant of a strand; coupled section; mirror lay | Feyrer, Example 2.8; Knapp (1981) | −0.11 %; −1.3e-6; 0 | ±0.2 %; <1e-4; <1e-9 | Pass | | **A11** | Moment–curvature energy closure | loop area against closed form | 0.082 % | <0.1 % | Pass | | **σ_B** | Radial-fibre bending stress | Ménard and Cartraud (2023), Eq. 14 | 0 | <1e-6 % | Pass | | **M-rec, M-rec-3core** | Assembled per-wire moment against the section engine | cross-engine | 0.000 % | <2 % | Pass | -| **slip-onset** | First wire to slip lies at the neutral axis | Raoof; Papailiou | \|cos\| = 0.000 | \|cos\| < 0.2 | Pass | +| **slip-onset** | First wire to slip lies at the neutral axis (compression side, ψ ≈ 3λ/2) | Raoof; Papailiou | \|cos\| = 0.156 | \|cos\| < 0.2 | Pass | | **xsec-K** | Coupling tangent bounds | EI_max, EI_min limits | ≤6.3e-13 % | <0.01 % | Pass | | **QP-KKT, QP-Lamé** | Concentric contact complementarity; shrink-fit compliances | KKT conditions; compound cylinder | 1.9e-13 N; 1.3e-16 | <1e-8 N; <1e-6 | Pass | | **COMP-T, COMP-N, COMP-O, SH-AX** | Component thermal expansion, axial equilibrium, zero-offset bounds, sheath axial stress | closed forms | 0 | <1e-6 Pa; <1e-12 | Pass | @@ -57,14 +57,14 @@ afterwards: a comparison that misses its target is reported as failed. | **TQ-KL** | Torque-balance helix angle, seven strand pairs | Kim and Lee (2017), beam FE | −0.26 to −0.06 deg | ≤0.3 deg | Pass | | **TQ-UJ** | Fixed-end torque per tension, six strands | Utting and Jones (1987), Table 1 | theory 1.051–1.059; test 1.067–1.136 | 1.04–1.07; 1.00–1.15 | Pass | | **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 after the published ±0.05 calibration, four-point arrangement | Ménard and Cartraud (2023), Fig. 16b | ordered RMSE 3.16 %; cycle work 70.4 vs 62.3 J/m (12.9 %) | RMSE <5 %; work within 10 % | **Fail** | -| **BM1-loop-uniform** | Same comparison at uniform curvature | Ménard and Cartraud (2023), Fig. 16b | as BM1-loop | as BM1-loop | **Fail** | +| **BM1-loop** | ±0.10 m⁻¹ moment–curvature loop after the published ±0.05 calibration, four-point arrangement | Ménard and Cartraud (2023), Fig. 16b | ordered RMSE 2.71 %; cycle work 67.8 vs 62.3 J/m (8.8 %) | RMSE <5 %; work within 10 % | Pass | +| **BM1-loop-uniform** | Same comparison at uniform curvature | Ménard and Cartraud (2023), Fig. 16b | as BM1-loop | as BM1-loop | 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 | -| **WITZ-ID** | 300-bar loop predicted after identifying the initial pressure at 0 bar | Witz (1996), Figs 5–6 | width 1383 N·m vs 1990–2164; energy −12.6 % | width 1692–2489 N·m; energy ±15 % | **Fail** | -| **SV11-PLANE** | Inner-armour stress ranges at the bending-plane FBG stations, 14 load cases | Sævik (2011), Figs 17–23 | median ratio 1.65 (3 of 14 in band); sectional 1.03 (11 of 14) | median 0.85–1.18 and ≥12 of 14 in 0.70–1.43 | **Fail** | -| **SV11-GJ** | Absolute stress ranges near the termination, load case 14 | Gjøsteen et al. (2027), Figs 27–35 | mean ratio 1.90 (sectional 1.32) | 0.72–1.38 | **Fail** | +| **WITZ-ID** | 300-bar loop predicted after identifying the initial pressure at 0 bar | Witz (1996), Figs 5–6 | width 1356 N·m vs 1990–2164; energy −14.2 % | width 1692–2489 N·m; energy ±15 % | **Fail** | +| **SV11-PLANE** | Inner-armour stress ranges at the bending-plane FBG stations, 14 load cases | Sævik (2011), Figs 17–23 | median ratio 1.62 (3 of 14 in band); sectional 1.00 (11 of 14) | median 0.85–1.18 and ≥12 of 14 in 0.70–1.43 | **Fail** | +| **SV11-GJ** | Absolute stress ranges near the termination, load case 14 | Gjøsteen et al. (2027), Figs 27–35 | mean ratio 1.80 (sectional 1.24) | 0.72–1.38 | **Fail** | | **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 | @@ -82,9 +82,10 @@ quantities are those of the passing rows. In particular: - The full-slip bending stiffness and the analytical limits of the slip model are confirmed against published data without calibration (BM1, WITZ-EI). -- The friction work of the measured Ménard ±0.10 m⁻¹ loop is overestimated by 13 %, and the - 300-bar Witz loop is too narrow after identification at 0 bar; absolute dissipation - predictions therefore carry the uncertainty shown by BM1-loop and WITZ-ID. +- The friction work of the measured Ménard ±0.10 m⁻¹ loop is overestimated by 9 % (within + its 10 % target), and the 300-bar Witz loop is too narrow after identification at 0 bar; + absolute dissipation predictions therefore carry the uncertainty shown by BM1-loop and + WITZ-ID. - The termination-corrected (anchored-wire) armour stress is an upper estimate that the published near-termination measurements do not support (SV11-PLANE, SV11-GJ); the sectional result is the one that matches them. @@ -130,5 +131,6 @@ python validation/scripts/run_validation.py # rewrite validation/valida python validation/scripts/run_validation.py --check # compare with the committed report ``` -The script exits with status 1 while any row is **Fail** or **Review**. In 0.1.0 the failed rows -are the registered comparisons listed above. +The script exits with status 1 while any row is **Fail** or **Review**. The failed rows are the +registered comparisons listed above; in 0.1.0 they included BM1-loop and BM1-loop-uniform, which +pass since the signed capstan correction (see the changelog). diff --git a/doc/benchmarks.md b/doc/benchmarks.md index f119292..faa158f 100644 --- a/doc/benchmarks.md +++ b/doc/benchmarks.md @@ -18,6 +18,26 @@ of the scorecard. Comparison classes: **A** analytical, **M** measured, **MM** model-to-model, **I** internal (two CableXSec formulations on the same inputs). +**Signed capstan bound (unreleased correction).** The armour friction bound now +follows Papailiou (1997, Eqs. 11 and 13–15) with the signed helix angle: a +rising wire stress is bounded by `σ0 (exp(λψ) − 1)`, a falling one by +`−σ0 (1 − exp(−λψ))`, `λ = μ |sin α|`; before, the tension bound was used on +both sides. The rows of the scorecard and the tables produced by +`check_core_friction.py`, `check_g8_gradual_reversal.py`, +`check_t1_test_arrangement.py` and `check_saevik2011.py` are regenerated with +it; the former values are given where a status or a conclusion moved. Tables of +one-off studies that have no reproduction script in the repository (the Witz +mechanism and identification studies, the along-wire, two-way and +rectangular-tendon variants of the Sævik comparison, the identified-state +Ménard columns taken from the companion article) keep the values computed with +the former bound and say so. Their slipping-case values move by a few per cent +(the sectional Sævik ratios by 3–5 %); no conclusion drawn from them changes. +For orientation, the contact-level helical rod cell of the companion article +(`transverse_friction_cell.py`, uniform normal load, no capstan term) now gives +33.7 and 70.4 J/m on the Ménard cable at ±0.05 and ±0.10 1/m against 34.1 and +70.9 J/m from the section law (35.3 and 73.5 J/m with the former bound), the +`O(λ²)` agreement the signed bound implies. + **Sheave check.** `compute_sheave` now also reports the design utilisation on the capacity envelope (normal factor 0.67). SH-3 checks the unchanged characteristic ratio, now `characteristic_utilisation`, against @@ -61,14 +81,14 @@ model) is the full construction. | Armour compression: de Sousa bird-caging tests (via Sævik and Thorsen 2017; Gjøsteen et al. 2027) | M | Straight-beam P2* within 1.4% of the 256 kN test mean; published per-term P2 not reproduced (stated) | | Armour compression: Malta et al. (2022), sheath-only FE | MM | Reported only: screen 49% below the FE limit load (conservative) | | Ménard and Cartraud (2023) full-slip stiffness | MM | PASS | -| Ménard and Cartraud (2023) six measured bending ranges, moment | M | Moment errors 3.16–11.48% (transfer) | -| Ménard and Cartraud (2023) six measured bending ranges, work | M | FAIL at the retained 10% target (range b) | +| Ménard and Cartraud (2023) six measured bending ranges, moment | M | Moment errors 2.71–10.55% (transfer) | +| Ménard and Cartraud (2023) six measured bending ranges, work | M | PASS at the retained 10% target (range b, +8.8 %; +12.9 % with the former capstan bound); ranges (a), (c), (d) +32 to +47 % | | Armour longitudinal displacement, Ménard and Cartraud FE | MM | Phase and scale reproduced; peaks over-predicted | | Tjahjanto et al. (2017), Leroy et al. (2017) FE armour slip | MM | Qualitative agreement only | | Sævik and Bruaseth (2005) umbilical axial stiffness | M | NOT VALIDATED | | CIGRE TB880 conductor temperature | MM | PARTIAL | | Global–local consistency, floating-wind application | I | Full-slip results are upper estimates | -| Laid-core friction (gap R1b), Ménard and Cartraud (2023) six ranges | M | Moment and work errors increase; BM1-loop still FAIL | +| Laid-core friction (gap R1b), Ménard and Cartraud (2023) six ranges | M | Moment and work errors increase; range (b) with core friction FAIL (+18.9 %) | | Fretting regime and wear (gap 3.1): Mindlin/Cattaneo closed forms, Fouvry ratios, limits, rotation | A | PASS | | Fretting transition, Fouvry et al. (1995) Table 4 | MM | PASS with the printed shear moduli; 1.6–1.7 × the measurements with G = E/2(1 + ν) (stated) | | Fretting wear volume, crossed steel wires (Poon et al. 2024; Cruzado et al. 2013) | M | PASS (consistency: coefficient identified on the same tests) | @@ -76,14 +96,14 @@ model) is the full construction. | Conductor fatigue version 3 (gap CF3, opt-in): wire curve corrected for the compaction indentations, compaction factor per ring (Jiang et al. 2022), trellis rule at the full-hard threshold of Liaw et al. (1982) | M | FAIL on the registered gate: 300 mm² bending lives ×2.05–2.24 and radius trend 3.7 in band; 95 mm² bending ×4.1–9.5, trend 20–23 (10.3); tension–tension failure in the outer layer as observed, lives ×0.97–3.2 | | Conductor trellis fretting, surface SWT (gap 1.3c, G1; `trellis_model="surface_swt"`) | M | FAIL: dry lives ×0.0075–0.12, radius trends 1.02 and 1.06 against 3.6 and 10.3; legacy option, not validated | | Witz (1996) 2.5-inch flexible pipe, full-slip EI at 0 bar (WITZ-EI) | M | PASS (1007 against 1014 and 1190 N·m², parameter-free) | -| Witz (1996) pipe, 300-bar loop predicted after identification on the 0-bar loop (WITZ-ID) | M | FAIL: width −30 to −36%, peaks −16%; energy −12.6% (inside its target); one loop identifies only μ·p₀ | +| Witz (1996) pipe, 300-bar loop predicted after identification on the 0-bar loop (WITZ-ID) | M | FAIL: width −32 to −37%; energy −14.2% (inside its target); one loop identifies only μ·p₀ | | Gradual stick-to-slip transition (gap G8): progressive law, zero-spread, dissipation and rotation limits | A | PASS | -| Gap G8 against Witz (300 bar), Hu et al. (2022) and Ménard range (b) | M | Hu transition share reproduced by the three-point test arrangement (35.6% against 33.8%); Witz width and ratio, Hu loop area (+37%) and BM1-loop (+12.1%) FAIL | -| Sævik (2011) 8-inch riser, measured FBG inner-armour stress ranges, 14 load cases (SV11-PLANE); Gjøsteen et al. (2027) absolute LC 14 ranges (SV11-GJ) | M | FAIL: termination-corrected median ratio 1.65 (3 of 14 in band), absolute 1.90; sectional median 1.03 (11 of 14), absolute 1.32; small angles under-predicted about 2× | +| Gap G8 against Witz (300 bar), Hu et al. (2022) and Ménard range (b) | M | Hu transition share reproduced by the three-point test arrangement (35.6% against 33.8%); BM1-loop with the progressive law PASS (+8.2 %); Witz width and ratio and Hu loop area (+37%) FAIL | +| Sævik (2011) 8-inch riser, measured FBG inner-armour stress ranges, 14 load cases (SV11-PLANE); Gjøsteen et al. (2027) absolute LC 14 ranges (SV11-GJ) | M | FAIL: termination-corrected median ratio 1.62 (3 of 14 in band), absolute 1.80; sectional median 1.00 (11 of 14), absolute 1.24; small angles under-predicted about 2× | | Test-arrangement simulator (gap T1): elastic closed forms, uniform-moment zone against `compute_mkappa`, energy, equilibrium | A, I | PASS | | Along-wire redistribution (gap T2): periodic and clamp-layer limits, termination round-off, energy, refinement | A, I | PASS | -| Gap T2 against Sævik (2011), Gjøsteen et al. (2027), Hu, Ménard and Witz | M | Not explained: Sævik near-bellmouth median ratio 3.36 (2.12 in the clamp convention) against 1.65 for the clamp correction and 1.03 sectional; Hu area +65%, share 11%; Ménard work −3 to +3 points by range; end conditions immaterial | -| Two-way anchored termination: Sævik rig beam solved with the anchored along-wire chains of both armours | M | FAIL as registered: median ratio 1.18 (9 of 14 in band), absolute 1.46; anchored over-prediction falls from 3.09 one-way (same stick setting) and 1.65 (clamp correction); curvature redistributes along the bellmouth instead of falling (TC-3 fails); hang-off rule stays sectional | +| Gap T2 against Sævik (2011), Gjøsteen et al. (2027), Hu, Ménard and Witz | M | Not explained (former capstan bound throughout): Sævik near-bellmouth median ratio 3.36 (2.12 in the clamp convention) against 1.65 for the clamp correction and 1.03 sectional; Hu area +65%, share 11%; Ménard work −3 to +3 points by range; end conditions immaterial | +| Two-way anchored termination: Sævik rig beam solved with the anchored along-wire chains of both armours | M | FAIL as registered (former capstan bound): median ratio 1.18 (9 of 14 in band), absolute 1.46; anchored over-prediction falls from 3.09 one-way (same stick setting) and 1.65 (clamp correction); curvature redistributes along the bellmouth instead of falling (TC-3 fails); hang-off rule stays sectional | | Hysteretic bending law for global analysis (gap MX): Iwan law from the exported backbone against `compute_mkappa` | I | MX-1 PASS (≤ 0.05 % of the moment range, work ≤ 0.02 %), MX-3 PASS; MX-2 FAIL (tension interpolation 3.9 % at 100 kN spacing; 0.27 % at 20 kN); MX-5 (global program) open | | Cable over a sheave (gap SH): Feyrer (2015) Examples 3.2 and 3.4, groove factors, consistency with the section analyses | A, I | SH-1, SH-2, SH-3 PASS; no measured cable-over-sheave data held | | Gap T1, benchmarks in their published arrangements | M | Hu three-point: transition share in its band (32.8–39.4% against 33.8%), loop area FAIL (+37% Papailiou cap, +64% Karlsen-Husøy; +4.9%/+28% at uniform curvature compared a different quantity); Ménard four-point unchanged; Witz arrangement not documented, basis unchanged | @@ -92,7 +112,7 @@ model) is the full construction. | Restrictor and stiffener fields, tapes, copper strain life (gaps P5, P2, P7): rigid-link chain, tensioned beam, chain limit, proportional-field equivalence, tape states, default invariance | A, I | PASS (no restrictor test with curvature data beyond Thies 2016 held) | | Torque balance: Kim and Lee (2017) balance angles; Utting and Jones (1987) fixed-end torque | MM, M | PASS (−0.06 to −0.26°; ×1.07–1.14 test, ×1.05–1.06 theory from omitted wire moments, stated) | | Rectangular tendons and local tendon bending (gap G1): section closed forms, round limit bit for bit, Sævik (1992) Eqs. 2.30–2.32, 4.1, 4.2, numerical geodesic, Dong et al. (2018, 2025) | A, I, MM | PASS | -| Gap G1 against Sævik (2011) / Gjøsteen et al. (2027) with the true 5 × 12.5 mm tendons, with and without lateral relief | M | FAIL: sectional 1.09 (11 of 14), GJ 1.32; clamp correction 1.76 (GJ 1.94); along-wire 3.40 (GJ 4.68); lateral relief changes these by 1–3 % (hypothesis not supported); end-restraint layer 0.1 m, 18 decay lengths short of the nearest gauge | +| Gap G1 against Sævik (2011) / Gjøsteen et al. (2027) with the true 5 × 12.5 mm tendons, with and without lateral relief | M | FAIL: sectional 1.06 (11 of 14), GJ 1.25; clamp correction 1.72 (GJ 1.85); along-wire 3.40 (GJ 4.68, former capstan bound); lateral relief changes these by 1–3 % (hypothesis not supported); end-restraint layer 0.1 m, 18 decay lengths short of the nearest gauge | | Gap G1, Witz (1996) WITZ-ID on the true strips, solved radial route | M | FAIL: width −25.3 / −31.3 %, energy −5.9 % | ## Tier 1: analytical and consistency checks @@ -111,12 +131,12 @@ All rows are verification, not validation. Source: the scorecard | OvM-g | A | Geodesic transverse map (η = 1) at μ = 0 vs Out–von Morgen slip vector; vs exact geodesic | < 1e-12 rel.; < 1e-3 rel. at k = 1e-4 | 1.1e-15 (δ*/Eq. 28: 2.7e-15); 2.6e-4 | PASS | | Out89 | A | Contact plastic slip vs Out (1989) Δκ − 2κ_s and damage ratios A8, A11 | < 1e-12 rel.; < 1e-4 abs. | 9.6e-16; 5.0e-7 | PASS | | FR | A | Fretting regime: Mindlin energy vs numerical Masing loop; Fouvry A/D/B; strip I(0); μ = ∞ stick energy; planar-path rotation | < 1e-9; < 1e-12; < 1e-12; 0 J; < 1e-12 rel. | 7.8e-12; 4.4e-16; 1.6e-15; 0 J; 4.4e-16 | PASS | -| CF | A | Laid-core friction: μ = 0 gives the armour-only loop; large μ 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 rel. | 0; 2.6e-15; 1.1e-4; 4.8e-6; 5.2e-14 | PASS | +| CF | A | Laid-core friction: μ = 0 gives the armour-only loop; large μ 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 rel. | 0; 4.4e-16; 1.0e-4; 5.0e-6; 5.4e-14 | PASS | | A11 | A | Moment–curvature energy closure (loop area vs closed form) | < 0.1% | 0.082% | PASS | | σ_B | A | Radial-fibre bending stress vs Ménard Eq. 14 | < 1e-6% | 0 | PASS | | M-rec | I | Assembled per-wire moment vs `compute_mkappa`, single core | < 2% | 0.000% | PASS | | M-rec-3core | I | As M-rec, offset-core geometry | < 2% | 0.000% | PASS | -| slip-onset | A | First wire to slip lies at the neutral axis | abs(cos) < 0.2 | 0.000 | PASS | +| slip-onset | A | First wire to slip lies at the neutral axis (with the signed bound on the compression side, ψ ≈ 3λ/2) | abs(cos) < 0.2 | 0.156 (0.000 with the former bound) | PASS | | xsec-K | A | Tangent bounds EI_max (κ→0) and EI_min (κ→∞) | < 0.01% | 0; 7.4e-12% | PASS | | QP-KKT | A | Concentric contact complementarity | < 1e-8 N | 1.9e-13 N | PASS | | QP-Lamé | A | Cylinder compliances vs compound-cylinder shrink fit | < 1e-6 | 1.3e-16 | PASS | @@ -169,20 +189,27 @@ path for measurement and model, in J/m. | Range | Curvature (1/m) | Moment error, transfer (%) | Moment error, identified (%) | Measured work (J/m) | Transfer work (J/m) | Identified work (J/m) | | --- | --- | --- | --- | --- | --- | --- | -| (a) | −0.05 to +0.05 | 11.48 ± 2.03 | 4.56 (fitted) | 20.2 ± 0.9 | 30.8 | 18.7 (fitted) | -| (b) | −0.10 to +0.10 | 3.16 ± 0.92 | 4.50 | 62.3 ± 3.0 | 70.4 | 45.1 | -| (c) | −0.10 to 0 | 11.02 ± 1.16 | 5.49 | 20.4 ± 1.0 | 30.6 | 18.6 | -| (d) | 0 to +0.10 | 9.08 ± 1.06 | 5.55 | 22.5 ± 1.0 | 30.8 | 18.8 | -| (e) | −0.20 to 0 | 3.98 ± 1.04 | 6.40 | 65.0 ± 3.0 | 68.9 | 44.1 | -| (f) | 0 to +0.20 | 3.81 ± 2.84 | 7.04 | 69.2 ± 3.1 | 69.2 | 44.4 | - -- **Transferred inputs.** Moment errors 3.16–11.48%. Work is 12.9–52.3% above - the measurement in ranges (a)–(d), beyond the digitisation bound of - 4.4–4.9%; range (e) is 6.1% above against a 4.7% bound, and range (f) is - within its bound (0.1%). +| (a) | −0.05 to +0.05 | 10.55 | 4.56 (fitted) | 20.2 ± 0.9 | 29.7 | 18.7 (fitted) | +| (b) | −0.10 to +0.10 | 2.71 | 4.50 | 62.3 ± 3.0 | 67.8 | 45.1 | +| (c) | −0.10 to 0 | 10.14 | 5.49 | 20.4 ± 1.0 | 29.6 | 18.6 | +| (d) | 0 to +0.10 | 8.34 | 5.55 | 22.5 ± 1.0 | 29.8 | 18.8 | +| (e) | −0.20 to 0 | 3.83 | 6.40 | 65.0 ± 3.0 | 66.5 | 44.1 | +| (f) | 0 to +0.20 | 3.85 | 7.04 | 69.2 ± 3.1 | 66.8 | 44.4 | + +The transfer columns are those of the signed capstan bound +(`check_g8_gradual_reversal.py`); with the former bound they were 11.48, 3.16, +11.02, 9.08, 3.98 and 3.81 % (digitisation spread ±2.03, ±0.92, ±1.16, ±1.06, +±1.04 and ±2.84 points) and 30.8, 70.4, 30.6, 30.8, 68.9 and 69.2 J/m. The +identified columns are those of the companion article (former bound). + +- **Transferred inputs.** Moment errors 2.71–10.55%. Work is 32.0–47.2% above + the measurement in ranges (a), (c) and (d), beyond the digitisation bound of + 4.4–4.9%; range (b) is 8.8% above, inside the 10 % target; range (e) is + 2.2% above (bound 4.7 %) and range (f) 3.6% below, both within their + digitisation bounds. - **Identified state.** Pressure and support-rigidity multipliers (0.666 and 0.288) fitted to range (a) only. Withheld moment errors 4.50–7.04%; withheld - work 8.9–35.9% below the measurement. + work 8.9–35.9% below the measurement (former bound). - **Identifiability.** Re-identifying at friction 0.1–0.3 gives fit errors of 4.555–4.566% with the product of friction and clamping constant within 4%. The loops constrain the frictional resistance, not friction and clamping @@ -195,7 +222,7 @@ Scorecard gate: | ID | Class | Target | Result | Status | | --- | --- | --- | --- | --- | -| BM1-loop | M | Range (b), transferred inputs: ordered RMSE < 5%; matched work within 10% | RMSE 3.16%; work 70.4 vs 62.3 J/m, +12.9% | FAIL | +| BM1-loop | M | Range (b), transferred inputs: ordered RMSE < 5%; matched work within 10% | RMSE 2.71%; work 67.8 vs 62.3 J/m, +8.8% (former bound: 3.16 %, 70.4 J/m, +12.9 %, FAIL) | PASS | Since gap T1 the row is computed through the test's four-point arrangement (moment `Fa L1`, curvature from a parabola through three LVDTs between the @@ -203,11 +230,13 @@ actuators); the result is identical, because the measured curvature lies in the uniform-moment zone. The uniform-curvature calculation is kept as `BM1-loop-uniform`. The 10% work target is retained and pinned by `tests/test_validation_report.py`. -Gap G8 tested whether a gradual stick-to-slip transition explains the -excess: the progressive (continuity) law lowers it to +12.1% and no other -mechanism at its physical magnitude does more (section on gap G8 below). -The 12.9% refers to the transferred-input calculation, in which the model -over-predicts the work; it is not the identified-state result. +With the former symmetric capstan bound the row failed (+12.9 %); the signed +bound lowers the full-slip loop work by 3.7 % at this cable's `λ` (0.069), +which brings it inside the target. Gap G8 had tested whether a gradual +stick-to-slip transition explains the excess: the progressive (continuity) +law lowers it further, to +8.2% (section on gap G8 below). The 8.8% refers to +the transferred-input calculation, in which the model over-predicts the work; +it is not the identified-state result. ### Armour longitudinal displacement @@ -236,24 +265,28 @@ every station (next section). power cores and of resolved internal wire rings (`cablexsec/mechanics/core_friction.py`). Verification gate CF (Tier 1 table above; `tests/test_core_friction.py`): the full-slip core moment equals -`(2/π) n q r² cos²β/sin²β [(a e^(aπ/2) + 1)/(1 + a²) − 1]`, `a = μ sin β`, -within 1.1e-4; μ = 0 returns the armour-only loop bitwise; large friction with -a rigid contact gives `compute_stiffness().ei_max_Nm2` (2.6e-15). +`(2/π) n q r² cos²β/sin²β · a cosh(aπ/2)/(1 + a²)`, `a = μ sin β`, within +1.0e-4 (after a reversal the cores of one side sit at the signed lower bound +`−σ0 (1 − e^(−aψ))` and the others at `σ0 (e^(aψ) − 1)`, so the integrand is +`sinh(aψ) sin ψ`; the former symmetric bound gave +`[(a e^(aπ/2) + 1)/(1 + a²) − 1]`); μ = 0 returns the armour-only loop +bitwise; large friction with a rigid contact gives +`compute_stiffness().ei_max_Nm2` (4.4e-16). Published comparisons (`validation/scripts/check_core_friction.py`). Targets were registered before the runs; nothing was refitted. | Case | Class | Target | Armour only | With core friction | Status | | --- | --- | --- | --- | --- | --- | -| Janocha (2024) 66 kV, 50 kN, Fig. 6 loop half-height at κ = 0 | MM | about 1.0 kN·m ± 30 % | 0.083 kN·m (solved) | 0.187 kN·m (μ 0.46, Table 2) | FAIL | +| Janocha (2024) 66 kV, 50 kN, Fig. 6 loop half-height at κ = 0 | MM | about 1.0 kN·m ± 30 % | 0.081 kN·m (solved) | 0.181 kN·m (μ 0.46, Table 2) | FAIL | | Same, slipping slope; IEA Wind Task 49 Table 13 | MM | 42.47 kN·m² ± 15 % (Fig. 6 about 29) | 21.0 kN·m² | 21.0 kN·m² | FAIL | -| Same, Fig. 12b moment at 0.01 1/m, 10 / 100 / 200 kN | MM | about 5.8 / 9.5 / 12.5 kN·m ± 30 % | 0.23 / 0.37 / 0.54 kN·m | 0.25 / 0.58 / 0.96 kN·m | FAIL | -| Ménard (2023) range (b), transferred inputs, core μ 0.2 as in the source FE | M | RMSE < 5 %; work within 10 % (BM1-loop) | 3.16 %; +12.9 % | 4.49 %; +23.0 % | FAIL | -| Ménard (2023) ranges (a), (c)–(f), work | M | — | +52.3, +49.8, +36.6, +6.0, +0.0 % | +64.5, +61.7, +47.5, +15.5, +9.0 % | (worse) | +| Same, Fig. 12b moment at 0.01 1/m, 10 / 100 / 200 kN | MM | about 5.8 / 9.5 / 12.5 kN·m ± 30 % | 0.23 / 0.37 / 0.53 kN·m | 0.25 / 0.57 / 0.93 kN·m | FAIL | +| Ménard (2023) range (b), transferred inputs, core μ 0.2 as in the source FE | M | RMSE < 5 %; work within 10 % (BM1-loop) | 2.71 %; +8.8 % | 3.88 %; +18.9 % | FAIL with the cores | +| Ménard (2023) ranges (a), (c)–(f), work | M | — | +47.2, +44.7, +32.0, +2.2, −3.6 % | +59.2, +56.5, +42.7, +11.6, +5.3 % | (worse) | - **Janocha.** The source's Fig. 12b knee at 10 kN (5.8 kN·m) exceeds its own Fig. 6 half-height at 50 kN (about 1 kN·m); tension-induced Coulomb contact - cannot give both. A 1.0 kN·m half-height would need about 107 kN/m of + cannot give both. A 1.0 kN·m half-height would need about 112 kN/m of normal load per core, against 12.2 kN/m in the solved state. Friction does not raise the full-slip slope; the slope gap lies in component bending ([template_66kv.md](template_66kv.md) Section 4.1). @@ -266,10 +299,11 @@ registered before the runs; nothing was refitted. --core-lay-stage` evaluates every bending law of a cable with laid cores with the stage of the Section properties analysis (core friction 0.2, core insulation shear, no internal ring slip) and writes nothing. Rows that - move: BM1-loop and BM1-loop-uniform ordered RMSE 3.16 % to 4.49 %, work - +12.9 % to +23.0 % (FAIL before and after); CF reads FAIL only because its - armour-only reference is switched as well. No other row moves. The stage - stays off by default. + move: BM1-loop and BM1-loop-uniform ordered RMSE 2.71 % to 3.88 %, work + +8.8 % to +18.9 % (PASS to FAIL; with the former capstan bound 3.16 % to + 4.49 % and +12.9 % to +23.0 %, FAIL before and after); CF reads FAIL only + because its armour-only reference is switched as well. No other row moves. + The stage stays off by default. - **Su et al. (2026).** No bending loop is published for the 35 kV cable (axial and torsional results only); not compared. @@ -727,16 +761,19 @@ tests `tests/test_witz1996_benchmark.py`. | --- | --- | --- | --- | --- | --- | | WITZ-EI | M | Full-slip EI_min, 0 bar (parameter-free) | [913, 1309] N·m² (gradients 1014 and 1190 ± 10%) | 1007 N·m² (−0.7% / −15.4%) | PASS | | — | M | Full-slip EI_min, 300 bar | [653, 986] N·m² (725 and 896 ± 10%) | 1007 N·m² | FAIL (EI_min has no pressure or temperature dependence; Witz attributes the measured fall to heating during pressurisation, which was not recorded) | -| WITZ-ID, identification | M | Loop width at κ = 0, 0 bar | identified | p₀ = 1.037 MPa at μ = 0.10 (bounded chain); 552.7 N·m | IDENTIFIED | +| WITZ-ID, identification | M | Loop width at κ = 0, 0 bar | identified | p₀ = 1.071 MPa at μ = 0.10 (bounded chain; 1.037 MPa with the former capstan bound); 552.7 N·m | IDENTIFIED | | — | M | 0-bar loop energy (withheld, correlated with the width) | ±15% of 1118 J/m | 1114 J/m (−0.3%) | PASS | | — | M | 0-bar mean peak moment | ±10% of 1482 N·m | 1301 N·m (−12.2%) | FAIL | -| WITZ-ID | M | 300-bar loop width at κ = 0, predicted | [1692, 2489] N·m (measured [1990, 2164] ± 15%) | 1383 N·m (−30.5% / −36.1%) | FAIL | -| WITZ-ID | M | 300-bar loop energy, predicted | ±15% of 3125 J/m | 2732 J/m (−12.6%) | PASS | +| WITZ-ID | M | 300-bar loop width at κ = 0, predicted | [1692, 2489] N·m (measured [1990, 2164] ± 15%) | 1356 N·m (−31.8% / −37.3%; former bound 1383) | FAIL | +| WITZ-ID | M | 300-bar loop energy, predicted | ±15% of 3125 J/m | 2682 J/m (−14.2%; former bound 2732, −12.6%) | PASS | | — | M | 300-bar mean peak moment, predicted | ±10% of 2043 N·m | 1712 N·m (−16.2%) | FAIL | | — | M | 300-bar reversal secants; branch-shape RMS | [11538, 17566] N·m²; ≤ 10% of peak-to-peak | 14865 / 14571 N·m²; 6.6% | PASS | The WITZ-ID gate requires both the width and the energy; it fails on the -width. The ISSC model-to-model rows (Witz Tables 3–7) are not tabulated here: +width. The peak, secant and branch-shape rows above and the studies below were +computed with the former capstan bound and its identified 1.037 MPa. + +The ISSC model-to-model rows (Witz Tables 3–7) are not tabulated here: the fixed-radius section matrix reproduces the simple-model rows within 0.5% and lies above the participants' axial and torsional means, which allowed radial compliance. @@ -830,12 +867,12 @@ Mechanisms, each at its own computed magnitude: | Mechanism | How the magnitude is fixed | Witz 300 bar: width, energy, E/W | Ménard (b) work; (a) work | Hu loop area (three-point) | | --- | --- | --- | --- | --- | -| Current law | — | 1383 N·m, 2732 J/m, 1.976 | +12.9%; +52.3% | +64.6% | +| Current law | — | 1356 N·m, 2682 J/m, 1.977 (former bound 1383, 2732, 1.976) | +8.8%; +47.2% (former +12.9%; +52.3%) | +64.6% | | (i) Slip-onset spread over azimuth and layer (Papailiou cap; two armour layers) | in the current law for armour | — | — | — | | (i) Same for the conductor: Papailiou cap instead of the Karlsen-Husøy amplitude | same quarter-pitch capacity | n/a | n/a | +36.9% (uniform curvature +4.9%) | -| (i) Friction continuity across the slip boundary (progressive law, continuity density) | parameter-free | 1383, 2720, 1.967 | +12.1%; +49.9% | n/a | -| (ii) Shear lag along the helix (distributed law) | package interface stiffness | 1380, 2713 (phase 2.3) | +12.0%; +49.9% | n/a | -| (iii) Iwan density of contact pressure or friction (uniform, spread h) | no published density; h = 0.5 and 0.9 as sensitivity | 1383, 2726 / 2714, 1.972 / 1.963 | +12.5% (h 0.5) | ±0.1 point | +| (i) Friction continuity across the slip boundary (progressive law, continuity density) | parameter-free | 1357, 2671, 1.969 (former 1383, 2720, 1.967) | +8.2%; +45.2% (former +12.1%; +49.9%) | n/a | +| (ii) Shear lag along the helix (distributed law) | package interface stiffness | 1380, 2713 (phase 2.3; former bound) | +12.0%; +49.9% (former bound) | n/a | +| (iii) Iwan density of contact pressure or friction (uniform, spread h) | no published density; h = 0.5 and 0.9 as sensitivity | 1383, 2726 / 2714, 1.972 / 1.963 (former bound) | +12.5% (h 0.5; former bound) | ±0.1 point | | (iii) Three-core contact shape (package helper) | ring on Winkler foundation | n/a | not available: the Ménard section has an inner sheath and no filler | n/a | | (iv) Interface compliance: ξ × 0.25 to ξ = 1 (Witz phase 2.3); Mindlin trellis compliance (conductor, ξ 0.54–0.56 for rings 2–4) | Yun ξ; Hertz–Mindlin crossings | 0.0% width | — | −2.4 points | | (v) Test arrangement: curvature varying along the specimen (added) | Hu: three-point bend, span 440 mm, κ = 12 w/L²; Ménard: four-point, uniform moment; Witz: not reported | n/a | none | transition share 1.7% → 35.6% (measured 33.8%) | @@ -844,22 +881,24 @@ Gates (registered): | ID | Quantity | Target | Before | After (progressive law; conductor with Papailiou cap) | Status | | --- | --- | --- | --- | --- | --- | -| G8-W1 | Witz 300-bar width, predicted | [1692, 2489] N·m | 1383 | 1383 | FAIL | -| G8-W2 | Witz 300-bar energy, predicted | 3125 J/m ± 15% | 2732 (−12.6%) | 2720 (−13.0%) | PASS | -| G8-W3 | Witz 300-bar energy/width | [1.41, 1.73] 1/m | 1.976 | 1.967 | FAIL | -| G8-W4 | Witz secants (W10), 0-bar energy (W4) | unchanged bands | PASS | PASS (14570/14299 N·m²; 1113 J/m) | PASS | +| G8-W1 | Witz 300-bar width, predicted | [1692, 2489] N·m | 1356 | 1357 | FAIL | +| G8-W2 | Witz 300-bar energy, predicted | 3125 J/m ± 15% | 2682 (−14.2%) | 2671 (−14.5%) | PASS | +| G8-W3 | Witz 300-bar energy/width | [1.41, 1.73] 1/m | 1.977 | 1.969 | FAIL | +| G8-W4 | Witz secants (W10), 0-bar energy (W4) | unchanged bands | PASS | PASS (14570/14299 N·m²; 1113 J/m; former bound) | PASS | | G8-H1 | Hu loop area, three-point reduction | 3.185 N·m/m ± 15% | 5.241 (+64.6%) | 4.359 (+36.9%) | FAIL | | G8-H2 | Hu transition share, three-point reduction | 34% ± 10 points | 35.6% | 32.1% | PASS (from the test arrangement) | -| G8-M | Ménard BM1-loop, range (b) | RMSE < 5%, work within 10%; not worse | 3.16%, +12.9% | 2.94%, +12.1% | FAIL (not worse) | +| G8-M | Ménard BM1-loop, range (b) | RMSE < 5%, work within 10%; not worse | 2.71%, +8.8% | 2.52%, +8.2% | PASS (former bound: 3.16%, +12.9% and 2.94%, +12.1%, FAIL) | | G8-L1–L3 | zero spread bitwise; dissipation ≥ 0; rotation equivariance | exact; ≥ 0; < 1e-12 | — | bitwise; ≥ 0; 9e-15 | PASS | -**BM1-loop.** It fails because, with the source's calibration transferred -(μ 0.2, 0.3 MPa), the model loop is a near-parallelogram whose friction -moment is mobilised within about 0.012 1/m of each reversal, while the -measured moment is mobilised over 0.02–0.05 1/m: the work excess falls with -amplitude (+52.3% at ±0.05 1/m, +12.9% at ±0.10, +6.0% and 0.0% at -0–0.2 1/m). The progressive law removes 0.8 points; no mechanism tested -closes it, so BM1-loop stays an expected failure. +**BM1-loop.** With the source's calibration transferred (μ 0.2, 0.3 MPa), +the model loop is a near-parallelogram whose friction moment is mobilised +within about 0.012 1/m of each reversal, while the measured moment is +mobilised over 0.02–0.05 1/m: the work excess falls with amplitude (+47.2% at +±0.05 1/m, +8.8% at ±0.10, +2.2% and −3.6% at 0–0.2 1/m). With the former +symmetric capstan bound the row failed (+12.9 %) and no mechanism tested +closed it; the signed bound brings it inside the 10 % target, and the +progressive law removes a further 0.6 points. The small-amplitude ranges (a), +(c) and (d) keep their large excess. **Witz.** Diagnosis only (two numbers solved from two targets, not adopted): one added Jenkins population with stick stiffness 623 N·m² and capacity @@ -942,12 +981,12 @@ as shape). | ID | Class | Quantity | Target | Result | Status | | --- | --- | --- | --- | --- | --- | -| SV11-PLANE | M | Per load case, R = mean predicted / mean measured normalised axial range at the 8 bending-plane stations (x.1 and x.5), termination-corrected | median R in [0.85, 1.18] and ≥ 12 of 14 R in [0.70, 1.43] | median 1.65 (0.45-3.65), 3 of 14 | FAIL | -| — | M | Same, sectional (reported beside the gate) | as above | median 1.03 (0.45-2.28), 11 of 14 | reported | -| SV11-GJ | M | LC 14, ±8°: mean predicted / mean measured absolute range at 2.1, 2.5, 3.1, 3.5, termination-corrected | [0.72, 1.38] | 1.90 (477, 262, 299, 94 against 186, 146, 187, 78 MPa) | FAIL | -| — | M | Same, sectional | as above | 1.32 | reported | +| SV11-PLANE | M | Per load case, R = mean predicted / mean measured normalised axial range at the 8 bending-plane stations (x.1 and x.5), termination-corrected | median R in [0.85, 1.18] and ≥ 12 of 14 R in [0.70, 1.43] | median 1.62 (0.45-3.59), 3 of 14 (former capstan bound 1.65) | FAIL | +| — | M | Same, sectional (reported beside the gate) | as above | median 1.00 (0.45-2.17), 11 of 14 (former 1.03) | reported | +| SV11-GJ | M | LC 14, ±8°: mean predicted / mean measured absolute range at 2.1, 2.5, 3.1, 3.5, termination-corrected | [0.72, 1.38] | 1.80 (455, 249, 282, 88 against 186, 146, 187, 78 MPa; former 1.90) | FAIL | +| — | M | Same, sectional | as above | 1.24 (former 1.32) | reported | | — | M | Static stress at LC 14 against the value implied by Gjøsteen absolute / Sævik normalised ranges (281, 238, 341, 278 MPa) | none | 271 against 285 MPa (−5%) | INFO | -| — | M | μ identified on LC 14 (termination R = 1), other cases predicted | as SV11-PLANE | μ = 0.091; median 1.16, 8 of 14 | reported (identified) | +| — | M | μ identified on LC 14 (termination R = 1), other cases predicted | as SV11-PLANE | μ = 0.091; median 1.16, 8 of 14 (former capstan bound; not re-run) | reported (identified) | The band of the gate follows from the data: the coincident bending-plane pairs 1.5/2.1, 2.5/3.1 and 3.5/4.1 should read the same under a symmetric @@ -955,18 +994,20 @@ cycle, and they differ by an RMS of 0.45 in ln (one sensor ≈ 0.32), so an 8-station mean scatters by about 0.11 in ln. Per load case (R termination / sectional): 0.5° 0.45/0.45; 1° 0.54/0.54; -1.5° 0.73/0.73; 2° 0.97/0.97; 4° (250 kN, 17 MPa) 3.65/2.28; 4° 1.60/1.32; -7.5° 2.18/1.14; 8° 2.28/1.17; 15° 1.76/1.09 (500 kN), 1.84/1.17 (250 kN), -1.42/0.91 (750 kN), 2.46/1.39 (17 MPa); 24° 1.70/0.89; 32° 1.59/0.79. -Station-wise RMS of ln(pred/meas): 0.73 (termination), 0.50 (sectional), -against 0.32 for one sensor. +1.5° 0.73/0.73; 2° 0.98/0.98; 4° (250 kN, 17 MPa) 3.59/2.17; 4° 1.57/1.26; +7.5° 2.15/1.09; 8° 2.25/1.11; 15° 1.70/1.03 (500 kN), 1.77/1.11 (250 kN), +1.38/0.87 (750 kN), 2.38/1.32 (17 MPa); 24° 1.66/0.84; 32° 1.56/0.74. +Station-wise RMS of ln(pred/meas): 0.72 (termination), 0.49 (sectional), +against 0.32 for one sensor. The signed capstan bound lowers the slipping +cases by 3–5 % (sectional LC 4 2.28 to 2.17, LC 14 1.09 to 1.03, LC 19 1.39 +to 1.32) and leaves the stick cases (0.5–2°) unchanged. **What matches and what does not.** - *Large angles, sectional.* From 4° up the sectional prediction at the - bending-plane stations is 0.79-1.39 of the measurement (LC 4 aside), and - the mean absolute LC 14 range is 1.32 times the measured one; at 15° and - 250, 500 and 750 kN, R is 1.17, 1.09 and 0.91. The section state also reproduces the + bending-plane stations is 0.74-1.32 of the measurement (LC 4 aside), and + the mean absolute LC 14 range is 1.24 times the measured one; at 15° and + 250, 500 and 750 kN, R is 1.11, 1.03 and 0.87. The section state also reproduces the normalising static stress within 5%. This holds at a declared μ; with the full-slip friction stress proportional to μ (P1+P2), it tests μ (P1+P2), not μ alone. @@ -1048,8 +1089,8 @@ displacement, the test's moment formula and its curvature definition). | Hu, Papailiou cap | same | loop area | 3.185 | 3.340 (+4.9%) | 4.354 (+36.7%) | FAIL | | same | same | transition share | 33.8% | 1.7% | 32.8% (24, 48 and 96 stations) | PASS | | same | same | maximum moment | 8.18 | 7.07 (−13.6%) | 8.11 (−0.9%) | reported | -| Ménard and Cartraud (2023), ranges (a)–(f), transferred inputs | four-point, 2.5 m bench, actuators at the quarter points, ends pivot and slide; M = Fa L1; curvature from a parabola through three LVDTs between the actuators (Sec. 3) | ordered RMSE; work error | — | 11.48/3.16/11.02/9.08/3.98/3.81%; +52.3/+12.9/+49.8/+36.6/+6.0/+0.0% | identical (largest moment difference 3e-8 N·m) | BM1-loop FAIL (unchanged) | -| Witz (1996), WITZ-ID | not documented (p. 888: "No detailed information was supplied on the test equipment or procedures") | 300-bar width; energy; energy/width | [1990, 2164] N·m; 3125 J/m; 1.57 1/m | 1383 N·m; 2732 J/m; 1.976 1/m | basis unchanged; three-point reading of both loops as a sensitivity (p₀ re-identified on the 0-bar width: 0.715 MPa): width 1621 N·m (−18.6% / −25.1%), energy 3057 J/m (−2.2%), energy/width 1.886 1/m; 0-bar energy 1072 J/m (−4.1%) | FAIL (unchanged) | +| Ménard and Cartraud (2023), ranges (a)–(f), transferred inputs | four-point, 2.5 m bench, actuators at the quarter points, ends pivot and slide; M = Fa L1; curvature from a parabola through three LVDTs between the actuators (Sec. 3) | ordered RMSE; work error | — | 10.55/2.71/10.14/8.34/3.83/3.85%; +47.2/+8.8/+44.7/+32.0/+2.2/−3.6% | identical (largest moment difference 3e-8 N·m) | BM1-loop PASS (unchanged by the arrangement; FAIL with the former capstan bound) | +| Witz (1996), WITZ-ID | not documented (p. 888: "No detailed information was supplied on the test equipment or procedures") | 300-bar width; energy; energy/width | [1990, 2164] N·m; 3125 J/m; 1.57 1/m | 1356 N·m; 2682 J/m; 1.977 1/m | basis unchanged; three-point reading of both loops as a sensitivity (p₀ re-identified on the 0-bar width: 0.739 MPa): width 1589 N·m (−20.2% / −26.6%), energy 2998 J/m (−4.1%), energy/width 1.886 1/m; 0-bar energy 1072 J/m (−4.1%) (former capstan bound: 0.715 MPa, 1621 N·m, 3057 J/m) | FAIL (unchanged) | | Zeidan (2025/2026), Komperød (2017) | — | — | — | not in the package (no published construction or not yet registered) | — | — | The Ménard positions of the three LVDTs are not reported; quarter points of @@ -1075,7 +1116,7 @@ Witz sensitivity needs no assumed dimension. (+4.9%) compared a different quantity; in the test's terms the section's friction work is 37% too large (64% with the Karlsen-Husøy amplitude). - **Ménard.** The measured curvature lies in the uniform-moment zone, so the - arrangement changes nothing; BM1-loop (+12.9%) and the excess work of ranges + arrangement changes nothing; BM1-loop (+8.8%) and the excess work of ranges (a)–(d) remain, with the transition mobilised within about 0.012 1/m of a reversal against 0.02–0.05 1/m measured (gap G8). - **Witz.** The source does not document its arrangement, so the @@ -1136,6 +1177,11 @@ taken from the backbone beam at every angle sample of the symmetric cycle inner-armour wires are solved between the two end fittings (anchored); station range at the station azimuth, normalised by the static stress. +Values in this subsection and in the two-way study below were computed with +the former symmetric capstan bound (no reproduction script for them is in the +repository); the scorecard SV11 rows now read 1.62 (termination) and 1.00 +(sectional). + | ID | Class | Quantity | Target | Along-wire (spring, capstan) | Before | Status | | --- | --- | --- | --- | --- | --- | --- | | T2-SV-PLANE | M | median R over 14 load cases; R in [0.70, 1.43] | median in [0.85, 1.18], ≥ 12 of 14 | 3.36 (0.44–6.28), 2 of 14 | termination 1.65 (3 of 14); sectional 1.03 (11 of 14) | FAIL | @@ -1201,7 +1247,9 @@ route is the two-way coupling of the global model **Short specimens** (arrangements, protocols and reductions of T1; the wire end conditions are not reported, so each row is a sensitivity over the end -conditions, none is a basis). +conditions, none is a basis). The Ménard and Witz rows were computed with the +former capstan bound; the Hu rows (conductor operator, no capstan term) are +unchanged. | ID | Class | Benchmark and quantity | Target | Sectional reference | Along-wire (end-condition set) | Status | | --- | --- | --- | --- | --- | --- | --- | @@ -1212,14 +1260,15 @@ conditions, none is a basis). | T2-MEN | M | same, ordered RMSE | — | 11.48/3.16/11.02/9.08/3.98/3.81% | 11.98/3.13/11.46/9.52/4.33/4.47% | reported | | T2-WITZ | M | Witz (1996) WITZ-ID, four-point sensitivity, wires anchored at the supports, p₀ = 1.037 MPa not re-identified: 300-bar width; energy; energy/width; 0-bar width | [1692, 2489] N·m; 3125 ± 15% J/m; [1.41, 1.73] 1/m; 552.7 N·m (identified) | 1383; 2732; 1.976; 552.6 | span 2P: 1657; 3212; 1.939; 668 (+21%). Span 4P: 1248; 2572; 2.060; 552.5 | FAIL (unchanged) | -The scorecard BM1-loop work (+12.9%) integrates the section's energy -fields; the along-wire run has no exact station energy field, so all rows -above use the trapezoid of the reported M dκ between inserted crossings, -in which the direction-tied law reads +12.2%. In that quadrature the -along-wire range (b) is +9.1–9.2% (RMSE 3.13%), 0.8 points inside the 10% -target; the scorecard row is not changed (decision rule: no change of a -basis from a sensitivity, and the same mechanism moves ranges (a), (c) and -(d) further from the measurement). +The scorecard BM1-loop work (+12.9% with the former capstan bound, +8.8% +now) integrates the section's energy fields; the along-wire run has no exact +station energy field, so all rows above use the trapezoid of the reported +M dκ between inserted crossings, in which the direction-tied law read +12.2%. +In that quadrature the along-wire range (b) was +9.1–9.2% (RMSE 3.13%), 0.8 +points inside the 10% target; the scorecard row was not changed by it +(decision rule: no change of a basis from a sensitivity, and the same +mechanism moves ranges (a), (c) and (d) further from the measurement). The +scorecard row now passes on its own basis, through the signed capstan bound. **Reading.** @@ -1238,7 +1287,11 @@ basis from a sensitivity, and the same mechanism moves ranges (a), (c) and - **Stick stiffness.** In slip the spring and rigid conventions carry the full geometric slip demand and agree within 5%; the `scaled` convention reduces the demand by ξ = 0.52 and the over-prediction to about 2. The - capstan term adds 9–11%. The proportional-loading assumption of the clamp + capstan term added 9–11% in the former symmetric form, which raised the + bound of a falling force as well as of a rising one; with the signed term + its share of a full reversal range is of third order in `λ` + (`2 σ0 sinh(λψ)` against `2 σ0 λψ`), so that figure overstates it. It has + not been re-measured. The proportional-loading assumption of the clamp correction under-states the along-wire effect at this rig by 20–50%. - **Short specimens: the end conditions do not matter, the gradient does.** Hu and Ménard are insensitive to the wire end condition and to overhangs @@ -1326,7 +1379,7 @@ screen or sheath fatigue test with locations is held. | P6-C | A | Masing branches: doubled curve, closed-loop memory, return to the cyclic curve | 1e-12 | PASS | PASS | | P6-D | A | Concentric sheath strain-life route: strain amplitude `SCF f_corr κ r`, damage `n / N_f`; elastic route unchanged and strict | 1e-6 | PASS | PASS | | P6-E | I | Thies (2016) laminate, free core, nominal assumed foil inputs: damage per cycle against the hand `κ r` calculation | 0.2% aligned, 1% laid | +0.05% aligned (laminate hoop-strain factor), +0.7% laid (core-lay bending factor) | PASS | -| P1-T | I | Thies (2016) screen, free core, aligned: range, slip, bulk damage and fretting count of the hand core-level calculation | 1% | 254 MPa, 822 µm, 7.2e-6 per cycle, fretting 43 on 4 wires | PASS | +| P1-T | I | Thies (2016) screen, free core, aligned: range, slip, bulk damage and fretting count of the hand core-level calculation (former capstan bound), corrected for the signed bound in full slip: range less `2σ0 (cosh(λπ/2) − 1)` (6.07 MPa), damage by the range ratio to the curve slope | 1% | 248 MPa, 822 µm, 6.2e-6 per cycle, fretting 37 on 4 wires | PASS | Published strain-life points (`ε_a`, `N_f`) of a sheath, foil or screen material are not in the reference library, so the registered constants are @@ -1359,11 +1412,11 @@ damage summed over the four blocks: | Quantity | Lock from MBR 2.54 m | 4.75° per joint (4.34 m) | Constant-radius models (Part A) | | --- | --- | --- | --- | -| Smallest radius 28/14/14/7° [m] (video 2.0/3.5/3.5/7.0) | 1.80/2.22/1.83/4.08 | 3.33/3.45/3.39/4.08 (reverse 2.01 m at the tailstock, 28°) | 2.54 or 2.0/3.5/7.0 | +| Smallest radius 28/14/14/7° [m] (video 2.0/3.5/3.5/7.0) | 1.79/2.21/1.82/4.05 | 3.32/3.43/3.37/4.05 (reverse 2.00 m at the tailstock, 28°) | 2.54 or 2.0/3.5/7.0 | | Locked elements at 28° (length) | 3 (1.08 m) | 7 (2.52 m) | – | | Al laminate D at x = 0.05/0.6/1.2/2.0 m | 49/6.1/0.56/0.002 | 20/11/1.3/0.24 | 49/33/0.74/0 (lock 2.54) | | Cu tape D, stuck, 50°, 20 mm (assumed) | 0.11 at 0.05 m | 0.013 at 0.05 m | not run | -| Screen wires D at 0.05 m: elastic S–N / strain life | 0.55 / 0.11 | 0.45 / 0.097 | 0.55 / – | +| Screen wires D at 0.05 m: elastic S–N / strain life | 0.47 / 0.10 | 0.38 / 0.092 | 0.47 / – | | Armour at the clamp (OC2017 in-air design curve): peak range, D at 0.02 m | 635 MPa, 7.5 | 416 MPa, 0.75 | 318–642 MPa, 11–13 (lock 2.54, anchored) | The restrictor kinematics reduce the armour damage at the clamp of the @@ -1405,13 +1458,18 @@ in [0.72, 1.38]); entries are median R, count in band, GJ ratio: | Model | Round (record) | Rectangle | Rectangle + lateral relief | | --- | --- | --- | --- | -| Sectional, direction-tied | 1.03, 11, 1.32 | 1.09, 11, 1.32 | - | +| Sectional, direction-tied | 1.00, 11, 1.24 | 1.06, 11, 1.25 | - | | Sectional, distributed | 1.03, 11, 1.31 | 1.08, 11, 1.31 | 1.08, 11, 1.30 | -| Clamp correction (clamp solver) | 1.65, 3, 1.90 | 1.76, 2, 1.94 | - | +| Clamp correction (clamp solver) | 1.62, 3, 1.80 | 1.72, 2, 1.85 | - | | Clamp convention, along-wire termination | 1.63, 3, 1.74 | 1.73, 2, 1.80 | 1.72, 3, 1.77 | | Along-wire, spring stick and capstan (T2 basis) | 3.36, 2, 4.62 | 3.40, 2, 4.68 | 3.37, 2, 4.68 | | 0.5/1/1.5° ranges | 0.45/0.54/0.73 | 0.50/0.59/0.80 | 0.50/0.59/0.81 | +The direction-tied sectional and clamp-correction rows are regenerated with the +signed capstan bound (`check_saevik2011.py`, `--tendons rectangular`; former +values 1.03, 11, 1.32 / 1.09, 11, 1.32 and 1.65, 3, 1.90 / 1.76, 2, 1.94); the +other rows were computed with the former bound. + All rectangle variants FAIL SV11-PLANE; SV11-GJ passes for the sectional variants only. The registered hypothesis that lateral/transverse relief near the anchor brings the anchored-wire models to the measured near-sectional diff --git a/doc/concepts.md b/doc/concepts.md index f5de84a..53c775d 100644 --- a/doc/concepts.md +++ b/doc/concepts.md @@ -70,22 +70,28 @@ direction `φ_b`, and `k = ξ E cos² α` the stick stiffness of a wire of modul `E` and lay angle `α`. Friction has to carry that stress along the wire, and friction is capped -(Papailiou 1997). The cap is proportional to the {term}`contact pressure` and to -`expm1(μ |sin α| ψ)`, with `μ` the friction coefficient and `ψ = asin c`. It -is zero on the {term}`neutral axis` of bending and largest on the extreme fibres. -As the curvature grows: +(Papailiou 1997). The cap is proportional to the {term}`contact pressure`, +through the friction-setting stress `σ0`, and changes along the curved wire +with the wire's own force (the capstan term), with `λ = μ |sin α|`, `μ` the +friction coefficient and `ψ = asin c`. A rising wire +stress presses the wire harder onto its bed, so it is capped at +`σ0 expm1(λψ)`; a falling one unloads the bed, so it can fall only to +`−σ0 (1 − exp(−λψ))` (Papailiou's Eq. 14 with the signed helix angle). Both +are zero on the {term}`neutral axis` of bending and largest on the extreme +fibres, and a full reversal spans `2 σ0 sinh(λψ)`. As the curvature grows: 1. Below the slip-onset curvature `κ_on` every wire sticks and the section bends with the no-slip stiffness. 2. At `κ_on` the wires next to the neutral axis reach their cap and start to - slip. `κ_on` is proportional to the friction coefficient and the contact + slip (on the compression side slightly earlier, at `(1 − 3λ²/8) κ_on`). + `κ_on` is proportional to the friction coefficient and the contact pressure. 3. The slip front spreads from the neutral axis towards the extreme fibres. A slipping wire keeps the friction stress of its cap (Coulomb saturation) and from then on adds only its own bending stiffness. -4. When the wire on the extreme fibre slips, at - `κ_on expm1(μ |sin α| π/2) / (μ |sin α|)`, the whole layer is in full slip - and the moment rises with the full-slip stiffness. +4. When the wire on the tension-side extreme fibre slips, at + `κ_on expm1(λ π/2) / λ`, the whole layer is in full slip and the moment + rises with the full-slip stiffness. On a reversal the wires stick again, and slip in the opposite sense once the change of curvature is large enough. The moment–curvature path is therefore a diff --git a/doc/glossary.rst b/doc/glossary.rst index a9dd82f..2157bca 100644 --- a/doc/glossary.rst +++ b/doc/glossary.rst @@ -191,9 +191,10 @@ Terms and abbreviations capstan effect The inward pressure that a tensioned helical layer exerts on what lies inside it, as a rope does on a capstan. In the :term:`bounded chain` each layer adds the jump - ``T tan²α/(2π r²)`` (Féret and Bournazel 1987, Eq. 5). The exponential growth of the - friction cap along the curved wire, ``expm1(μ |sin α| ψ)``, is called the capstan term of - the cap (``capstan=True`` in the along-wire model). + ``T tan²α/(2π r²)`` (Féret and Bournazel 1987, Eq. 5). The exponential change of the + friction cap along the curved wire with the wire's own force, ``expm1(μ |sin α| ψ)`` for + a rising and ``1 − exp(−μ |sin α| ψ)`` for a falling stress, is called the capstan term + of the cap (``capstan=True`` in the along-wire model). carcass The interlocked metal strip on the inside of a flexible pipe that resists collapse; it @@ -523,9 +524,11 @@ Terms and abbreviations friction cap The largest friction stress a slipping armour wire can carry (Papailiou 1997): - proportional to the contact pressure and to ``expm1(μ |sin α| ψ)``, with ``ψ = asin c`` - and ``c = |cos(φ − φ_b)|`` for a wire at azimuth ``φ`` and bending direction ``φ_b``. It is - zero at the neutral axis and largest at the extreme fibre; also called the Papailiou cap. + proportional to the contact pressure and to ``expm1(μ |sin α| ψ)`` for a rising stress + and ``1 − exp(−μ |sin α| ψ)`` for a falling one (signed capstan term), with + ``ψ = asin c`` and ``c = |cos(φ − φ_b)|`` for a wire at azimuth ``φ`` and bending + direction ``φ_b``. It is zero at the neutral axis and largest at the extreme fibre; also + called the Papailiou cap. friction coefficient The ratio ``μ`` of tangential to normal force at sliding. Library values are properties of @@ -569,7 +572,7 @@ Terms and abbreviations against a test. A global model that uses it gives upper estimates of local damage. full-slip curvature - The curvature at which the last wire, on the extreme fibre, starts to slip, + The curvature at which the last wire, on the tension-side extreme fibre, starts to slip, ``κ_on expm1(μ |sin α| π/2)/(μ |sin α|)`` for a layer with slip onset ``κ_on``. Returned by ``full_slip_curvature`` of ``cablexsec.mechanics.papailiou`` and by ``armour_slip_curvatures``. diff --git a/doc/howto.md b/doc/howto.md index a87e4aa..cc9cc43 100644 --- a/doc/howto.md +++ b/doc/howto.md @@ -111,12 +111,12 @@ pressure and temperature without bending, as the strain axis offset -3.82 mm kappa theta psi delta psi_L stick 0.005 0.0 0.0 0.0 0.0 360 - 0.015 0.0 0.0 0.0 0.0 263 + 0.015 0.0 0.0 0.0 0.0 242 0.025 0.0 0.0 0.0 0.0 0 0.050 0.0 0.0 0.0 0.0 0 - 0.050 30.0 33.8 3.8 41.9 156 - 0.050 120.0 123.9 3.9 132.3 156 - 0.050 180.0 -176.1 3.9 -167.7 150 + 0.050 30.0 34.0 4.0 43.0 145 + 0.050 120.0 124.1 4.1 133.4 145 + 0.050 180.0 -175.9 4.1 -166.6 145 ``` Angles are in degrees from the section x axis. `theta` is the bending @@ -146,19 +146,19 @@ tension and curvature, for a section stress map. ```text core state: frictional layer kind min MPa max MPa use limit -cu_conductor annulus -29.2 107.1 0.893 yielding +cu_conductor annulus -28.7 107.1 0.893 yielding conductor_screen annulus -0.2 0.3 - no limit given xlpe_insulation annulus -0.3 0.4 - no limit given insulation_screen annulus -0.3 0.4 - no limit given -cu_screen annulus -243.6 309.0 - follows the section +cu_screen annulus -243.1 309.0 - follows the section hdpe_core_sheath annulus -2.0 2.5 0.037 strain limit pp_filler annulus -7.0 7.6 - no limit given hdpe_bedding annulus -4.3 4.6 0.068 strain limit -inner_armour wires -80.2 152.2 0.221 yielding -outer_armour wires -27.9 97.8 0.142 yielding +inner_armour wires -71.4 152.2 0.221 yielding +outer_armour wires -25.7 97.8 0.142 yielding hdpe_outer_sheath annulus -5.5 5.9 0.086 strain limit -inner_armour: 61 wires, centre line -47.7 to 119.7 MPa -outer_armour: 67 wires, centre line 4.7 to 65.3 MPa +inner_armour: 61 wires, centre line -38.9 to 119.7 MPa +outer_armour: 67 wires, centre line 7.9 to 65.3 MPa ``` ```{figure} howto/figures/howto_04_section_stress.png @@ -186,13 +186,13 @@ cable coiled into a static tank with one twist per turn. ```text D = 14.4 m: kappa = twist = 0.1389 1/m, torque 14.79 kN m - armour wire centre -245.6 to -205.4 MPa, surface -300.4 to -150.6 MPa - bird-caging capacity 231.7 MPa, buckling 1.060, yield 0.751 - governing: armour (radial), utilisation 1.060, elastic True + armour wire centre -244.0 to -205.4 MPa, surface -299.8 to -150.6 MPa + bird-caging capacity 231.7 MPa, buckling 1.053, yield 0.750 + governing: armour (radial), utilisation 1.053, elastic True D = 8.0 m: kappa = twist = 0.2500 1/m, torque 26.62 kN m - armour wire centre -442.1 to -369.7 MPa, surface -540.7 to -271.1 MPa - bird-caging capacity 231.7 MPa, buckling 1.908, yield 1.352 - governing: armour (radial), utilisation 1.908, elastic False + armour wire centre -439.1 to -369.7 MPa, surface -539.7 to -271.1 MPa + bird-caging capacity 231.7 MPa, buckling 1.895, yield 1.349 + governing: armour (radial), utilisation 1.895, elastic False ``` The check is elastic. When the wires yield (`elastic False`) the stresses are @@ -216,11 +216,11 @@ all from one record. ```text armour: critical layer inner_armour, wire at 0 deg, fibre at 0 deg inner_armour damage in 600 s 5.859e-06 - outer_armour damage in 600 s 2.547e-06 + outer_armour damage in 600 s 2.245e-06 copper fibre: 122 cycles, max amplitude 1568 ue, damage 3.647e-05 curvature: mean 60 s maximum 0.0479 1/m, 1 h most probable 0.0761, 90 % fractile 0.0941 1/m inner_armour slip range 0.0 um, slipping share 0.00 -outer_armour slip range 278.1 um, slipping share 0.25 +outer_armour slip range 284.7 um, slipping share 0.26 ``` `jonswap_series` makes a synthetic screening record. `fatigue_from_series` @@ -267,8 +267,8 @@ coupling none friction heat 0.00 W/m at start, 0.00 W/m at 6 h after 6 h: conductor 30.3 C, outer armour 24.7 C coupling two_way - friction heat 8.07 W/m at start, 11.89 W/m at 6 h - after 6 h: conductor 32.2 C, outer armour 26.6 C + friction heat 7.89 W/m at start, 11.62 W/m at 6 h + after 6 h: conductor 32.1 C, outer armour 26.6 C ``` This cable declares no manufacturing clamping, so the friction rests on the diff --git a/doc/howto/figures/howto_04_section_stress.png b/doc/howto/figures/howto_04_section_stress.png index 240e5a8..debf280 100644 Binary files a/doc/howto/figures/howto_04_section_stress.png and b/doc/howto/figures/howto_04_section_stress.png differ diff --git a/doc/local_analysis_guide.md b/doc/local_analysis_guide.md index c6fd30c..9855784 100644 --- a/doc/local_analysis_guide.md +++ b/doc/local_analysis_guide.md @@ -1407,16 +1407,28 @@ run uncompiled. `compute_fatigue` (and `wire_stress_field`) take `friction_model`: - `"direction_tied"` (default): each wire is an independent spring–slider with - the ξ-reduced stick stiffness and the Papailiou cap of the current bending - direction (held below `0.1 κ_on`, `direction_hold_fraction`). + the ξ-reduced stick stiffness and the Papailiou bounds of the current bending + direction (held below `0.1 m κ_on`, `direction_hold_fraction`, + `m = 1 − 3λ²/8`, `λ = μ |sin α|`). - `"distributed"`: the friction force is solved along one pitch of the helix with interface shear stiffness `k̂ = ξ/(1 − ξ)` and the capstan bound - `μ |sin α|`, for any biaxial curvature history and the same clamping - history. Stick zones then anchor the force distribution, so the result does - not depend on a bending direction. + `λ n` on the signed wire force, for any biaxial curvature history and the + same clamping history. Stick zones then anchor the force distribution, so + the result does not depend on a bending direction. + +In every law the capstan term acts on the wire's own force (Papailiou 1997, +Eq. 14 with the signed helix angle): a rising wire stress is bounded by +`σ0 expm1(λψ)`, a falling one by `−σ0 (1 − exp(−λψ))`. A full reversal of a +slipping wire therefore spans `2 σ0 sinh(λψ)`, which differs from the linear +Coulomb range `2 σ0 λψ` only at third order in `λ`; the peak tensile friction +stress is `σ0 expm1(λπ/2)`. Releases before the correction used the tension +bound on both sides, which overstated the extreme-fibre friction range by the +factor `2/(1 + exp(−λπ/2))` (+2.8 to +6.7 % for the bundled power-cable +templates, `λ` 0.035 to 0.085) and the full-slip loop work by about +`(π − 2)λ/2`. - `"progressive"` (gap G8): each wire of the direction-tied law becomes a set of parallel spring–sliders (an Iwan population) with the same stick - stiffness, whose caps average to the same Papailiou cap. The default + stiffness, whose bounds average to the same Papailiou bounds. The default density, `ProgressiveFriction(density="continuity")`, has no parameter: it is the friction-continuity slip law of Sævik (1992), Kim (2020) and Lukassen (2019), in which a stuck wire carries the stress of the slip @@ -1474,21 +1486,22 @@ stationary, and it slips mostly near the neutral axis, where its cap is close to zero. In the distributed law every helix node slips at its own traction bound. For an orbit of radius `R` much larger than the slip onset, the work of one revolution over that of the two planar cycles of amplitude `R` (about the -two axes) is `π/4` in the distributed law (per revolution every node slips -through `4R`, against `4R |sin φ|` in a planar cycle) and -`π(π/2 − 1)/4 = 0.448` in the direction-tied law (linearised cap -`σ0 μ |sin α| asin|cos ψ|`); `tests/test_orbit_friction_heat.py` checks both -limits. On the 66 kV template (both armour layers, +two axes) is `π/4` in the distributed law for any `λ = μ |sin α|` (per +revolution every node slips through `4R`, against `4R |sin φ|` in a planar +cycle) and `π (sinh x₀ − λ)/(4 λ cosh x₀)`, `x₀ = λπ/2`, in the +direction-tied law with its signed bounds, which is `π(π/2 − 1)/4 = 0.448` +up to `O(λ²)`; `tests/test_orbit_friction_heat.py` checks both limits. On the 66 kV template (both armour layers, 100 kN): | Circular orbit radius / `κ_on` | 2 | 4 | 8 | 16 | 32 | large (closed form) | | --- | --- | --- | --- | --- | --- | --- | -| direction-tied work / distributed work | 0.16 | 0.28 | 0.38 | 0.46 | 0.51 | 0.57 | -| largest per-wire stress range, direction-tied / distributed | 0.92–0.94 | 0.96–0.98 | 0.99–1.00 | 1.00–1.01 | 1.01 | | +| direction-tied work / distributed work | 0.16 | 0.29 | 0.39 | 0.47 | 0.51 | 0.57 | +| largest per-wire stress range, direction-tied / distributed | 0.92–0.94 | 0.97–0.98 | 0.99–1.00 | 1.00–1.01 | 1.01 | | A planar cycle of the same amplitudes dissipates the same work in both laws -within 3 %, and a figure-eight orbit (`κ_y` at twice the frequency of `κ_x`) -0.65–0.78 of the distributed work. Fatigue is not affected, but a heat source +within 3 % (at large amplitude the direction-tied work is `sinh(x₀)/x₀` +times the distributed one, 1.0005–1.0008 here), and a figure-eight orbit +(`κ_y` at twice the frequency of `κ_x`) 0.66–0.78 of the distributed work. Fatigue is not affected, but a heat source is: `compute_thermal_fatigue` takes the frictional heat of its `Pi2` diagnostic from the distributed law whatever `friction_model` the fatigue uses (64 nodes per pitch and substeps of `κ_on`, within 0.25 % of the @@ -2024,10 +2037,10 @@ reconstruction with stated bounds; `examples/thies2016_screens_sheaths.py`): at `R = 2.54 m` the laminate strain amplitude is 0.80% (free), 0.82% (frictional) and 1.81% (stuck); the summed laminate damage within 0.6 m of the headstock is 49 (locking at the MBR) and 19 (video radii), cracking under -every bound. The screen wires carry a 253 MPa friction stress range at the -extreme fibre, 0.82 mm slip at the neutral axis and a bulk damage of 0.55; +every bound. The screen wires carry a 247 MPa friction stress range at the +extreme fibre, 0.82 mm slip at the neutral axis and a bulk damage of 0.47; the fretting knock-down raises the partial-slip wires next to the extreme -fibres to 22 (library Cu–Cu μ = 0.20) or 43 (μ = 0.25). The core lay (4.7°) +fibres to 19 (library Cu–Cu μ = 0.20) or 37 (μ = 0.25). The core lay (4.7°) lowers the radial core curvature by 2%, which moves two of the four partial-slip wires into gross slip (4 with aligned cores, 2 with the lay). @@ -2173,9 +2186,9 @@ assumed inputs and bounds of the reconstruction. field `κ(x, t)` (Section 13.5) is kinematic: small rotations, linear secant `EI`, no restrictor hysteresis, locking from the root only. - **Bending loop calibration fixes the product, not the split.** Matching a - measured moment–curvature loop identifies the friction cap, approximately - the product of friction coefficient and clamping pressure. Different (μ, - pressure) pairs give the same loop. Outputs that depend on each factor + measured moment–curvature loop identifies the friction cap, the product of + friction coefficient and clamping pressure up to second order in + `μ |sin α|`. Different (μ, pressure) pairs give the same loop. Outputs that depend on each factor separately, such as crossing pressure, slip amplitude and fretting indices, are not fixed by the loop. State which split you use. - **Transverse slip.** The default loxodromic kinematics (`transverse_ratio=0`) diff --git a/doc/rig_test_guide.md b/doc/rig_test_guide.md index b69646f..f2340cd 100644 --- a/doc/rig_test_guide.md +++ b/doc/rig_test_guide.md @@ -118,8 +118,9 @@ fallback is recorded in `notes`. A temperature history then raises an error. neutral-axis wire. - **sectional friction**: the package direction-tied stick–slip stress (`wire_friction_stress`) with the pressure history. This is the ξ-reduced - stick stress below slip and the Papailiou cap `σ0 expm1(μ|sin α|ψ)` in - slip. It vanishes on the neutral-axis wire. + stick stress below slip and the signed Papailiou bounds in slip, + `σ0 expm1(μ|sin α|ψ)` for a rising and `−σ0 (1 − exp(−μ|sin α|ψ))` for a + falling stress. It vanishes on the neutral-axis wire. **Clamp increment.** Every wire of the layer is followed along the whole specimen, between anchors at both clamps (`anchored_wire_response`). The @@ -279,7 +280,7 @@ Practical consequences for a test plan: (`profile="field"`, gap P5) is solved segment by segment. The clamp increment uses the linearised Papailiou cap; the sectional part - uses the package `expm1` cap. + uses the package's signed Papailiou bounds. - The averaged clamp law over-predicts for `a ≲ 10`. The solver is exact for the stated model at any `a`. - Bending-induced redistribution of contact pressure (three-core ovalisation) diff --git a/doc/template_66kv.md b/doc/template_66kv.md index e633305..b39db19 100644 --- a/doc/template_66kv.md +++ b/doc/template_66kv.md @@ -120,8 +120,8 @@ th = cx.compute_thermal(cable, current_A=1093.0, conductor_area_m2=630e-6, | Full-slip EI | 21.0 kN·m², with or without core friction | 42.47 kN·m² slipping stiffness at 50 kN, IEA Table 13; branch slope about 29 kN·m² in Fig. 6 and about 41 kN·m² in Fig. 12b | −51 % (−28 % against Fig. 6); outer and inner sheath give 11.6 and 6.1 kN·m². Friction cannot raise the full-slip value (Section 4.1) | | No-slip EI (plane section) | 1653 kN·m²; bending-law slope 853 kN·m² armour only, 981 kN·m² with core friction (core ξ = 0.73) | of order 1500–2000 kN·m², initial slope in the Fig. 12b inset (10 kN) | Read from the inset | | M at 0.2 1/m, 50 kN loop | 4.31 / 4.28 kN·m (bounded / solved); 4.39 / 4.38 kN·m with core friction | about 6.8 kN·m, Fig. 6 | −35 % with core friction | -| Loop half-height at κ = 0 | 0.11 / 0.08 kN·m (bounded / solved); 0.20 / 0.19 kN·m with core friction | about 1 kN·m, Fig. 6 | Core friction (μ 0.46) adds 0.08–0.10 kN·m; still about 5 times low | -| Moment at slip onset, 10/100/200 kN | 0.23 / 0.44 / 0.67 kN·m at 0.01 1/m; 0.25 / 0.60 / 0.99 kN·m with core friction (bounded) | about 5.5 / 9.5 / 12 kN·m, Fig. 12b | Same cause; 12 to 22 times low | +| Loop half-height at κ = 0 | 0.11 / 0.08 kN·m (bounded / solved); 0.19 / 0.18 kN·m with core friction | about 1 kN·m, Fig. 6 | Core friction (μ 0.46) adds 0.08–0.10 kN·m; still about 5 times low | +| Moment at slip onset, 10/100/200 kN | 0.23 / 0.43 / 0.66 kN·m at 0.01 1/m; 0.25 / 0.59 / 0.97 kN·m with core friction (bounded) | about 5.5 / 9.5 / 12 kN·m, Fig. 12b | Same cause; 12 to 22 times low | | Armour axial stress at 1000 kN | 298 / 305 MPa (inner / outer) | about 355 MPa von Mises, Fig. 19b | Axial part only | | Conductor axial stress at 1000 kN | 176 MPa | about 190 MPa, Fig. 19b | −7 % | | Armour yield, pure bending | 1.16 1/m | about 1 1/m, Section 3.3 | | @@ -131,6 +131,16 @@ th = cx.compute_thermal(cable, current_A=1093.0, conductor_area_m2=630e-6, | Conductor temperature at 1093 A (125 MW) | 88.9 °C (armour 61.0 °C) | 125 MW rating, IEA Table 13 (90 °C XLPE basis) | Assumed T4; no three-core factor or λ2 | | Mass | 76.3 kg/m; 52.5 kg/m without the screens | 55.76 kg/m, IEA Table 13 | Screens are full copper annuli in Table 1 | +The friction-dependent values from here to the end of the page were computed +with the former symmetric capstan bound, except the loop half-heights and +slip-onset moments of the table above, the Section 4.1 table and the +frictional heat, `Π2` and temperature rise of the daily cycle in Section 4.2, +which are regenerated with the signed bound +(`validation/scripts/check_core_friction.py`). +For this template (`λ = μ |sin α|` 0.035–0.045) the signed bound lowers the +full-slip friction stress range by 2.8–3.6 % and the bulk damage by up to +about 12 % (CHANGELOG). + Fatigue on a synthetic 2000 s history (κ_x = 0.004 sin(2πt/10) + noise, κ_y = 0.002 sin(2πt/13 + 0.4), T = 50 ± 5 kN), maximum wire damage (inner armour governs): @@ -168,16 +178,16 @@ fatigue (`iea_task49_66kv_stranded`, Section 4.5). | Quantity at 50 kN | Armour only (bounded / solved) | With core friction (bounded / solved) | Published | Status | | --- | --- | --- | --- | --- | | Core normal load per core | — | 9.4 / 12.2 kN/m | not published | — | -| Loop half-height at κ = 0 | 0.114 / 0.083 kN·m | 0.195 / 0.187 kN·m | about 1.0 kN·m (Fig. 6) | FAIL | +| Loop half-height at κ = 0 | 0.112 / 0.081 kN·m | 0.190 / 0.181 kN·m | about 1.0 kN·m (Fig. 6) | FAIL | | M at 0.2 1/m | 4.31 / 4.28 kN·m | 4.39 / 4.38 kN·m | about 6.8 kN·m (Fig. 6) | FAIL | | Branch slope, 0.05–0.15 1/m | 21.0 kN·m² | 21.0 kN·m² | about 29 (Fig. 6); 42.47 (IEA Table 13) kN·m² | FAIL | -| M at 0.01 1/m, 10 / 100 / 200 kN (solved) | 0.23 / 0.37 / 0.54 kN·m | 0.25 / 0.58 / 0.96 kN·m | about 5.8 / 9.5 / 12.5 kN·m (Fig. 12b) | FAIL | +| M at 0.01 1/m, 10 / 100 / 200 kN (solved) | 0.23 / 0.37 / 0.53 kN·m | 0.25 / 0.57 / 0.93 kN·m | about 5.8 / 9.5 / 12.5 kN·m (Fig. 12b) | FAIL | | Slope 0.1–0.4 1/m, 10 / 100 / 200 kN | 21.0 kN·m² | 21.0 kN·m² | about 41 / 41 / 44 kN·m² (Fig. 12b) | FAIL | What the comparison shows: - The core friction moment is linear in the core contact load. A 1.0 kN·m - half-height needs about 107 kN/m per core, against 12.2 kN/m from the + half-height needs about 112 kN/m per core, against 12.2 kN/m from the solved tension-induced contact at 50 kN. The source does not state an initial contact state; its Fig. 12b knee at 10 kN (5.8 kN·m) exceeds its own Fig. 6 half-height at 50 kN (about 1 kN·m), so the two figures cannot @@ -236,10 +246,12 @@ state 7.3 and 5.2 (upper-bound sensitivities, as above). The daily range of the 6.1e-7 per day from bending at this sea state. Diagnostics: Π1 = 3.8e-4; Π3 = 14–48 in every block (the armour slips in every block, so the damage follows the friction cap); frictional heating of the record at most -0.79 W/m, Π2 = 7.1e-3 at the peak-load block, and an armour temperature rise -of at most 0.29 K through the network (dissipation of the distributed friction -law; the direction-tied cap, which under-counts the work of the rotating -curvature of this record, gives 0.58 W/m, 5.2e-3 and 0.21 K; +0.77 W/m, Π2 = 6.9e-3 at the peak-load block, and an armour temperature rise +of at most 0.28 K through the network (dissipation of the distributed friction +law, signed capstan bound; the direction-tied cap, which under-counts the work +of the rotating curvature of this record, gives 0.57 W/m, 5.1e-3 and 0.21 K; +with the former symmetric bound 0.79 W/m, 7.1e-3 and 0.29 K, direction-tied +0.58 W/m, 5.2e-3 and 0.21 K; [local_analysis_guide.md](local_analysis_guide.md) Section 9), so the one-way coupling holds for this sea state (Π2 grows without bound as the current tends to zero, which is why the temperature rise is the quantity to compare with the diff --git a/doc/tutorials/02_bending_hysteresis.md b/doc/tutorials/02_bending_hysteresis.md index afd5e1d..b100c1a 100644 --- a/doc/tutorials/02_bending_hysteresis.md +++ b/doc/tutorials/02_bending_hysteresis.md @@ -74,11 +74,11 @@ no part in setting them. ```text -model moment -539 to 537 N m -ordered RMSE / measured range: 3.16 % +model moment -532 to 530 N m +ordered RMSE / measured range: 2.71 % ``` -Point by point in the recorded order, the moment error is 3.16 % of the +Point by point in the recorded order, the moment error is 2.71 % of the measured moment range. ## 3. The loop area is the friction work @@ -98,21 +98,20 @@ the loop. ```text -stored energy at the cycle crossings: [0.354 0.354 0.354] J/m -largest stored energy: 17.29 J/m -friction work per cycle, model: [70.4 70.3] J/m +stored energy at the cycle crossings: [0.328 0.328 0.328] J/m +largest stored energy: 17.27 J/m +friction work per cycle, model: [67.9 67.8] J/m loop area per cycle, measured: [62.4 62.2] J/m -difference of the means: +12.9 % +difference of the means: +8.8 % ``` The stored energy is the same at every zero crossing, so each cycle closes. It peaks at the curvature extremes. -The calculated friction work per cycle is 12.9 % above the measured loop area. -The validation record registers a 10 % target for this comparison, so the case -is reported there as a failure: row BM1-loop of the -[validation record](../validation.md), discussed in the -[benchmark register](../benchmarks.md). +The calculated friction work per cycle is 8.8 % above the measured loop area, +inside the 10 % target that the validation record registers for this +comparison: row BM1-loop of the [validation record](../validation.md), +discussed in the [benchmark register](../benchmarks.md). `loop.W_diss_J_per_m` is the friction work over the whole supplied history, conditioning pass included. For the loss per cycle, take differences of @@ -143,20 +142,22 @@ and the clamping through a copy of the cable with another initial pressure ```text -mu = 0.1 peak 451 N m, friction work 36.8 J/m per cycle, inner slip onset 0.0015 1/m -mu = 0.2 peak 548 N m, friction work 73.5 J/m per cycle, inner slip onset 0.0030 1/m -mu = 0.3 peak 649 N m, friction work 110.2 J/m per cycle, inner slip onset 0.0046 1/m -p0 = 0.15 MPa peak 453 N m, friction work 37.5 J/m per cycle, inner slip onset 0.0015 1/m -p0 = 0.30 MPa peak 548 N m, friction work 73.5 J/m per cycle, inner slip onset 0.0030 1/m -p0 = 0.60 MPa peak 739 N m, friction work 141.4 J/m per cycle, inner slip onset 0.0061 1/m +mu = 0.1 peak 449 N m, friction work 36.1 J/m per cycle, inner slip onset 0.0015 1/m +mu = 0.2 peak 541 N m, friction work 70.9 J/m per cycle, inner slip onset 0.0030 1/m +mu = 0.3 peak 633 N m, friction work 104.5 J/m per cycle, inner slip onset 0.0046 1/m +p0 = 0.15 MPa peak 449 N m, friction work 36.1 J/m per cycle, inner slip onset 0.0015 1/m +p0 = 0.30 MPa peak 541 N m, friction work 70.9 J/m per cycle, inner slip onset 0.0030 1/m +p0 = 0.60 MPa peak 725 N m, friction work 136.5 J/m per cycle, inner slip onset 0.0061 1/m ``` The friction work per cycle is close to proportional to the friction coefficient and to the pressure, and so is the slip-onset curvature. -Halving the friction coefficient and halving the pressure give nearly the -same loop, 36.8 and 37.5 J/m. A measured loop therefore constrains the product -of friction and clamping, not the two separately. The +Halving the friction coefficient and halving the pressure give the same +loop to the digits printed, 36.1 J/m. The friction stress scales with +`mu sigma_0` and departs from that product only at second order in +`mu sin(alpha)`, so a measured loop constrains the product of friction and +clamping, not the two separately. The [benchmark register](../benchmarks.md) reports the same for the six Ménard ranges. diff --git a/doc/tutorials/03_global_to_fatigue.md b/doc/tutorials/03_global_to_fatigue.md index 5fcfcbf..fc66c29 100644 --- a/doc/tutorials/03_global_to_fatigue.md +++ b/doc/tutorials/03_global_to_fatigue.md @@ -188,8 +188,8 @@ gives `T_e − p_o A_o`, and use `fatigue_from_series`. ```text warnings: MissingClampingStateWarning -inner_armour: 139 wires, damage 7.749e-09 to 1.420e-08, largest on wire 70 at 181.3 deg, fibre 180.00 deg -outer_armour: 145 wires, damage 7.470e-09 to 8.987e-09, largest on wire 72 at 178.8 deg, fibre 180.00 deg +inner_armour: 139 wires, damage 7.749e-09 to 1.388e-08, largest on wire 70 at 181.3 deg, fibre 180.00 deg +outer_armour: 145 wires, damage 7.462e-09 to 8.927e-09, largest on wire 73 at 181.2 deg, fibre 180.00 deg governing: inner_armour, wire at 181.3 deg, fibre 180.00 deg (bulk damage) ``` @@ -243,8 +243,8 @@ wire about its own axes. `at_fibre(angle)` combines them at any fibre. ```text -inner_armour: same damage as compute_fatigue True, 1 Hz equivalent range 2.18 to 12.47 MPa -outer_armour: same damage as compute_fatigue True, 1 Hz equivalent range 2.11 to 11.13 MPa +inner_armour: same damage as compute_fatigue True, 1 Hz equivalent range 2.17 to 12.40 MPa +outer_armour: same damage as compute_fatigue True, 1 Hz equivalent range 2.11 to 11.11 MPa ``` With the contact pressure history of `armour_contact_histories` and the @@ -265,11 +265,11 @@ local analysis guide, and the `count_from_sample` argument of ```text S-N curve saevik_2011_flat_steel: slope m = 4, [Saevik2011] Eq. (89) -stress at the governing fibre: 16.0 to 48.9 MPa -rainflow: 152.0 cycles, largest range 32.90 MPa -equivalent range over the counted cycles 17.58 MPa -equivalent range at 1 Hz, 600 cycles 12.47 MPa -damage from the equivalent range 1.4201e-08, from compute_fatigue 1.4201e-08 +stress at the governing fibre: 16.1 to 48.9 MPa +rainflow: 152.0 cycles, largest range 32.79 MPa +equivalent range over the counted cycles 17.48 MPa +equivalent range at 1 Hz, 600 cycles 12.40 MPa +damage from the equivalent range 1.3881e-08, from compute_fatigue 1.3881e-08 ``` For an S–N curve of a single slope `m`, the damage-equivalent stress range diff --git a/doc/tutorials/04_contact_and_fretting.md b/doc/tutorials/04_contact_and_fretting.md index cf3d21e..8c720e0 100644 --- a/doc/tutorials/04_contact_and_fretting.md +++ b/doc/tutorials/04_contact_and_fretting.md @@ -196,8 +196,8 @@ pressure history of step 3: ```text -inner_armour: full-slip amplitude up to 364 um, friction law up to 3.9 um, stations slipping 0.2% of the time -outer_armour: full-slip amplitude up to 402 um, friction law up to 134.2 um, stations slipping 6.8% of the time +inner_armour: full-slip amplitude up to 364 um, friction law up to 5.8 um, stations slipping 0.2% of the time +outer_armour: full-slip amplitude up to 402 um, friction law up to 136.1 um, stations slipping 6.9% of the time ``` ```{figure} figures/tutorial_04_slip_amplitude.png diff --git a/doc/tutorials/figures/tutorial_02_measured_loop.png b/doc/tutorials/figures/tutorial_02_measured_loop.png index a07fdd2..870b294 100644 Binary files a/doc/tutorials/figures/tutorial_02_measured_loop.png and b/doc/tutorials/figures/tutorial_02_measured_loop.png differ diff --git a/doc/tutorials/figures/tutorial_02_sensitivity.png b/doc/tutorials/figures/tutorial_02_sensitivity.png index d0e9099..2c98064 100644 Binary files a/doc/tutorials/figures/tutorial_02_sensitivity.png and b/doc/tutorials/figures/tutorial_02_sensitivity.png differ diff --git a/src/cablexsec/analysis/capacity.py b/src/cablexsec/analysis/capacity.py index 4d92a0a..77ab0ba 100644 --- a/src/cablexsec/analysis/capacity.py +++ b/src/cablexsec/analysis/capacity.py @@ -125,7 +125,7 @@ AxisymmetricResult, compute_contact_forces, ) -from cablexsec.mechanics.papailiou import wire_slip_stress_cap +from cablexsec.mechanics.papailiou import wire_slip_stress_bounds from cablexsec.mechanics.section_state import SectionState, solve_section_state from cablexsec.mechanics.stiffness import ea_fixed from cablexsec.mechanics.wire_stress import local_bending_amplitude @@ -672,7 +672,8 @@ def maximum_usage(kappa: float) -> float: if section_state is not None: sigma_axial = section_state.layers[layer.name].longitudinal_stress_Pa sigma_stick = spec.k_f * spec.r_helix_m * np.abs(cos_phi) * kappa - sigma_slip = wire_slip_stress_cap(spec, phi_bend) + cap_hi, cap_lo = wire_slip_stress_bounds(spec, phi_bend) + sigma_slip = np.where(cos_phi >= 0.0, cap_hi, cap_lo) sigma_friction = np.sign(cos_phi) * np.minimum(sigma_stick, sigma_slip) sigma_bending = _local_bending_max( layer, kappa, phi, spec.E_wire_Pa, spec.lay_angle_rad, phi_bend diff --git a/src/cablexsec/analysis/components.py b/src/cablexsec/analysis/components.py index 8a8ae11..3b9c4bb 100644 --- a/src/cablexsec/analysis/components.py +++ b/src/cablexsec/analysis/components.py @@ -99,7 +99,7 @@ from cablexsec.mechanics.core_friction import CoreFrictionSpec, build_core_friction from cablexsec.mechanics.core_kinematics import CORE_SLIP_STATES, CoreSlipState from cablexsec.mechanics.core_lay import core_angle, core_bending_components -from cablexsec.mechanics.papailiou import wire_slip_stress_cap +from cablexsec.mechanics.papailiou import wire_slip_stress_bounds from cablexsec.mechanics.section_geometry import axial_cosine from cablexsec.mechanics.section_state import ( LayerNormalState, @@ -480,8 +480,9 @@ def _core_axis( else: phi_bend = math.atan2(kappa_y, kappa_x) stations = np.arange(layer.n_cores) * model.spec.n_stations_per_core - cap = wire_slip_stress_cap(population, phi_bend)[stations] + cap_hi, cap_lo = wire_slip_stress_bounds(population, phi_bend) cosine = np.cos(phases - phi_bend) + cap = np.where(cosine >= 0.0, cap_hi[stations], cap_lo[stations]) stick = population.k_f * population.r_helix_m * np.abs(cosine) * kappa frictional = np.sign(cosine) * np.minimum(stick, cap) / population.E_wire_Pa slipping = int(np.count_nonzero(stick >= cap)) diff --git a/src/cablexsec/analysis/kinematics.py b/src/cablexsec/analysis/kinematics.py index ca80458..852a500 100644 --- a/src/cablexsec/analysis/kinematics.py +++ b/src/cablexsec/analysis/kinematics.py @@ -39,17 +39,21 @@ integrated exactly over the piecewise-linear field between the stations (trapezoids). A uniform curvature cannot slide a wire as a whole over a -pitch, so the pitch mean of ``gamma`` (zero in planar bending by symmetry; -round-off or a turning curvature otherwise) is taken out before the -integration, which keeps ``u`` periodic; the largest share taken out is kept +pitch, so the pitch mean of ``gamma`` is taken out before the integration +(a turning curvature, and in planar bending the net friction axial force that +the signed capstan bound leaves the pointwise laws, ``O(lam^2)`` with +``lam = mu |sin a|``), which keeps ``u`` periodic; the largest share taken out is kept as ``mean_slip_share``. The pointwise law gives the slip strain, not the constant ``C``; it is fixed step by step by the stick zones, where the wire does not move on its bed: over each step ``C`` changes so that the stations in stick (a station whose slip strain did not change, with both neighbours) keep their displacement on average, and so that the pitch mean of ``u`` keeps its value when no station sticks. In planar bending the stick zones round the -two extreme fibres then stay exactly in place. From the stress-free start -``p = 0`` and ``u = 0`` until a wire slips. In frictionless slip +two extreme fibres then keep their mean position exactly (by the mirror +symmetry ``phi -> -phi`` the centred slip strain integrates to zero over each +half pitch); taking out the mean tilts each zone about its centre by at most +``(r / |sin a|) (pi / 2)`` times the change of the mean per step. From the +stress-free start ``p = 0`` and ``u = 0`` until a wire slips. In frictionless slip ``sigma_f = 0``, ``p = d`` and ``u = -s (r^2 cos^2 a / |sin a|) (kx sin phi - ky cos phi)``: the full-slip kinematic slip of [KraincanicKebadze2001], ``r^2 cos^2 a / sin a`` times the diff --git a/src/cablexsec/analysis/rig_test.py b/src/cablexsec/analysis/rig_test.py index 4953de6..4610860 100644 --- a/src/cablexsec/analysis/rig_test.py +++ b/src/cablexsec/analysis/rig_test.py @@ -1591,7 +1591,7 @@ def bending( "wire, one wire per layer without layer interaction, planar proportional " "curvature; not verified against helix FE or a test", "clamp increment uses the linearised Papailiou cap; the sectional part " - "uses the package expm1 cap", + "uses the package's signed Papailiou bounds", "moment-curvature loops use the mean protocol tension; the end-rotation " "profile is frozen at the mean tension and secant stiffness", "gauge strain is mechanical wire strain on the outward fibre, zeroed at " diff --git a/src/cablexsec/analysis/section_properties.py b/src/cablexsec/analysis/section_properties.py index 950fafb..65aeec2 100644 --- a/src/cablexsec/analysis/section_properties.py +++ b/src/cablexsec/analysis/section_properties.py @@ -20,7 +20,9 @@ difference; * the friction-setting contact pressure ``P1+P2`` of each armour layer, its slip-onset curvature (:func:`~cablexsec.mechanics.papailiou. - slip_onset_curvature`, the neutral-axis limit) and its full-slip curvature + slip_onset_curvature`, the neutral-axis limit; with the signed capstan + bound the first wire slips on the compression side at ``1 - 3 lam^2 / 8`` + of it, ``lam = mu |sin a|``) and its full-slip curvature (:func:`~cablexsec.mechanics.papailiou.full_slip_curvature`, the last wire to slip), both with the stick stiffness of the bending law; * the monotonic moment-curvature backbone of :func:`~cablexsec.api. @@ -339,7 +341,10 @@ class ArmourSlip: xi: float """Shear coefficient in the stick stiffness ``xi E cos² a`` of the law.""" onset_curvature_1_m: float - """Neutral-axis limit of the slip onset (a lower bound for the wires).""" + """Neutral-axis limit of the slip onset. The first wire slips slightly + below it, on the compression side, at ``m(lam)`` times this value, + ``m = 1 - 3 lam^2 / 8 + O(lam^3)`` (signed capstan bound, + :func:`~cablexsec.mechanics.papailiou.slip_onset_curvature`).""" full_slip_curvature_1_m: float """Curvature from which every wire of the layer slips.""" stick_bending_stiffness_Nm2: float @@ -364,7 +369,8 @@ class CoreSlip: xi: float """Stick coefficient of a core (insulation shear and contact penalty).""" onset_curvature_1_m: float - """Neutral-axis limit of the core slip onset.""" + """Neutral-axis limit of the core slip onset (the compression side slips + from ``m(lam)`` times it, as for the armour).""" full_slip_curvature_1_m: float """Curvature from which every core slips.""" stick_bending_stiffness_Nm2: float diff --git a/src/cablexsec/analysis/stress.py b/src/cablexsec/analysis/stress.py index 2bb02ec..e16c5fb 100644 --- a/src/cablexsec/analysis/stress.py +++ b/src/cablexsec/analysis/stress.py @@ -29,17 +29,21 @@ :func:`~cablexsec.api.compute_mkappa` integrates, evaluated per physical wire. A wire at azimuth ``θ = φ_k − φ_bend`` carries the stick axial stress ``E cos²β r |cosθ| κ`` capped by the frozen-friction slip stress -``σ_0 (exp(μ sinβ ψ) − 1)`` at the neutral-axis angle ``ψ = arcsin|cosθ|`` -([Papailiou1997] Eq. 14, with ``σ_0 = (P1+P2) b_t r cosα / (A_w sin²α)``, -``b_t = 2π r / n``, per [Kim2020] Eq. 3.24; see -:func:`~cablexsec.mechanics.papailiou.wire_slip_stress_cap`). Because +``σ_0 (exp(μ sinβ ψ) − 1)`` on the tension side and ``σ_0 (1 − exp(−μ sinβ ψ))`` +on the compression side, at the neutral-axis angle ``ψ = arcsin|cosθ|`` +([Papailiou1997] Eq. 14 with the signed helix angle, +``σ_0 = (P1+P2) b_t r cosα / (A_w sin²α)``, ``b_t = 2π r / n``, per [Kim2020] +Eq. 3.24; see :func:`~cablexsec.mechanics.papailiou.wire_slip_stress_bounds`). +Because ``sinψ = |cosθ|`` maps the physical azimuth one-to-one onto the Papailiou neutral-axis coordinate, the assembled cable moment ``Σ σ_f A_w r_h cos(φ−φ_bend) cosβ + EI_min κ`` recovers :func:`~cablexsec.api.compute_mkappa` (the Papailiou engine) to within per-wire discretisation. This is an internal consistency check, not independent validation. Slip starts at the **neutral axis** (smallest ``κ_c``), per the -Raoof/Kim mechanism. The per-wire stick-slip boundary curvature ``κ_c,k`` is +Raoof/Kim mechanism; with the signed bound the first slip sits on the +compression side at ``ψ ≈ 3λ/2``, ``λ = μ sinβ``, at ``1 − 3λ²/8`` times the +neutral-axis onset. The per-wire stick-slip boundary curvature ``κ_c,k`` is reported. References @@ -67,7 +71,7 @@ from cablexsec.cables.schema import CableData from cablexsec.exceptions import CableInputError, CableSchemaError from cablexsec.materials import library -from cablexsec.mechanics.papailiou import wire_slip_stress_cap +from cablexsec.mechanics.papailiou import wire_slip_stress_bounds from cablexsec.mechanics.section_state import SectionState, solve_section_state from cablexsec.mechanics.stiffness import ea_fixed, ei_min_slip from cablexsec.mechanics.thermal import ThermalResult @@ -366,9 +370,11 @@ def compute_stress( # at azimuth θ = φ−φ_bend sits at neutral-axis angle ψ with # sin ψ = |cos θ| ([Papailiou1997] coords). sigma_0 from the cable's # P1+P2 ([Kim2020] Eq. 3.24). Stick stress is capped by the frozen - # slip stress; slip onset is at the neutral axis (smallest κ_c). + # slip stress of the wire's side (tension or compression bound); + # slip onset is near the neutral axis (smallest κ_c). abs_c = np.abs(cphi) - sigma_slip = wire_slip_stress_cap(spec, phi_bend) + cap_hi, cap_lo = wire_slip_stress_bounds(spec, phi_bend) + sigma_slip = np.where(cphi >= 0.0, cap_hi, cap_lo) sigma_stuck = spec.k_f * r_h * abs_c * kappa_mag sigma_f = np.sign(cphi) * np.minimum(sigma_stuck, sigma_slip) slipping: BoolArray = np.asarray(sigma_stuck >= sigma_slip, dtype=bool) @@ -439,7 +445,7 @@ def compute_stress( s_envelope[lyr.name] = envelope # Per-wire stick-slip boundary curvature, consistent with the engine: - # κ_c = σ_slip / (E cos²β r |cos θ|) — smallest at the neutral axis. + # κ_c = σ_slip / (E cos²β r |cos θ|) — smallest near the neutral axis. denom = spec.k_f * r_h * abs_c safe = np.where(denom > 0.0, denom, 1.0) kappa_c = np.where(denom > 0.0, sigma_slip / safe, np.inf) diff --git a/src/cablexsec/analysis/tape.py b/src/cablexsec/analysis/tape.py index a92ce50..4f3c724 100644 --- a/src/cablexsec/analysis/tape.py +++ b/src/cablexsec/analysis/tape.py @@ -48,8 +48,9 @@ Elastic--Coulomb stick-slip along the tape on the declared friction-setting pressure ``P1 + P2`` and friction coefficient: the bending part of the stuck strain, per fibre line of the tape - (centre and edges), is returned through the Papailiou cap - ``sigma_0 expm1(mu sin(beta) psi)`` with + (centre and edges), is returned through the signed Papailiou bounds + ``-sigma_0 (1 - exp(-mu sin(beta) psi)) <= sigma <= + sigma_0 expm1(mu sin(beta) psi)`` with ``sigma_0 = rho (P1 + P2) / (t sin^2 beta)`` and ``psi`` the helix angle from the neutral line of the current bending direction ([Papailiou1997]; the per-unit-length friction force of a tape is @@ -213,10 +214,10 @@ def _papailiou_return( ) -> FloatArray: """Direction-tied elastic--Coulomb return map, shape (fibre line, time). - ``drive`` is the stuck bending strain per line and time; the cap of a - line at ``theta`` is ``sigma0 expm1(mu sin(beta) asin|cos(theta - b)|)`` - with ``b`` the current bending direction (held while the bending - vanishes). + ``drive`` is the stuck bending strain per line and time; a line at + ``theta`` stays in ``[-sigma0 (1 - exp(-mu sin(beta) psi)), + sigma0 expm1(mu sin(beta) psi)]``, ``psi = asin|cos(theta - b)|`` with + ``b`` the current bending direction (held while the bending vanishes). """ n_l, n_t = drive.shape out = np.zeros((n_l, n_t)) @@ -225,8 +226,9 @@ def _papailiou_return( for i in range(n_t): psi = np.arcsin(np.clip(np.abs(np.cos(theta - direction[i])), 0.0, 1.0)) cap = sigma0 * np.expm1(mu_sin * psi) + cap_lo = -sigma0 * np.expm1(-mu_sin * psi) trial = force + stiffness * (drive[:, i] - previous) - force = np.clip(trial, -cap, cap) + force = np.minimum(np.maximum(trial, -cap_lo), cap) previous = drive[:, i] out[:, i] = force return out diff --git a/src/cablexsec/analysis/termination.py b/src/cablexsec/analysis/termination.py index 7ad2112..69cfd59 100644 --- a/src/cablexsec/analysis/termination.py +++ b/src/cablexsec/analysis/termination.py @@ -72,7 +72,7 @@ ``solver="along_wire"`` uses :mod:`cablexsec.mechanics.along_wire`: every wire is solved along its own helix with its azimuth-dependent contact shape, -the optional capstan bound (``capstan=True``, the package cap) and the +the optional capstan bound (``capstan=True``, the package's signed bound) and the biaxial imposed strain ``k_hat(x)(kappa_x cos theta + kappa_y sin theta)`` directly (the ``biaxial`` setting is not used; the history is still scaled by one shape). The reference is the same solver far from any anchor, so the @@ -84,7 +84,7 @@ curvature ``kappa(x, t) = kappa_s(t) k_hat(x)`` with ``k_hat(x_s) = 1``, wire modulus and stick stiffness at the layer reference. The clamp solver uses a rigid interface, a constant bound and a linearised cap for the -increment (the sectional part keeps the ``expm1`` cap). The anchorage +increment (the sectional part keeps the signed Papailiou bounds). The anchorage position controls the result near the anchor; a bonded (epoxy) length inside a fitting is not frictional, so the anchor is its inner end. Measured near-termination armour stresses (Sævik 2011; Gjøsteen et al. 2027) are not diff --git a/src/cablexsec/analysis/thermal_coupling.py b/src/cablexsec/analysis/thermal_coupling.py index 3eb4b99..bcce6a0 100644 --- a/src/cablexsec/analysis/thermal_coupling.py +++ b/src/cablexsec/analysis/thermal_coupling.py @@ -24,7 +24,7 @@ whatever friction law the fatigue stresses use. The direction-tied cap of the default fatigue path re-orients with the bending direction, and under rotating curvature it under-counts the dissipation: on a circular orbit its work is -0.16 of the distributed model's at twice the slip onset, 0.38 at eight times, +0.16 of the distributed model's at twice the slip onset, 0.39 at eight times, and tends to 0.57 at large amplitude (:func:`~cablexsec.mechanics.papailiou.wire_slip_history`). Its wire stress ranges agree with the distributed model within 10 %, and in planar bending the @@ -36,8 +36,9 @@ and the temperature-dependent polymer moduli enter the solved radial contact state (:func:`~cablexsec.mechanics.radial_cable.solve_cable_radial_state`, unilateral frictionless contact, residual manufacturing wire stress - identified at ``T_ref``). Its ``P1+P2`` sets the friction cap - ``sigma_0 g expm1(mu |sin a| psi)`` of every wire, and its crossing + identified at ``T_ref``). Its ``P1+P2`` sets the friction bounds + ``-sigma_0 g (1 - exp(-lam psi)) <= sigma <= sigma_0 g expm1(lam psi)``, + ``lam = mu |sin a|``, of every wire, and its crossing reaction the crossed-wire contact load. (b) **Stiffness.** Polymer moduli follow the registered ``E(T)`` laws of the material library (``xlpe_qiao2025``, ``hdpe``: [Qiao2025] Eq. 9 after diff --git a/src/cablexsec/api.py b/src/cablexsec/api.py index 3de0524..a99c6d8 100644 --- a/src/cablexsec/api.py +++ b/src/cablexsec/api.py @@ -179,6 +179,7 @@ BendingWork, PapailiouLayer, PapailiouWireResult, + _station_return, compute_mkappa_wire_slip_front, ) from cablexsec.mechanics.progressive_friction import ProgressiveFriction @@ -186,7 +187,6 @@ CableRadialState, solve_cable_radial_state, ) -from cablexsec.mechanics.return_mapping import coulomb_return_map from cablexsec.mechanics.section_state import SectionState, solve_section_state from cablexsec.mechanics.shell_bending import ( ShellStressResult, @@ -897,13 +897,14 @@ def _papailiou_slip_fraction( ) -> FloatArray: """Fraction of Papailiou helix-angle stations in slip per step (diagnostic). - Re-runs the frozen station elements (:func:`coulomb_return_map` on each - layer's :meth:`station_params`) tracking slip — consistent with the moment - that :func:`compute_mkappa_papailiou` returns. + Re-runs the station spring-sliders (signed capstan interval of each + layer's :meth:`~cablexsec.mechanics.papailiou.PapailiouLayer.station_bounds`) + tracking slip — consistent with the moment that + :func:`compute_mkappa_papailiou` returns. """ if not layers: return np.zeros(np.asarray(kappa).size, dtype=np.float64) - station = [lyr.station_params() for lyr in layers] + station = [lyr.station_bounds() for lyr in layers] forces = [np.zeros_like(s[0]) for s in station] total = sum(len(s[0]) for s in station) or 1 kap = np.asarray(kappa, dtype=np.float64) @@ -913,10 +914,14 @@ def _papailiou_slip_fraction( d_kappa = kap[t] - kappa_prev kappa_prev = kap[t] n_slip = 0 - for i, (k_phi, f_y_phi, _w) in enumerate(station): + for i, (k_phi, upper, lower, _w) in enumerate(station): active = k_phi > 0.0 - f_new, _slip, slipping = coulomb_return_map( - forces[i][active], d_kappa, k_phi[active], f_y_phi[active] + f_new, _slip, slipping = _station_return( + forces[i][active], + d_kappa, + k_phi[active], + upper[active], + lower[active], ) forces[i][active] = f_new n_slip += int(np.count_nonzero(slipping)) diff --git a/src/cablexsec/cables/witz1996.yaml b/src/cablexsec/cables/witz1996.yaml index acf8c9f..64d3092 100644 --- a/src/cablexsec/cables/witz1996.yaml +++ b/src/cablexsec/cables/witz1996.yaml @@ -36,7 +36,7 @@ cable: source_document: "Witz, Marine Structures 9 (1996) 885-904, Table 2; Ramos and Pesce, JOMAE 126 (2004) 141-146, Table 3" initial_state: - external_pressure_Pa: 1037264.0 + external_pressure_Pa: 1071328.0 identification: identified source: "Identified on [Witz1996] Fig. 5 loop width at zero curvature (552.7 N m), mu = 0.10, bounded chain; scripts/run_validation.py WITZ-ID" diff --git a/src/cablexsec/mechanics/along_wire.py b/src/cablexsec/mechanics/along_wire.py index ee0f4a3..3423fea 100644 --- a/src/cablexsec/mechanics/along_wire.py +++ b/src/cablexsec/mechanics/along_wire.py @@ -22,7 +22,7 @@ n = e + du/dphi, dn/dphi = t, t = k_hat (u - p), |t| <= b, e(x, t) = (kappa_x(x, t) cos theta(x) + kappa_y(x, t) sin theta(x)) / kappa_c, - b = rho(t) g(theta) + lam |n|, dp/dt != 0 only where |t| = b, + b = rho(t) g(theta) + lam n, dp/dt != 0 only where |t| = b, ``n`` the wire force above the pre-tension share in units of ``g_0`` (stress ``sigma = sigma_u n``), ``u`` the axial displacement of the wire @@ -83,7 +83,11 @@ Bernoulli kinematics of the core (``e`` from the local curvature only). :data:`RIGID_K_HAT` stands for the rigid interface (Lutchansky length ``1e-2`` rad, far-field stick factor ``0.9999``). The capstan term uses -``|n|`` like the package cap (a compressive wire is not unloaded). The +the signed force ``n``, like the package bounds of +:func:`cablexsec.mechanics.papailiou.wire_slip_stress_bounds`: a wire whose +force falls below its pre-tension share also loses normal load +([Papailiou1997] Eq. 11 with the signed helix angle), and ``b`` is floored at +zero. The increment must be small where slip directions reverse (near anchors under proportional loading): ``max_increment`` bounds it. """ @@ -492,11 +496,15 @@ def _solve_fixed_bound( def _bounds( nseg: FloatArray, gb: FloatArray, lam: float, m: int, out: FloatArray ) -> None: - """Node bounds ``gb + lam (|n_left| + |n_right|) / 2`` (ghost forces zero).""" + """Node bounds ``max(gb + lam (n_left + n_right) / 2, 0)`` (ghost forces zero). + + Signed capstan: a falling wire force lowers its own normal load. + """ for i in range(m + 1): - left = abs(nseg[i - 1]) if i > 0 else 0.0 - right = abs(nseg[i]) if i < m else 0.0 - out[i] = gb[i] + lam * 0.5 * (left + right) + left = nseg[i - 1] if i > 0 else 0.0 + right = nseg[i] if i < m else 0.0 + value = gb[i] + lam * 0.5 * (left + right) + out[i] = value if value > 0.0 else 0.0 @njit(cache=True) diff --git a/src/cablexsec/mechanics/core_friction.py b/src/cablexsec/mechanics/core_friction.py index 2c127e9..c3f32f3 100644 --- a/src/cablexsec/mechanics/core_friction.py +++ b/src/cablexsec/mechanics/core_friction.py @@ -31,12 +31,14 @@ on one core. The Papailiou friction-setting stress of a core is then ``sigma_0 A_core = q_core cos(beta) r_c / sin^2 beta`` (``q_core cos(beta)`` is the line load per core length, as ``q_wire`` of -:class:`~cablexsec.mechanics.papailiou.PapailiouLayer`) and the slip cap -``sigma_0 expm1(mu_eff |sin beta| psi)`` is that of a wire whose two faces -carry ``q_core`` (friction accumulates from the neutral-axis crossing over the -core length ``r_c psi / sin beta``). The effective friction coefficient is the -load-weighted mean ``mu_eff = sum(mu_i q_i) / sum(q_i)`` of the core--core, -core--filler and core--sheath contacts. +:class:`~cablexsec.mechanics.papailiou.PapailiouLayer`) and the slip bounds +``sigma_0 expm1(mu_eff |sin beta| psi)`` (rising stress) and +``sigma_0 (1 - exp(-mu_eff |sin beta| psi))`` (falling stress) are those of a +wire whose two faces carry ``q_core`` (friction accumulates from the +neutral-axis crossing over the core length ``r_c psi / sin beta``). The +effective friction coefficient is the load-weighted mean +``mu_eff = sum(mu_i q_i) / sum(q_i)`` of the core--core, core--filler and +core--sheath contacts. With full stick the stations give ``xi sum_l 0.5 EA_l r_c^2 cos^3 beta``, the core parallel-axis term of diff --git a/src/cablexsec/mechanics/distributed_friction.py b/src/cablexsec/mechanics/distributed_friction.py index 8c22f37..bac4a1d 100644 --- a/src/cablexsec/mechanics/distributed_friction.py +++ b/src/cablexsec/mechanics/distributed_friction.py @@ -14,7 +14,7 @@ one pitch, axial slip only):: n = e + du/dphi, dn/dphi = t, t = k_hat (u - p), |t| <= b, - b = rho(t) g(phi) + lam |n|, dp/dt != 0 only where |t| = b, + b = rho(t) g(phi) + lam n, dp/dt != 0 only where |t| = b, with ``e = a_x cos(phi) + a_y sin(phi)``, ``a = kappa / kappa_c``, ``kappa_c = xi * kappa_on`` the rigid-stick onset curvature, @@ -22,12 +22,22 @@ package (``k_f = xi E cos^2 a``), ``k_hat = xi / (1 - xi)`` (Yun ``xi``; below slip the periodic solution is ``n = a xi cos(phi)``, i.e. the ``xi``-reduced stick stiffness of the package), ``lam = mu |sin a|`` (capstan -bound; ``lam -> 0`` is the constant bound), ``rho = P(t) / P_ref`` the -clamping-pressure ratio and ``g(phi)`` the optional azimuthal contact shape -(periodic linear interpolation of ``shape_g``). The wire stress is +bound on the signed force: a rising force raises its normal load, a falling +one lowers it, as in [Papailiou1997] Eqs. 9-14 with the signed helix angle; +``b`` is floored at zero; ``lam -> 0`` is the constant bound), +``rho = P(t) / P_ref`` the clamping-pressure ratio and ``g(phi)`` the +optional azimuthal contact shape (periodic linear interpolation of +``shape_g``). The wire stress is ``sigma = (g_0 / A) n`` with ``g_0 / A = sigma_0(P_ref) mu |sin a|``, the slope of the linearised Papailiou cap. In planar monotonic loading to full slip -the field is the package cap ``sigma_0 expm1(mu |sin a| psi)``. +``dn/dphi = +-(g + lam n)`` between the extreme fibres and the zero pitch mean +of ``n`` (periodic ``u``) give, for ``g = 1``, +``sigma = sigma_0 (C exp(lam x) - 1)``, ``C = lam pi / (2 sinh(lam pi / 2))``, +``x`` the azimuth from the geometric neutral axis toward the tension side: the +neutral axis moves toward the tension side and the extreme-fibre range is +``2 sigma_0 sinh(lam pi / 2) C = sigma_0 lam pi``, the linear Coulomb value. +The pointwise model holds each wire to its own interval instead (zero at the +geometric neutral axis); in full slip the two differ by ``O(lam^2)``. Discretisation: ``N`` nodes per pitch, ``h = 2 pi / N``; segment ``j`` sits at the section azimuth ``j h`` and carries ``n_j``; node ``j`` (between @@ -235,7 +245,7 @@ def _solve_capstan_newton( """Coupled semismooth Newton for the capstan bound ``b = b(n(v))``. Solves ``n_j - n_{j-1} = h clip(k_hat (z0_j + v_j), -b_j, b_j)`` with - ``b_j = rho g_j + lam (|n_j| + |n_{j-1}|) / 2`` directly (the same + ``b_j = rho g_j + lam (n_j + n_{j-1}) / 2`` directly (the same equations as the fixed point on ``b``), using the tridiagonal generalised Jacobian. Returns iterations, or -1 (caller falls back to the fixed point). """ @@ -252,7 +262,9 @@ def _solve_capstan_newton( gap = math.inf for j in range(n): jm = j - 1 if j > 0 else n - 1 - b[j] = rho * gnode[j] + lam * 0.5 * (abs(nn[j]) + abs(nn[jm])) + b[j] = rho * gnode[j] + lam * 0.5 * (nn[j] + nn[jm]) + if b[j] < 0.0: + b[j] = 0.0 excess = abs(khat * (z0[j] + v[j])) - b[j] if excess < gap: gap = excess @@ -268,8 +280,9 @@ def _solve_capstan_newton( else: state = 1.0 if r > 0.0 else -1.0 t = state * b[j] - sm = 1.0 if nn[jm] > 0.0 else (-1.0 if nn[jm] < 0.0 else 0.0) - sj = 1.0 if nn[j] > 0.0 else (-1.0 if nn[j] < 0.0 else 0.0) + # Signed capstan: db/dn = lam / 2 on both segments (zero if floored). + sm = 1.0 if b[j] > 0.0 else 0.0 + sj = sm # The equations are linear for a fixed stick/slip state and sign # pattern of n; a repeated pattern makes the last step exact. key = state + 4.0 * sj @@ -611,7 +624,9 @@ def _advance( for it in range(0 if converged else _MAX_FIXED_POINT): for j in range(n): jm = j - 1 if j > 0 else n - 1 - b[j] = rho * gnode[j] + lam * 0.5 * (abs(ncur[j]) + abs(ncur[jm])) + b[j] = rho * gnode[j] + lam * 0.5 * (ncur[j] + ncur[jm]) + if b[j] < 0.0: + b[j] = 0.0 iters = _solve_fixed_bound( y, z0, b, khat, h, tol, v, vn, vt, dv, d, rhs, cp, wy, wz ) @@ -645,7 +660,9 @@ def _advance( rem = 0.0 for j in range(n): jm = j - 1 if j > 0 else n - 1 - bj = rho * gnode[j] + lam * 0.5 * (abs(ncur[j]) + abs(ncur[jm])) + bj = rho * gnode[j] + lam * 0.5 * (ncur[j] + ncur[jm]) + if bj < 0.0: + bj = 0.0 t = khat * (z0[j] + v[j]) if t > bj: t = bj @@ -796,7 +813,9 @@ def _distributed_kernel( for j in range(n): jm = j - 1 if j > 0 else n - 1 stored += 0.5 * h * (nf[j] * nf[j] + tau[j] * tau[j] / khat) - bj = rho1 * gnode[j] + lam * 0.5 * (abs(nf[j]) + abs(nf[jm])) + bj = rho1 * gnode[j] + lam * 0.5 * (nf[j] + nf[jm]) + if bj < 0.0: + bj = 0.0 if bj > 0.0 and abs(tau[j]) >= bj * (1.0 - 1e-9): n_slip += 1 hist[i, 0] = energy[0] diff --git a/src/cablexsec/mechanics/fast_slip.py b/src/cablexsec/mechanics/fast_slip.py index 66591b6..68ed47e 100644 --- a/src/cablexsec/mechanics/fast_slip.py +++ b/src/cablexsec/mechanics/fast_slip.py @@ -4,10 +4,10 @@ Reproduces the force recursion of :func:`cablexsec.mechanics.papailiou.wire_slip_history` (``stress_Pa`` only) -for a constant stick stiffness: the Papailiou slip-front cap at the current +for a constant stick stiffness: the signed Papailiou bounds at the current bending direction and clamping, the scalar elastic--Coulomb return map at every wire, and the held/blended bending direction below -``f * kappa_on`` (see :func:`~cablexsec.mechanics.papailiou.wire_slip_history`). +``f m(lam) kappa_on`` (see :func:`~cablexsec.mechanics.papailiou.wire_slip_history`). Work terms are not formed here; callers needing the moment or the energy balance use the reference routine. Regression tests compare the two. @@ -47,7 +47,9 @@ def _cap( mu: float, g: FloatArray, ) -> FloatArray: - out = np.zeros(phi.size) + # Row 0: tension bound sigma0 g expm1(lam psi); row 1: compression bound + # sigma0 g (1 - exp(-lam psi)) (capstan on the wire's own force). + out = np.zeros((2, phi.size)) if pressure <= 0.0: return out sin_a = abs(math.sin(lay_angle)) @@ -60,7 +62,8 @@ def _cap( if c > 1.0: c = 1.0 psi = math.asin(c) - out[w] = sigma0 * g[w] * math.expm1(mu * sin_a * psi) + out[0, w] = sigma0 * g[w] * math.expm1(mu * sin_a * psi) + out[1, w] = -sigma0 * g[w] * math.expm1(-mu * sin_a * psi) return out @@ -90,11 +93,11 @@ def _stress_kernel( current = angle0 held_angle = math.nan held_pressure = math.nan - held_cap = np.zeros(n_w) + held_cap = np.zeros((2, n_w)) cur_angle = math.nan cur_pressure = math.nan - cur_cap = np.zeros(n_w) - cap = np.zeros(n_w) + cur_cap = np.zeros((2, n_w)) + cap = np.zeros((2, n_w)) for i in range(n_t): x = kx[i] y = ky[i] @@ -117,17 +120,21 @@ def _stress_kernel( cur_cap = _cap(phi, current, p, r_helix, n_w, area, lay_angle, mu, g) cur_angle = current cur_pressure = p - for w in range(n_w): - cap[w] = (1.0 - blend) * held_cap[w] + blend * cur_cap[w] + for s in range(2): + for w in range(n_w): + cap[s, w] = (1.0 - blend) * held_cap[s, w] + blend * cur_cap[s, w] else: - for w in range(n_w): - cap[w] = held_cap[w] + for s in range(2): + for w in range(n_w): + cap[s, w] = held_cap[s, w] for w in range(n_w): drive = dm0[w] * x + dm1[w] * y inc = drive - old_drive[w] trial = force[w] + k * inc - if abs(trial) > cap[w]: - force[w] = math.copysign(cap[w], trial) + if trial > cap[0, w]: + force[w] = cap[0, w] + elif trial < -cap[1, w]: + force[w] = -cap[1, w] else: force[w] = trial old_drive[w] = drive diff --git a/src/cablexsec/mechanics/papailiou.py b/src/cablexsec/mechanics/papailiou.py index 3fe18f1..1b0a3ab 100644 --- a/src/cablexsec/mechanics/papailiou.py +++ b/src/cablexsec/mechanics/papailiou.py @@ -14,10 +14,29 @@ * stick (parallel-axis) stiffness, Eq. 20: ``EJ_stick(phi) = E A (r sin phi)^2 cos^3(beta)`` -* slip (frozen friction) stress, Eq. 14: - ``sigma_slip(phi) = sigma_0 (exp(mu sin(beta) |phi|) - 1)`` +* slip (frozen friction) stress, Eq. 14, signed helix angle: + ``sigma_slip(phi) = sigma_0 (exp(mu sin(beta) phi) - 1)`` * critical curvature, Eq. 15: - ``kappa_c(phi) = sigma_0 (exp(mu sin(beta)|phi|) - 1) / (E r sin|phi| cos^2 beta)`` + ``kappa_c(phi) = sigma_0 (exp(mu sin(beta) phi) - 1) / (E r sin(phi) cos^2 beta)`` + +Eq. 11 integrates the capstan equation ``dZ = mu Z sin(beta) dphi`` (Eq. 9) +from the neutral axis with the wire's own force ``Z`` and the signed helix +angle: on the tension side (``phi > 0``) the force can grow to +``Z_T exp(lam phi)``, on the compression side it can fall only to +``Z_T exp(-lam |phi|)``, because a falling wire force also lowers the normal +load it puts on the support (Papailiou: the slip stress increases or decreases +``sigma_T`` "depending on the sign of the wire helix angle"). With a distance +``psi`` from the neutral axis the admissible friction stress of a wire is +therefore the asymmetric interval + + -sigma_0 (1 - exp(-lam psi)) <= sigma <= sigma_0 (exp(lam psi) - 1), + +``lam = mu |sin(beta)|`` (:func:`wire_slip_stress_bounds`). The bounds belong +to the wire, not to its side of the neutral axis: a rising stress is bounded +by the upper value and a falling one by the lower value, wherever the wire +lies. The full reversal range is ``2 sigma_0 sinh(lam psi)``, odd in ``lam``, +so the capstan term changes it only at ``O(lam^3)`` relative to the linear +Coulomb range ``2 sigma_0 lam psi``. ``sigma_0`` is the friction-setting stress. The friction-continuity balance uses normal line load ``q_wire`` per unit *wire-axis* length, not pressure: @@ -47,17 +66,20 @@ Implementation -------------- -Each helix-angle station uses the same verified Coulomb return-mapping element -(:func:`coulomb_return_map`), unchanged, with per-station stiffness -``k_phi = EJ_stick(phi)`` and yield ``f_y_phi = sigma_slip(phi) A r |sin phi| -cos(beta)``; it therefore slips exactly at ``kappa_c(phi)``. The slip front is -encoded entirely in the ``(k_phi, f_y_phi)`` distribution. Stations are -integrated over ``phi`` with density ``n_w / pi`` so the full-stick limit -recovers the Witz-Tan bound ``1/2 n_w E A r^2 cos^3(beta)`` (gate A8b). +Each helix-angle station is an elastic--Coulomb spring-slider with +per-station stiffness ``k_phi = EJ_stick(phi)`` and the asymmetric yield +interval of its wire (:meth:`PapailiouLayer.station_bounds`): the station +force is the moment share ``sigma A r sin(phi) cos(beta)``, so the tension +bound ``sigma_0 expm1(lam |phi|) A r |sin phi| cos(beta)`` limits a positive +force for ``phi > 0`` and a negative one for ``phi < 0``. A station +therefore slips exactly at ``kappa_c(phi)``. The slip front is encoded +entirely in the distribution of stiffness and bounds. Stations are integrated +over ``phi`` with density ``n_w / pi`` so the full-stick limit recovers the +Witz-Tan bound ``1/2 n_w E A r^2 cos^3(beta)`` (gate A8b). References ---------- -[Papailiou1997] Eqs. (14), (15), (19)-(23). +[Papailiou1997] Eqs. (9)-(15), (19)-(23). """ from __future__ import annotations @@ -71,11 +93,7 @@ from cablexsec.exceptions import CableInputError from cablexsec.mechanics.mkappa import HelicalLayerSpec -from cablexsec.mechanics.return_mapping import ( - CoulombElement, - _scalar_return_map, - coulomb_return_map, -) +from cablexsec.mechanics.return_mapping import CoulombElement if TYPE_CHECKING: from cablexsec.mechanics.progressive_friction import ProgressiveFriction @@ -90,6 +108,7 @@ "direction_threshold_curvature", "full_slip_curvature", "slip_onset_curvature", + "wire_slip_stress_bounds", "wire_slip_stress_cap", "wire_slip_history", ] @@ -213,6 +232,25 @@ def station_params(self) -> tuple[FloatArray, FloatArray, float]: weight = (self.n_wires / math.pi) * d_phi return np.asarray(k_phi), np.asarray(f_y_phi), weight + def station_bounds(self) -> tuple[FloatArray, FloatArray, FloatArray, float]: + """Return ``(k_phi, upper, lower, weight)``: ``-lower <= f <= upper``. + + ``f_y_phi`` of :meth:`station_params` is the tension bound of the + station's wire in moment units; the compression bound is + ``f_y_phi exp(-lam |phi|)`` (``sigma_0 (1 - exp(-lam |phi|))``). The + station force is the moment share ``sigma A r sin(phi) cos(beta)``: + for ``phi > 0`` a positive force is a tensile wire stress, for + ``phi < 0`` a compressive one, so the two bounds swap there. + """ + k_phi, f_y_phi, weight = self.station_params() + edges = np.linspace(-math.pi / 2, math.pi / 2, self.n_stations + 1) + phi = 0.5 * (edges[:-1] + edges[1:]) + lam = self.mu * abs(math.sin(self.lay_angle_rad)) + reduced = f_y_phi * np.exp(-lam * np.abs(phi)) + upper = np.where(phi > 0.0, f_y_phi, reduced) + lower = np.where(phi > 0.0, reduced, f_y_phi) + return k_phi, np.asarray(upper), np.asarray(lower), weight + @property def EI_stick(self) -> float: """Full-stick parallel-axis stiffness ``1/2 n E A r^2 cos^3(beta)``.""" @@ -311,6 +349,49 @@ def wire_slip_stress_cap( return np.asarray(sigma0 * g * np.expm1(layer.mu * sin_a * psi)) +def wire_slip_stress_bounds( + layer: HelicalLayerSpec, + phi_bend: float, + *, + contact_pressure_Pa: float | None = None, +) -> tuple[FloatArray, FloatArray]: + r"""Tension and compression friction-stress bounds of every wire [Pa]. + + Returns ``(upper, lower)`` magnitudes with ``-lower <= sigma <= upper``: + ``upper = sigma0 g expm1(lam psi)`` (:func:`wire_slip_stress_cap`) and + ``lower = -sigma0 g expm1(-lam psi) = upper exp(-lam psi)``. The capstan + growth acts on the wire's own force, so a wire whose force falls also + loses normal load ([Papailiou1997] Eqs. 9-14 with signed ``phi``). + """ + pressure = ( + layer.contact_pressure_Pa + if contact_pressure_Pa is None + else contact_pressure_Pa + ) + sin_a = abs(math.sin(layer.lay_angle_rad)) + if pressure <= 0.0 or sin_a < 1.0e-12: + zero = np.zeros(layer.n_wires, dtype=np.float64) + return zero, zero.copy() + width = 2.0 * math.pi * layer.r_helix_m / layer.n_wires + sigma0 = ( + layer.r_helix_m + * pressure + * width + * math.cos(layer.lay_angle_rad) + / (layer.A_wire_m2 * sin_a**2) + ) + g = ( + np.ones(layer.n_wires, dtype=np.float64) + if layer.shape_g is None + else np.asarray(layer.shape_g, dtype=np.float64) + ) + cphi = np.cos(layer.phi_wires - phi_bend) + psi = np.arcsin(np.clip(np.abs(cphi), 0.0, 1.0)) + upper = sigma0 * g * np.expm1(layer.mu * sin_a * psi) + lower = -sigma0 * g * np.expm1(-layer.mu * sin_a * psi) + return np.asarray(upper), np.asarray(lower) + + def slip_onset_curvature( layer: HelicalLayerSpec, *, @@ -335,8 +416,13 @@ def slip_onset_curvature( with ``k = xi E cos^2 a`` the stick stiffness. For ``xi = 1`` this is the module-level small-angle onset ``mu q_wire / (E A cos^2 a sin a)``. It is a - lower bound for a finite wire population. Zero clamping, zero friction or - a vanishing shape factor gives zero. + lower bound for a finite wire population on the tension side. On the + compression side the bound ``sigma0 g (1 - exp(-lam psi))`` gives the onset + ``kappa_on (1 - exp(-lam psi)) / (lam sin psi)``, whose minimum + ``kappa_on m(lam)``, ``m = 1 - 3 lam^2 / 8 + O(lam^3)``, lies at + ``psi ~ 3 lam / 2`` (:func:`_compression_onset_factor`); the value returned + here stays the neutral-axis unit used to normalise curvature. Zero + clamping, zero friction or a vanishing shape factor gives zero. """ pressure = ( layer.contact_pressure_Pa @@ -351,6 +437,32 @@ def slip_onset_curvature( return _onset_coefficient(layer, max(g_min, 0.0)) * pressure / stiffness +def _compression_onset_factor(lam: float) -> float: + """``min_psi (1 - exp(-lam psi)) / (lam sin psi)`` over ``(0, pi/2]``. + + Ratio of the compression-side first-slip curvature to the neutral-axis + onset; 1 for ``lam -> 0``. + """ + if lam <= 0.0: + return 1.0 + + def ratio(p: float) -> float: + return -math.expm1(-lam * p) / (lam * math.sin(p)) + + psi = np.linspace(1.0e-6, math.pi / 2, 4001) + values = -np.expm1(-lam * psi) / (lam * np.sin(psi)) + i = int(np.argmin(values)) + lo, hi = psi[max(i - 1, 0)], psi[min(i + 1, psi.size - 1)] + for _ in range(80): # golden-section refinement of the bracketed minimum + a = hi - 0.6180339887498949 * (hi - lo) + b = lo + 0.6180339887498949 * (hi - lo) + if ratio(a) < ratio(b): + hi = b + else: + lo = a + return float(min(1.0, values[i], ratio(0.5 * (lo + hi)))) + + def _onset_coefficient(layer: HelicalLayerSpec, g_min: float) -> float: """``kappa_on * k / P``; shared by the reference and compiled updates.""" sin_a = abs(math.sin(layer.lay_angle_rad)) @@ -376,8 +488,9 @@ def full_slip_curvature( r"""Curvature at which the last wire of the layer starts to slip [1/m]. Under planar bending of increasing magnitude from a stress-free state, - wire ``k`` sticks until its stick stress ``k_f r kappa c_k`` reaches its - cap from :func:`wire_slip_stress_cap`, with + wire ``k`` sticks until its stick stress ``k_f r kappa c_k`` reaches the + bound on its side from :func:`wire_slip_stress_bounds` (upper on the + tension side, lower on the compression side), with ``c_k = |cos(phi_k - phi_bend)|``. It slips from .. math:: @@ -387,7 +500,7 @@ def full_slip_curvature( and every wire is slipping from ``max_k kappa_k``, which this function returns. Wires on the neutral axis (``c_k = 0``) carry no stick stress and are left out. For a uniform contact (``g = 1``) the largest value is - the extreme-fibre wire (``c = 1``), + the tension-side extreme-fibre wire (``c = 1``), ``sigma0 expm1(mu |sin a| pi/2) / (k_f r)``, when a wire lies on that fibre (``phi_bend`` on a wire azimuth). The ratio to :func:`slip_onset_curvature` is ``expm1(mu |sin a| pi/2) / (mu |sin a|)``, @@ -399,8 +512,12 @@ def full_slip_curvature( raise CableInputError("bending direction must be finite") if stiffness <= 0.0: return 0.0 - cap = wire_slip_stress_cap(layer, phi_bend, contact_pressure_Pa=contact_pressure_Pa) - c = np.abs(np.cos(layer.phi_wires - phi_bend)) + upper, lower = wire_slip_stress_bounds( + layer, phi_bend, contact_pressure_Pa=contact_pressure_Pa + ) + cosine = np.cos(layer.phi_wires - phi_bend) + cap = np.where(cosine >= 0.0, upper, lower) + c = np.abs(cosine) loaded = c > 1.0e-12 if not np.any(loaded) or not np.any(cap > 0.0): return 0.0 @@ -415,25 +532,40 @@ def direction_threshold_curvature( contact_pressure_Pa: float | None = None, stick_modulus_Pa: float | None = None, ) -> float: - """Curvature ``f * kappa_on`` below which the bending direction is held.""" + """Curvature ``f m(lam) kappa_on`` below which the bending direction is held. + + ``m(lam)`` (:func:`_compression_onset_factor`) is the compression-side + first-slip factor, so that every wire, on either side, is in stick below + the threshold. + """ hold_fraction = float(hold_fraction) if not math.isfinite(hold_fraction) or not 0.0 <= hold_fraction <= 1.0: raise CableInputError("direction hold fraction must lie in [0, 1]") - return hold_fraction * slip_onset_curvature( - layer, - contact_pressure_Pa=contact_pressure_Pa, - stick_modulus_Pa=stick_modulus_Pa, + lam = layer.mu * abs(math.sin(layer.lay_angle_rad)) + return ( + hold_fraction + * _compression_onset_factor(lam) + * slip_onset_curvature( + layer, + contact_pressure_Pa=contact_pressure_Pa, + stick_modulus_Pa=stick_modulus_Pa, + ) ) def _threshold_coefficient(layer: HelicalLayerSpec, hold_fraction: float) -> float: - """``f * kappa_on * k / P``: the per-sample threshold is this times ``P/k``.""" + """``f m kappa_on k / P``: the per-sample threshold is this times ``P/k``.""" if not math.isfinite(hold_fraction) or not 0.0 <= hold_fraction <= 1.0: raise CableInputError("direction hold fraction must lie in [0, 1]") if hold_fraction == 0.0: return 0.0 g_min = 1.0 if layer.shape_g is None else float(np.min(layer.shape_g)) - return hold_fraction * _onset_coefficient(layer, max(g_min, 0.0)) + lam = layer.mu * abs(math.sin(layer.lay_angle_rad)) + return ( + hold_fraction + * _compression_onset_factor(lam) + * _onset_coefficient(layer, max(g_min, 0.0)) + ) def compute_mkappa_wire_slip_front( @@ -518,8 +650,8 @@ class WireSlipHistory: drive is a reduced axial-strain variable, not a crossing slip in metres. Material work accounts for a prescribed change of elastic/shear stiffness at fixed strain and plastic state; it is not frictional dissipation. - ``cap_Pa`` is the friction cap each wire was held to at each sample, shape - (wires, samples), kept only on request (``keep_cap=True``). + ``cap_Pa`` is the friction bound on the side of each wire's stress at each + sample, shape (wires, samples), kept only on request (``keep_cap=True``). """ stress_Pa: FloatArray @@ -544,31 +676,35 @@ def wire_slip_history( ) -> WireSlipHistory: """Shared small-strain, mean-clamping update for bending and bulk fatigue. - No spatial contact solve is introduced. The existing Papailiou cap and - scalar spring-slider describe each physical wire. Their virtual work - yields both bending-moment components. + No spatial contact solve is introduced. The Papailiou bounds of + :func:`wire_slip_stress_bounds` and a scalar spring-slider describe each + physical wire: its friction stress stays in ``[-lower, upper]``. Their + virtual work yields both bending-moment components. Bending direction of the slip cap. Near zero curvature the direction ``atan2(kappa_y, kappa_x)`` is not a physical quantity; re-orienting the cap there clipped the locked friction stress to the cap of an arbitrary neutral axis, so that results jumped under perturbations of 1e-12 1/m. The held direction ``phi_h`` is therefore updated only when - ``|kappa| >= kappa_th = f * kappa_on(P_i, k_i)`` - (``f = direction_hold_fraction``, :func:`slip_onset_curvature`). Below - ``kappa_th`` the cap is ``(1 - w) cap(phi_h) + w cap(phi)`` with - ``w = |kappa|/kappa_th`` and ``phi`` the current direction. The cap is then - continuous in the curvature, equal to ``cap(phi_h)`` at zero, and - ``w cap(phi) >= k r |kappa| |cos(phi_k - phi)| / f`` guarantees that a - sub-threshold path from a stress-free state stays in stick for any - ``0 <= f <= 1``, exactly as before (a plain hold would make wires on the - held neutral axis slip under rotating sub-threshold curvature). Histories + ``|kappa| >= kappa_th = f m(lam) kappa_on(P_i, k_i)`` + (``f = direction_hold_fraction``, :func:`slip_onset_curvature`, + :func:`direction_threshold_curvature`). Below ``kappa_th`` each bound is + ``(1 - w) bound(phi_h) + w bound(phi)`` with ``w = |kappa|/kappa_th`` and + ``phi`` the current direction. The bounds are then continuous in the + curvature, equal to ``bound(phi_h)`` at zero, and, because the smaller + (compression) bound of a wire is at least ``m kappa_on k r |cos(phi_k - + phi)|``, ``w bound(phi) >= k r |kappa| |cos(phi_k - phi)| / f`` + guarantees that a sub-threshold path from a stress-free state stays in + stick for any ``0 <= f <= 1`` (a plain hold would make wires on the held + neutral axis slip under rotating sub-threshold curvature). Histories whose nonzero samples all satisfy ``|kappa| >= kappa_th`` are reproduced bitwise, and ``f = 0`` reproduces the earlier update exactly. Changing clamping still updates the return map at held curvature. - ``keep_cap=True`` also returns the cap of every wire at every sample - (``cap_Pa``); a wire whose stress is below its cap is in stick. The - other results are unchanged. + ``keep_cap=True`` also returns, for every wire and sample, the bound on + the side of its current stress (``cap_Pa``: ``upper`` for a nonnegative + stress, ``lower`` for a negative one); a wire whose stress magnitude is + below it is in stick. The other results are unchanged. Friction work under rotating curvature. ``work.friction_J_per_m`` is the dissipation of this population. In planar bending it agrees with the @@ -580,21 +716,22 @@ def wire_slip_history( a wire passes the extreme fibre, where its cap is largest, while its drive is stationary, and it slips mostly near the neutral axis, where its cap is close to zero. For a circular orbit of radius ``R`` much larger - than the slip onset, with the linearised cap - ``sigma_0 lam asin|cos(phi - phi_bend)|`` (``lam = mu |sin a|``), a wire - dissipates ``4 (pi/2 - 1) sigma_0 lam r R`` per revolution (times - ``A cos a``), against an average of ``16 sigma_0 lam r R / pi`` for the - two planar cycles of amplitude ``R`` about the two axes: ratio - ``pi (pi/2 - 1) / 4 = 0.448``. In the distributed model every helix node - slips through the full ``4 R`` per revolution at its own traction bound, - and the ratio is ``pi / 4``. The - direction-tied work is thus 0.57 of the distributed work at large - amplitude, and less closer to slip onset (0.16 at twice the onset and 0.38 - at eight times on the 66 kV template). The per-wire stress ranges, which - fatigue uses, agree with the distributed model within 10 % on the same - orbits: the cap bounds the stress amplitude much as the distributed bound - does, but narrows the stress-drive loop of each wire. Frictional heat - uses the distributed dissipation + than the slip onset a wire sits at the bound of the sign of its drive + rate and dissipates ``4 sigma_0 r R (sinh x0 - lam) / (1 + lam^2)`` per + revolution (times ``A cos a``; ``x0 = lam pi / 2``, ``lam = mu |sin a|``), + against a wire mean of ``(16 / pi) sigma_0 r R lam cosh x0 / (1 + lam^2)`` + for the two planar cycles of amplitude ``R`` about the two axes: ratio + ``pi (sinh x0 - lam) / (4 lam cosh x0) = pi (pi/2 - 1) / 4 + O(lam^2)``, + 0.448. In the distributed model every helix node slips through the full + ``4 R`` per revolution at its own traction bound; its rotating full-slip + field is the planar one turned to the slip-reversal axes, and the ratio is + ``pi / 4`` for any ``lam``. The direction-tied work is thus 0.57 of the + distributed work at large amplitude, and less closer to slip onset (0.16 + at twice the onset and 0.39 at eight times on the 66 kV template). The + per-wire stress ranges, which fatigue uses, agree with the distributed + model within 10 % on the same orbits: the cap bounds the stress amplitude + much as the distributed bound does, but narrows the stress-drive loop of + each wire. Frictional heat uses the distributed dissipation (:func:`~cablexsec.analysis.thermal_coupling.record_friction_work`). """ kx, ky = np.asarray(kappa_x, dtype=float), np.asarray(kappa_y, dtype=float) @@ -648,23 +785,29 @@ def wire_slip_history( ) # friction, endpoint work, integration remainder, material work old_drive = np.zeros(layer.n_wires) held = current = initial_bending_angle - caches: dict[str, tuple[tuple[float, float] | None, FloatArray]] = { - "held": (None, np.zeros(layer.n_wires)), - "current": (None, np.zeros(layer.n_wires)), + zero = np.zeros(layer.n_wires) + caches: dict[ + str, tuple[tuple[float, float] | None, tuple[FloatArray, FloatArray]] + ] = { + "held": (None, (zero, zero)), + "current": (None, (zero, zero)), } - def oriented_cap(slot: str, angle: float, load: float) -> FloatArray: + def oriented_cap( + slot: str, angle: float, load: float + ) -> tuple[FloatArray, FloatArray]: key, value = caches[slot] if key != (angle, load): - value = wire_slip_stress_cap(layer, angle, contact_pressure_Pa=load) - if ( - value.shape != (layer.n_wires,) - or not np.isfinite(value).all() - or np.any(value < 0) - ): - raise CableInputError( - "wire caps must be finite, nonnegative and match the population" - ) + value = wire_slip_stress_bounds(layer, angle, contact_pressure_Pa=load) + for part in value: + if ( + part.shape != (layer.n_wires,) + or not np.isfinite(part).all() + or np.any(part < 0) + ): + raise CableInputError( + "wire caps must be finite, nonnegative and match the population" + ) caches[slot] = ((angle, load), value) return value @@ -692,23 +835,25 @@ def oriented_cap(slot: str, angle: float, load: float) -> FloatArray: magnitude = math.sqrt(x * x + y * y) if magnitude >= threshold: held = current - cap = oriented_cap("held", held, load) + cap, cap_lo = oriented_cap("held", held, load) else: # Ill-defined direction: blend the cap of the last # well-defined axis with that of the current direction. blend = magnitude / threshold - cap = oriented_cap("held", held, load) + cap, cap_lo = oriented_cap("held", held, load) if blend > 0.0: - cap = (1.0 - blend) * cap + blend * oriented_cap( - "current", current, load - ) + cur_hi, cur_lo = oriented_cap("current", current, load) + cap = (1.0 - blend) * cap + blend * cur_hi + cap_lo = (1.0 - blend) * cap_lo + blend * cur_lo drive = drive_map @ np.array([x, y]) increment = drive - old_drive if not np.isfinite(increment).all(): raise CableInputError("derived wire increment must be finite") - force, slip, slipping = _scalar_return_map( - element.f, increment, element.k, cap + force, slip, slipping = _station_return( + element.f, increment, element.k, cap, cap_lo ) + # Active bound for ``keep_cap`` (the side of the current force). + cap = np.where(force < 0.0, cap_lo, cap) element.f = force element.slip_total = element.slip_total + slip stress[:, index] = force @@ -763,6 +908,21 @@ def oriented_cap(slot: str, angle: float, load: float) -> FloatArray: ) +def _station_return( + previous: FloatArray, + increment: float | FloatArray, + stiffness: float | FloatArray, + upper: FloatArray, + lower: FloatArray, +) -> tuple[FloatArray, FloatArray, NDArray[np.bool_]]: + """Return map of spring-sliders with the yield interval ``[-lower, upper]``.""" + trial = previous + stiffness * increment + force = np.minimum(np.maximum(trial, -lower), upper) + slipping = force != trial + slip = np.where(slipping, increment - (force - previous) / stiffness, 0.0) + return np.asarray(force), np.asarray(slip), np.asarray(slipping) + + def compute_mkappa_papailiou( layers: list[PapailiouLayer], kappa_history: FloatArray, @@ -771,26 +931,28 @@ def compute_mkappa_papailiou( ) -> PapailiouResult: """Integrate the Papailiou slip-front M-κ loop over a curvature history. - Each helix-angle station is advanced with the unchanged Coulomb - return-mapping element; the smooth knee arises from the ``kappa_c(phi)`` - distribution (slip starts at the neutral axis). + Each helix-angle station is advanced as a spring-slider with the signed + capstan interval of :meth:`PapailiouLayer.station_bounds`; the smooth + knee arises from the ``kappa_c(phi)`` distribution (slip starts at the + neutral axis). """ kappa = np.asarray(kappa_history, dtype=np.float64) n_steps = kappa.size moment = np.zeros(n_steps, dtype=np.float64) k_phis: list[FloatArray] = [] - f_y_phis: list[FloatArray] = [] + f_y_phis: list[tuple[FloatArray, FloatArray]] = [] weights: list[float] = [] forces: list[FloatArray] = [] for lyr in layers: - k_phi, f_y_phi, weight = lyr.station_params() + k_phi, upper, lower, weight = lyr.station_bounds() # Odd station counts include the neutral axis. Its zero stiffness, # zero force and zero moment carry no energy; omit it from division. active = k_phi > 0.0 - k_phi, f_y_phi = k_phi[active], f_y_phi[active] + k_phi = k_phi[active] k_phis.append(k_phi) - f_y_phis.append(f_y_phi) + # (upper, lower) magnitudes of the station interval, active stations. + f_y_phis.append((upper[active], lower[active])) weights.append(weight) forces.append(np.zeros_like(k_phi)) @@ -804,8 +966,8 @@ def compute_mkappa_papailiou( stored_i = 0.5 * EI_min_Nm2 * kappa[t] ** 2 cumulative_remainder += 0.5 * EI_min_Nm2 * d_kappa**2 for i in range(len(layers)): - f_new, slip, _slp = coulomb_return_map( - forces[i], d_kappa, k_phis[i], f_y_phis[i] + f_new, slip, _slipping = _station_return( + forces[i], d_kappa, k_phis[i], *f_y_phis[i] ) stored_i += float(np.sum(f_new**2 / (2 * k_phis[i])) * weights[i]) cumulative_dissipation += float(np.sum(f_new * slip) * weights[i]) diff --git a/src/cablexsec/mechanics/progressive_friction.py b/src/cablexsec/mechanics/progressive_friction.py index 4b3f150..5ee2986 100644 --- a/src/cablexsec/mechanics/progressive_friction.py +++ b/src/cablexsec/mechanics/progressive_friction.py @@ -7,16 +7,24 @@ (``friction_model="direction_tied"``, the default). Each wire is split into ``N`` parallel elastic--Coulomb sub-elements (an Iwan 1967 parallel-Jenkins population). Every sub-element has the wire's stick stiffness ``k`` and a -share ``1/N`` of the stress; its cap is a fraction of the package's -Papailiou cap ``sigma_0 g expm1(lam psi)`` of the wire (``lam = mu |sin a|``, -``sin psi = |cos(phi - phi_bend)|``), with the fractions averaging to one, so -that the stick stiffness and the full-slip stress are those of the default -law. The wire stress is the mean of the sub-element forces. The caps follow -the bending direction exactly as the default cap does (held direction and -blend below ``f kappa_on``), so the law applies to biaxial histories and a -rotation of the history rotates the response. Every sub-element dissipates -non-negatively; reversal follows Masing's rule and nested loops close, as for -any parallel-Jenkins population (Iwan 1967, Eqs. 9-15). +share ``1/N`` of the stress; its two bounds are fractions of the package's +Papailiou bounds of the wire, ``sigma_0 g expm1(lam psi)`` for a rising and +``sigma_0 g (1 - exp(-lam psi))`` for a falling stress (``lam = mu |sin a|``, +``sin psi = |cos(phi - phi_bend)|``, +:func:`cablexsec.mechanics.papailiou.wire_slip_stress_bounds`), with the +fractions of each averaging to one, so that the stick stiffness and the +full-slip stresses are those of the default law. The wire stress is the mean +of the sub-element forces. The bounds follow the bending direction exactly as +the default ones do (held direction and blend below ``f m(lam) kappa_on``), so +the law applies to biaxial histories and a rotation of the history rotates +the response. Every sub-element dissipates +non-negatively and nested loops close, as for any parallel-Jenkins +population (Iwan 1967, Eqs. 9-15). Masing's rule holds in its generalised +form: a sub-element that slipped at the bound ``b_1`` of its first excursion +reverses over ``b_1 + b_2``, so the reversal branch is twice the virgin branch +of the population with the mean bounds ``(b_1 + b_2) / 2 = sigma_0 g +sinh(lam psi)`` shares, at half the reversal distance (exactly so while no +sub-element ended its first excursion in stick above its opposite bound). Densities --------- @@ -36,8 +44,9 @@ - \mathrm{expm1}(\lambda \arcsin(q_j S))\right], \quad S = \sin\psi , -whose mean over ``j`` is the package cap exactly. ``N = 1`` is the default -law, bit for bit. +whose mean over ``j`` is the package cap exactly; the compression bounds +use ``-expm1(-lambda ...)`` in place of ``expm1(lambda ...)``. ``N = 1`` is +the default law, bit for bit. ``"uniform"`` (spread ``h`` in ``[0, 1]``): caps ``cap (1 + h (2 (j + 1/2)/N - 1))``, an Iwan density of friction or contact pressure around its mean @@ -173,7 +182,10 @@ def _caps_kernel( density: int, n_el: int, spread: float, + side: float, ) -> FloatArray: + # side = +1: tension bounds sigma0 g expm1(lam psi) shares; side = -1: + # compression bounds sigma0 g (1 - exp(-lam psi)) shares. out = np.zeros((phi.size, n_el)) if pressure <= 0.0: return out @@ -195,11 +207,11 @@ def _caps_kernel( q = (j + 1.0) / n_el if j + 1 == n_el: q = 1.0 - upper = math.expm1(lam * math.asin(q * c)) + upper = side * math.expm1(side * lam * math.asin(q * c)) out[w, j] = base * scale * (upper - lower) lower = upper else: - cap = base * math.expm1(lam * math.asin(c)) + cap = base * side * math.expm1(side * lam * math.asin(c)) for j in range(n_el): out[w, j] = cap * (1.0 + spread * (2.0 * (j + 0.5) / n_el - 1.0)) return out @@ -211,12 +223,16 @@ def progressive_caps( progressive: ProgressiveFriction | None = None, *, contact_pressure_Pa: float | None = None, + side: float = 1.0, ) -> FloatArray: """Sub-element caps [Pa], shape ``(n_wires, n_elements)``. - The mean over sub-elements equals - :func:`cablexsec.mechanics.papailiou.wire_slip_stress_cap` (exactly for - the uniform density; to rounding for the continuity density). + ``side=1`` gives the upper bounds (rising stress), ``side=-1`` the + magnitudes of the lower bounds (falling stress). + + The mean over sub-elements equals the matching bound of + :func:`cablexsec.mechanics.papailiou.wire_slip_stress_bounds` (exactly + for the uniform density; to rounding for the continuity density). """ spec = _resolve(progressive) pressure = ( @@ -243,6 +259,7 @@ def progressive_caps( spec.density_code, spec.n_elements, spec.spread, + float(side), ) ) @@ -336,17 +353,28 @@ def progressive_wire_history( old_drive = np.zeros(n_w) k_now = float(stiffness[0]) held = current = initial_bending_angle - caches: dict[str, tuple[tuple[float, float] | None, FloatArray]] = { - "held": (None, np.zeros((n_w, n_el))), - "current": (None, np.zeros((n_w, n_el))), + zero = np.zeros((n_w, n_el)) + caches: dict[ + str, tuple[tuple[float, float] | None, tuple[FloatArray, FloatArray]] + ] = { + "held": (None, (zero, zero)), + "current": (None, (zero, zero)), } - def oriented(slot: str, angle: float, load: float) -> FloatArray: + def oriented(slot: str, angle: float, load: float) -> tuple[FloatArray, FloatArray]: key, value = caches[slot] if key != (angle, load): - value = progressive_caps(layer, angle, spec, contact_pressure_Pa=load) - if not np.isfinite(value).all() or np.any(value < 0): - raise CableInputError("sub-element caps must be finite and nonnegative") + value = ( + progressive_caps(layer, angle, spec, contact_pressure_Pa=load), + progressive_caps( + layer, angle, spec, contact_pressure_Pa=load, side=-1.0 + ), + ) + for part in value: + if not np.isfinite(part).all() or np.any(part < 0): + raise CableInputError( + "sub-element caps must be finite and nonnegative" + ) caches[slot] = ((angle, load), value) return value @@ -372,21 +400,21 @@ def oriented(slot: str, angle: float, load: float) -> FloatArray: magnitude = math.sqrt(x * x + y * y) if magnitude >= threshold: held = current - cap = oriented("held", held, load) + cap, cap_lo = oriented("held", held, load) else: blend = magnitude / threshold - cap = oriented("held", held, load) + cap, cap_lo = oriented("held", held, load) if blend > 0.0: - cap = (1.0 - blend) * cap + blend * oriented( - "current", current, load - ) + cur_hi, cur_lo = oriented("current", current, load) + cap = (1.0 - blend) * cap + blend * cur_hi + cap_lo = (1.0 - blend) * cap_lo + blend * cur_lo drive = drive_map @ np.array([x, y]) increment = drive - old_drive if not np.isfinite(increment).all(): raise CableInputError("derived wire increment must be finite") trial = force + k_now * increment[:, None] - slipping = np.abs(trial) > cap - force = np.where(slipping, np.copysign(cap, trial), trial) + force = np.minimum(np.maximum(trial, -cap_lo), cap) + slipping = force != trial slip = np.where( slipping, increment[:, None] - (force - old_force) / k_now, 0.0 ) @@ -470,9 +498,11 @@ def _progressive_stress_kernel( held_angle = math.nan held_pressure = math.nan held_cap = np.zeros((n_w, n_el)) + held_lo = np.zeros((n_w, n_el)) cur_angle = math.nan cur_pressure = math.nan cur_cap = np.zeros((n_w, n_el)) + cur_lo = np.zeros((n_w, n_el)) share = 1.0 / n_el for i in range(n_t): x = kx[i] @@ -501,6 +531,22 @@ def _progressive_stress_kernel( density, n_el, spread, + 1.0, + ) + held_lo = _caps_kernel( + phi, + held, + p, + r_helix, + n_w, + area, + lay_angle, + mu, + g, + density, + n_el, + spread, + -1.0, ) held_angle = held held_pressure = p @@ -518,6 +564,22 @@ def _progressive_stress_kernel( density, n_el, spread, + 1.0, + ) + cur_lo = _caps_kernel( + phi, + current, + p, + r_helix, + n_w, + area, + lay_angle, + mu, + g, + density, + n_el, + spread, + -1.0, ) cur_angle = current cur_pressure = p @@ -527,11 +589,15 @@ def _progressive_stress_kernel( total = 0.0 for j in range(n_el): cap = held_cap[w, j] + lo = held_lo[w, j] if blend > 0.0: cap = (1.0 - blend) * held_cap[w, j] + blend * cur_cap[w, j] + lo = (1.0 - blend) * held_lo[w, j] + blend * cur_lo[w, j] trial = force[w, j] + k * inc - if abs(trial) > cap: - force[w, j] = math.copysign(cap, trial) + if trial > cap: + force[w, j] = cap + elif trial < -lo: + force[w, j] = -lo else: force[w, j] = trial total += force[w, j] diff --git a/tests/test_api_invariants.py b/tests/test_api_invariants.py index 1426254..4ba770d 100644 --- a/tests/test_api_invariants.py +++ b/tests/test_api_invariants.py @@ -16,6 +16,8 @@ import pytest import cablexsec as cx +from cablexsec.cable_adapters import cable_to_mkappa_specs +from cablexsec.mechanics.papailiou import wire_slip_stress_bounds pytestmark = pytest.mark.analytical_sanity @@ -84,12 +86,49 @@ def test_repeated_history_doubles_damage(cable): assert 1.9 <= twice[name] / base[name] <= 2.1 +def _mirror_defect_terms(cable): + """Full-slip value and envelope of ``M(kappa) + M(-kappa)``. + + The friction bounds belong to the wire (upper ``u`` for a rising, lower + ``l`` for a falling stress), so the mirrored history is the original one + with the bounds swapped: ``M(kappa) + M(-kappa) = sum_w W r c_w D_w``, + ``c_w = cos(phi_w)``, ``W = A cos a``, with ``D_w`` the stress difference + of the two bound orders under the same drive. A wire and its mirror image + (``c -> -c``) have the same ``D``, so an even wire count cancels exactly; + in full slip ``D_w = u_w - l_w = 2 sigma0 (cosh(lam psi) - 1)``, and the + stop operator is monotone in its bounds, ``0 <= D_w <= u_w - l_w``. + """ + full = positive = negative = 0.0 + for spec in cable_to_mkappa_specs(cable, 5.0e4): + upper, lower = wire_slip_stress_bounds(spec, 0.0) + c = np.cos(spec.phi_wires) + term = spec.A_wire_m2 * math.cos(spec.lay_angle_rad) * spec.r_helix_m + span = term * c * (upper - lower) + full += float(np.sum(span)) + positive += float(np.sum(span[c > 0])) + negative -= float(np.sum(span[c < 0])) + return full, max(positive, negative) + + def test_moment_curvature_symmetry_and_work_balance(cable): kappa = 0.08 * np.sin(np.linspace(0.0, 4.0 * math.pi, 161)) loop = cx.compute_mkappa(cable, kappa, tension_N=5.0e4) mirror = cx.compute_mkappa(cable, -kappa, tension_N=5.0e4) scale = float(np.max(np.abs(loop.moment_Nm))) - assert np.max(np.abs(loop.moment_Nm + mirror.moment_Nm)) <= 1e-9 * scale + defect = np.asarray(loop.moment_Nm) + np.asarray(mirror.moment_Nm) + full, envelope = _mirror_defect_terms(cable) + if all(spec.n_wires % 2 == 0 for spec in cable_to_mkappa_specs(cable, 5.0e4)): + assert np.max(np.abs(defect)) <= 1e-9 * scale + else: + # Odd wire counts: M(-kappa) = -M(kappa) up to the signed-capstan + # asymmetry (8e-5 of the peak for menard2023 in full slip), even in + # kappa: swapping the two histories leaves the sum unchanged. + slipped = (np.asarray(loop.slip_fraction) == 1.0) & ( + np.asarray(mirror.slip_fraction) == 1.0 + ) + assert slipped.any() and abs(full) > 1e-6 * scale + np.testing.assert_allclose(defect[slipped], full, rtol=0, atol=1e-9 * scale) + assert np.max(np.abs(defect)) <= envelope + 1e-9 * scale assert loop.work is not None friction = np.asarray(loop.work.friction_J_per_m) assert np.all(np.diff(friction) >= -1e-12 * max(1.0, friction[-1])) diff --git a/tests/test_core_friction.py b/tests/test_core_friction.py index 4df8c90..41786ba 100644 --- a/tests/test_core_friction.py +++ b/tests/test_core_friction.py @@ -122,12 +122,21 @@ def test_infinite_friction_gives_the_no_slip_section(cable): def test_full_slip_core_moment_matches_closed_form(cable): - """Half-height at kappa = 0 of the core population after full reversal.""" + """Half-height at kappa = 0 of the core population after full reversal. + + Signed capstan: after the reversal the cores that were on the tension + side sit at their lower bound ``-sigma0 (1 - exp(-a psi))`` and the others + at their upper bound ``sigma0 expm1(a psi)``, so the moment integrand is + their half sum ``sinh(a psi) sin(psi)`` and + ``int_0^{pi/2} sinh(a psi) sin(psi) dpsi = a cosh(a pi/2) / (1 + a^2)`` + (the same magnitude at the peak). The former symmetric cap gave + ``(a exp(a pi/2) + 1) / (1 + a^2) - 1``. + """ model = build_core_friction(cable, SPEC, T, contact_model="solved") q = model.loads.total_N_per_m beta, r = model.lay_angle_rad, model.r_offset_m a = model.mu_effective * math.sin(beta) - integral = (a * math.exp(a * math.pi / 2) + 1.0) / (1.0 + a * a) - 1.0 + integral = a * math.cosh(a * math.pi / 2) / (1.0 + a * a) closed = ( 2.0 / math.pi @@ -144,10 +153,11 @@ def test_full_slip_core_moment_matches_closed_form(cable): m = hist.core_moment_Nm[:, 0] assert -_descending_zero(k, m) == pytest.approx(closed, rel=5e-3) assert m.max() == pytest.approx(closed, rel=5e-3) - # Small-angle form 2 n mu q r^2 cos(beta)^2 / (pi sin beta). + # Small-angle form 2 n mu q r^2 cos(beta)^2 / (pi sin beta): the signed + # bound leaves only O(a^2), cosh(a pi/2) / (1 + a^2) = 1 + (pi^2/8 - 1) a^2. small = 2 * model.n_cores * model.mu_effective * q * r * r small *= math.cos(beta) ** 2 / (math.pi * math.sin(beta)) - assert closed == pytest.approx(small, rel=0.1) + assert closed == pytest.approx(small, rel=a * a) @pytest.mark.parametrize("model", ["bounded", "solved"]) @@ -416,5 +426,6 @@ def test_janocha_template_regression(cable): res = cx.compute_mkappa( cable, k, tension_N=T, contact_model="solved", core_friction=SPEC ) - assert -_descending_zero(k, res.moment_Nm) == pytest.approx(187.1, rel=1e-2) + # 180.6 N m with the signed capstan bound (187.1 with the former cap). + assert -_descending_zero(k, res.moment_Nm) == pytest.approx(180.6, rel=1e-2) assert res.EI_min_Nm2 == pytest.approx(21.0e3, rel=1e-2) diff --git a/tests/test_core_lay_stage.py b/tests/test_core_lay_stage.py index 1dabf57..b702cb8 100644 --- a/tests/test_core_lay_stage.py +++ b/tests/test_core_lay_stage.py @@ -29,7 +29,10 @@ from cablexsec.exceptions import CableSchemaError from cablexsec.io import global_export from cablexsec.mechanics.core_friction import build_core_friction -from cablexsec.mechanics.papailiou import slip_onset_curvature +from cablexsec.mechanics.papailiou import ( + _compression_onset_factor, + slip_onset_curvature, +) from cablexsec.mechanics.stiffness import bending_stiffness_by_layer pytestmark = [ @@ -121,7 +124,10 @@ def _closed_form(model: object) -> tuple[float, float, float]: onset = mu * q / (xi * ea * s * c) # [Papailiou1997] Eq. 15 at the extreme fibre (psi = pi/2). full = q * math.expm1(a * math.pi / 2) / (xi * ea * s * s * c) - integral = (a * math.exp(a * math.pi / 2) + 1.0) / (1.0 + a * a) - 1.0 + # Full-slip moment with the signed capstan bound: tension-side cores at + # sigma0 expm1(a psi), compression-side cores at -sigma0 (1 - exp(-a psi)), + # int_0^{pi/2} sinh(a psi) sin(psi) dpsi = a cosh(a pi/2) / (1 + a^2). + integral = a * math.cosh(a * math.pi / 2) / (1.0 + a * a) moment = 2.0 / math.pi * n * q * r * r * c * c / (s * s) * integral return onset, full, moment @@ -181,7 +187,11 @@ def test_stage_passes_through_core_slip_and_ends_at_full_slip( core = with_cores.moment_Nm - without.moment_Nm model = build_core_friction(cable, RIGID, T) onset, full, moment = _closed_form(model) - stick = kappa <= onset + # Compression-side cores slip first, at m(a) onset (m = 1 - 3a^2/8): the + # grid node at the neutral-axis onset itself has already left the stick line. + a = model.mu_effective * math.sin(model.lay_angle_rad) + stick = kappa < _compression_onset_factor(a) * onset + assert np.count_nonzero(stick) > 3 np.testing.assert_allclose( core[stick], model.core_stick_EI_Nm2 * kappa[stick], rtol=1e-9, atol=1e-9 ) diff --git a/tests/test_core_screens_sheaths.py b/tests/test_core_screens_sheaths.py index 46c23b1..8ffef76 100644 --- a/tests/test_core_screens_sheaths.py +++ b/tests/test_core_screens_sheaths.py @@ -272,8 +272,21 @@ def test_stuck_core_adds_the_axis_strain_to_the_screen(thies): def test_thies_screen_reproduces_the_core_level_workaround(aligned): - """Aligned cores, free state: the hand core-level helical-screen numbers.""" + """Aligned cores, free state: the hand core-level helical-screen numbers. + + The hand calculation (254 MPa, 819 um, 7.2e-6 per cycle) used the former + symmetric friction cap. The screen ring is in full slip (kappa 0.39 1/m, + onset 0.059 1/m), so the signed bound lowers every fibre range by + ``2 sigma0 (cosh(lam pi/2) - 1)`` (6.07 MPa here, ``lam = mu sin(alpha)``), + leaves the slip amplitude unchanged and scales the bulk damage by the + range ratio to the slope ``m = 6.16`` of ``nasution_2014_copper``. The + fretting knock-down depends on the slip only, so the outer-face fretting + damage keeps its ratio to the plain-fatigue damage (97.75); its plain + damage falls with the face range and mean stress, to 37.4 from 43.0 (the + wire count above one is unchanged). + """ from cablexsec.analysis.fretting_assessment import SECONDS_PER_YEAR + from cablexsec.materials.sn_curves import get_sn_curve t = np.linspace(0.0, 10.0, 961) k = KAPPA * np.sin(2 * np.pi * t) @@ -286,14 +299,32 @@ def test_thies_screen_reproduces_the_core_level_workaround(aligned): mu_outer=0.25, n_stations=1, ) - assert np.max(result.stress_range_Pa[0, :, 0]) / 1e6 == pytest.approx( - 254.0, abs=1.0 + ring = next(x for x in aligned.layers if x.name == "cu_screen_wires") + wire = ring.strand_layers[0] + area = math.pi * wire.d_wire_m**2 / 4 + alpha = math.atan(2 * math.pi * wire.r_helix_m / wire.pitch_m) + lam = 0.2 * math.sin(alpha) + sigma0 = ( + wire.r_helix_m + * 4.0e5 # P1 + P2: the declared outer-face pressure on both faces + * (2 * math.pi * wire.r_helix_m / wire.n_wires) + * math.cos(alpha) + / (area * math.sin(alpha) ** 2) ) + shift = 2 * sigma0 * (math.cosh(lam * math.pi / 2) - 1) / 1e6 + assert shift == pytest.approx(6.07, abs=0.01) + hand_range = 254.0 + new_range = np.max(result.stress_range_Pa[0, :, 0]) / 1e6 + assert new_range == pytest.approx(hand_range - shift, abs=1.0) assert np.max(result.slip_amplitude_m) * 1e6 == pytest.approx(819.0, rel=0.01) - assert np.max(result.D_bulk) / 10 == pytest.approx(7.2e-6, rel=0.01) + m = get_sn_curve("nasution_2014_copper").m1 + expected = 7.2e-6 * ((hand_range - shift) / hand_range) ** m + assert np.max(result.D_bulk) / 10 == pytest.approx(expected, rel=0.01) face = result.faces[0]["outer_face"] + plain = np.where(face.D_plain_per_year > 0, face.D_plain_per_year, np.inf) + assert np.max(face.D_fretting_per_year / plain) == pytest.approx(97.75, rel=1e-3) fretting = face.D_fretting_per_year / (SECONDS_PER_YEAR / 10.0) / 10.0 * 76165 - assert np.max(fretting) == pytest.approx(43.0, rel=0.01) + assert np.max(fretting) == pytest.approx(37.4, rel=0.01) assert int(np.sum(fretting >= 1.0)) == 4 diff --git a/tests/test_direction_hold.py b/tests/test_direction_hold.py index dbb87bc..6c3e3c8 100644 --- a/tests/test_direction_hold.py +++ b/tests/test_direction_hold.py @@ -19,6 +19,7 @@ from cablexsec.mechanics.fast_slip import wire_friction_stress from cablexsec.mechanics.papailiou import ( DIRECTION_HOLD_FRACTION, + _compression_onset_factor, direction_threshold_curvature, slip_onset_curvature, wire_slip_history, @@ -56,13 +57,16 @@ def test_onset_curvature_formula_and_virgin_onset(): expected = spec.mu * q * g_min / (spec.A_wire_m2 * sin_a * spec.k_f) onset = slip_onset_curvature(spec) assert onset == pytest.approx(expected, rel=1e-12) + # Signed capstan: the compression-side first slip lies m(lam) below + # the neutral-axis onset, and the hold threshold follows it. + m = _compression_onset_factor(spec.mu * sin_a) assert direction_threshold_curvature(spec) == pytest.approx( - DIRECTION_HOLD_FRACTION * onset, rel=1e-12 + DIRECTION_HOLD_FRACTION * m * onset, rel=1e-12 ) # Dense uniform population: no wire slips below the bound, and the - # first slip occurs just above it (neutral-axis wires). + # first slip occurs just above it (compression side, psi ~ 3 lam / 2). dense = replace(spec, n_wires=720, shape_g=None) - onset = slip_onset_curvature(dense) + onset = m * slip_onset_curvature(dense) kappa = np.linspace(0.0, 1.2 * onset, 1201) count = wire_slip_history(dense, kappa, np.zeros_like(kappa)).slipping_count first = kappa[np.argmax(count > 0)] diff --git a/tests/test_distributed_friction.py b/tests/test_distributed_friction.py index 78eb940..167b5f7 100644 --- a/tests/test_distributed_friction.py +++ b/tests/test_distributed_friction.py @@ -5,6 +5,12 @@ Reference values marked "stick_check" are those recorded by a separate, independently verified solver of the same discrete problem: 256 nodes per pitch, segment midpoints at ``(j + 1/2) h``, backward Euler, the same paths. +The capstan bound is that of the wire's signed force, ``b = rho g + lam n`` +([Papailiou1997] Eqs. 9-14 with the signed helix angle); the values with +``lam > 0`` are recomputed by the NumPy port of that solver +(:class:`_Reference`), which reproduces the external solver's recorded value +for the former ``lam |n|`` bound (26.579392168691143) to 1e-15 when given +that bound. """ from __future__ import annotations @@ -15,6 +21,7 @@ import numpy as np import pytest from scipy.linalg import solve_banded +from scipy.optimize import fsolve import cablexsec as cx from cablexsec.analysis.fatigue import compute_fatigue, wire_stress_field @@ -83,7 +90,21 @@ def _cap(spec): / (spec.A_wire_m2 * sa**2) ) psi = np.arcsin(np.clip(np.abs(np.cos(spec.phi_wires)), 0, 1)) - return sigma0 * np.expm1(spec.mu * sa * psi) * np.sign(np.cos(spec.phi_wires)) + # Signed capstan: sigma0 expm1(lam psi) on the tension side, + # -sigma0 (1 - exp(-lam psi)) = sigma0 expm1(-lam psi) on the other. + return sigma0 * np.expm1(spec.mu * sa * psi * np.sign(np.cos(spec.phi_wires))) + + +def _sigma0(spec): + sa = abs(math.sin(spec.lay_angle_rad)) + width = 2 * PI * spec.r_helix_m / spec.n_wires + return ( + spec.r_helix_m + * spec.contact_pressure_Pa + * width + * math.cos(spec.lay_angle_rad) + / (spec.A_wire_m2 * sa**2) + ) def _kappa_on(spec): @@ -161,14 +182,14 @@ def advance(self, ax, ay, rho): n = self.n.copy() v = np.zeros(self.N) for _ in range(100): - b = rho * self.g + self.lam * 0.5 * (np.abs(n) + np.abs(np.roll(n, 1))) + b = np.maximum(rho * self.g + self.lam * 0.5 * (n + np.roll(n, 1)), 0.0) v = self._newton(y, z0, b, v) n_new = y + (np.roll(v, -1) - v) / h done = np.abs(n_new - n).max() <= 1e-12 * max(1.0, np.abs(n_new).max()) n = n_new if self.lam == 0.0 or done: break - b = rho * self.g + self.lam * 0.5 * (np.abs(n) + np.abs(np.roll(n, 1))) + b = np.maximum(rho * self.g + self.lam * 0.5 * (n + np.roll(n, 1)), 0.0) tau = np.clip(k * (z0 + v), -b, b) self.p = self.u + v - tau / k self.u = self.u + v @@ -210,11 +231,24 @@ def test_stick_check_rigid_limit_and_capstan_cases(): ax, ay = _rotation(2.0 * 1.001, 3, 720) hist = _kernel(ax, ay, 1000.0, 0.0, 256)[1] assert hist[-1, 1] - hist[-721, 1] == pytest.approx(30.622844477479035, rel=1e-10) + # Capstan case, signed bound: the NumPy port of stick_check gives + # 29.42502785927062 (the former lam |n| bound: 26.579392168691143). The + # falling force of the compression side lowers its bound, so this partial + # slip rotation dissipates more than with the former bound. ax, ay = _rotation(1.3 / (0.33 / 1.33), 3, 720) + reference = _Reference(256, 0.33, 0.127) + dissipated = [] + for x, y in zip(ax, ay, strict=True): + p_old = reference.p.copy() + reference.advance(x, y, 1.0) + tau = reference.k * (reference.u - reference.p) + dissipated.append(reference.h * float(np.sum(tau * (reference.p - p_old)))) + d_ref = float(np.sum(dissipated[-720:])) + assert d_ref == pytest.approx(29.42502785927062, rel=1e-10) for newton in (True, False): hist = _kernel(ax, ay, 0.33, 0.127, 256, newton=newton)[1] d_rev = hist[-1, 1] - hist[-721, 1] - assert d_rev == pytest.approx(26.579392168691143, rel=1e-10) + assert d_rev == pytest.approx(d_ref, rel=1e-10) @compiled @@ -236,14 +270,50 @@ def test_steady_rotation_tends_to_rigid_closed_form(a): assert errors[2] < 5e-3 +def _rigid_partial_slip(lam, a): + """Rigid-stick limit of monotonic planar loading, signed capstan bound. + + With ``x = pi/2 - |phi|`` from the neutral axis toward the tension side + the stick zones carry ``n = a sin x``; the slip zone ``-x_c < x < x_t`` + round the neutral axis has ``dn/dx = b = 1 + lam n``, so + ``n = C exp(lam x) - 1/lam``. ``n`` is continuous at both slip fronts, + and ``u`` vanishes in both stick zones, so the slip zone adds no net + displacement: ``int (n - a sin x) dx = 0`` over it. These three equations + fix ``C``, ``x_t`` and ``x_c``; the zone is asymmetric (it reaches + further into the compression side, whose bound falls with its force). + With the former ``lam |n|`` bound the solution was the pointwise + minimum of ``a |cos phi|`` and ``expm1(lam psi) / lam``. + """ + + def equations(v): + c, xt, xc = v + return [ + c * math.exp(lam * xt) - 1 / lam - a * math.sin(xt), + c * math.exp(-lam * xc) - 1 / lam + a * math.sin(xc), + c * (math.exp(lam * xt) - math.exp(-lam * xc)) / lam + - (xt + xc) / lam + + a * (math.cos(xt) - math.cos(xc)), + ] + + c, xt, xc = fsolve(equations, [1 / lam, 0.8, 0.8], xtol=1e-12) + assert np.abs(equations([c, xt, xc])).max() < 1e-12 + # The stick zones are admissible: |dn/dx| = a cos x within the bound. + for side, edge in ((1.0, xt), (-1.0, xc)): + x = np.linspace(edge, PI / 2, 200) + assert np.all(a * np.cos(x) <= 1 + side * lam * a * np.sin(x)) + return c, xt, xc + + @compiled def test_planar_capstan_limit_partial_slip(): - """Monotonic planar loading -> Papailiou's exponential cap (pointwise min).""" + """Monotonic planar loading -> the rigid-stick partial-slip field.""" lam, a = 0.127, 1.3 nodes = 256 phi = (np.arange(nodes) + 0.5) * 2 * PI / nodes - cap = np.expm1(lam * np.arcsin(np.clip(np.abs(np.cos(phi)), 0, 1))) / lam - ref = np.sign(np.cos(phi)) * np.minimum(a * np.abs(np.cos(phi)), cap) + c, xt, xc = _rigid_partial_slip(lam, a) + assert xc > xt + x = PI / 2 - np.abs(np.angle(np.exp(1j * phi))) + ref = np.where((x > -xc) & (x < xt), c * np.exp(lam * x) - 1 / lam, a * np.sin(x)) errors = [] for khat in (1e2, 1e3, 1e4): ax = np.linspace(0, a * (1 + khat) / khat, 401)[1:] @@ -254,22 +324,32 @@ def test_planar_capstan_limit_partial_slip(): @compiled -def test_planar_full_slip_equals_package_cap(): - """Physical units: full slip gives sigma_0 expm1(mu |sin a| psi) at every wire.""" +def test_planar_full_slip_closed_form(): + """Physical units, full slip. With the signed bound ``dn/dphi = +-(g + + lam n)`` between the extreme fibres and the zero pitch mean of ``n`` + (periodic ``u``) give ``sigma = sigma0 (C exp(lam x) - 1)``, + ``C = lam pi / (2 sinh(lam pi / 2))``, ``x = pi/2 - |phi|`` from the + geometric neutral axis toward tension; the direction-tied law holds every + wire at its own bound, ``sigma0 expm1(+-lam psi)``.""" spec = _layers()[0].spec - cap = _cap(spec) + assert spec.shape_g is None + lam = spec.mu * abs(math.sin(spec.lay_angle_rad)) + x = PI / 2 - np.abs(np.angle(np.exp(1j * spec.phi_wires))) + c = lam * PI / (2 * math.sinh(lam * PI / 2)) + closed = _sigma0(spec) * (c * np.exp(lam * x) - 1) kappa = np.linspace(0, 1000 * _kappa_on(spec), 301)[1:] errors = [] for per_wire in (4, 8): stress = dfm.distributed_wire_friction_stress( spec, kappa, np.zeros_like(kappa), nodes_per_pitch=per_wire * spec.n_wires ) - errors.append(np.abs(stress[:, -1] - cap).max() / np.abs(cap).max()) - assert errors[0] < 1e-6 + errors.append(np.abs(stress[:, -1] - closed).max() / np.abs(closed).max()) + assert errors[1] < 1e-6 assert errors[0] / errors[1] == pytest.approx(4.0, rel=0.05) # second order + cap = _cap(spec) direction_tied = wire_friction_stress(spec, kappa, np.zeros_like(kappa)) np.testing.assert_allclose( - direction_tied[:, -1], cap, rtol=0, atol=1e-9 * cap.max() + direction_tied[:, -1], cap, rtol=0, atol=1e-9 * np.abs(cap).max() ) @@ -296,18 +376,36 @@ def test_planar_stick_agrees_with_direction_tied(abar): @compiled @pytest.mark.parametrize( ("abar", "range_ratio"), - [(1.2, 0.9513), (1.5, 0.8430), (3.0, 0.8917), (10.0, 0.9696), (30.0, 0.9900)], + [(1.2, 0.9425), (1.5, 0.8266), (3.0, 0.9042), (10.0, 0.9719), (30.0, 0.9896)], ) def test_planar_partial_slip_stick_representation_effect(abar, range_ratio): """Documented difference (not forced to agree): with the shear-lag interface the slip front and the elastic zone at the extreme fibre differ from the pointwise xi-reduced spring slider. Ratio = largest per-wire stress range, - distributed / direction-tied, Menard inner armour, default N.""" + distributed / direction-tied, Menard inner armour, default N. Recorded with + the signed capstan bound (the former bound: 0.9513, 0.8430, 0.8917, + 0.9696, 0.9900); the full-slip limit is the closed form of the next test.""" dist, tied = _planar(_layers()[0].spec, abar) ratio = np.ptp(dist, axis=1).max() / np.ptp(tied, axis=1).max() assert ratio == pytest.approx(range_ratio, abs=2e-3) +@compiled +def test_full_slip_range_ratio_is_x_over_sinh_x(): + """Full-slip limit of the ratio above. The extreme-fibre wire reverses + between its own bounds in the direction-tied law, ``2 sigma0 sinh(x)``, + ``x = lam pi / 2``, and over ``2 sigma0 C sinh(x) = sigma0 lam pi`` in the + distributed one (the closed form of the full-slip field): the ratio is + ``x / sinh(x)``. With the former ``lam |n|`` bound both ranges were + ``2 sigma0 expm1(x)`` and the ratio tended to one.""" + spec = _layers()[0].spec + x = spec.mu * abs(math.sin(spec.lay_angle_rad)) * PI / 2 + dist, tied = _planar(spec, 100.0) + ratio = np.ptp(dist, axis=1).max() / np.ptp(tied, axis=1).max() + assert ratio == pytest.approx(x / math.sinh(x), rel=1e-9) + assert ratio < 1.0 - 1e-3 + + # --------------------------------------------------------------------------- # # (3) energy balance # # --------------------------------------------------------------------------- # diff --git a/tests/test_kinematics.py b/tests/test_kinematics.py index 7613878..f84d962 100644 --- a/tests/test_kinematics.py +++ b/tests/test_kinematics.py @@ -92,16 +92,49 @@ def test_slip_is_zero_in_stick() -> None: def test_stick_zones_stay_in_place_in_planar_bending() -> None: + """The stick zones round the two extreme fibres stay in place on average. + + By the mirror symmetry of planar bending (``phi -> -phi``) the slip strain + less its pitch mean integrates to zero over each half pitch, so each zone + keeps its mean position exactly. The signed capstan bound leaves the + pointwise law a net friction axial force (``O(lam^2)``), hence a nonzero + pitch mean ``gbar`` of the slip strain ``gamma = cos^2 a (d - sigma_f / + k_f)``; taking it out tilts each zone about its centre by at most + ``(r / |sin a|) (pi / 2) |d gbar|`` per step. + """ kappa = 0.004 * np.sin(np.linspace(0.0, 2.5 * np.pi, 400)) history = kinematic_history(CABLE, kappa, np.zeros(400), tension_N=200e3) + specs = { + layer.name: layer.spec + for layer in cx.cable_to_fatigue_layers(CABLE, contact_tension_N=200e3) + } for layer in history.layers: held = _held(layer.slipping)[:, 1:] assert held.any() and (~held).any() - moved = np.abs(np.diff(layer.slip_m, axis=1))[held] + step = np.diff(layer.slip_m, axis=1) amplitude = kinematic_slip_amplitude( layer.r_helix_m, layer.lay_angle_rad, 0.004 ) - assert moved.max() < 1e-4 * amplitude + for zone in (np.cos(layer.azimuth_rad) > 0.0, np.cos(layer.azimuth_rad) < 0.0): + for t in np.flatnonzero(held[zone].any(axis=0)): + mean = step[zone, t][held[zone, t]].mean() + assert abs(mean) < 1e-12 * amplitude + assert layer.friction_Pa is not None + drive = layer.r_helix_m * np.cos(layer.azimuth_rad)[:, None] * kappa[None, :] + gamma = math.cos(layer.lay_angle_rad) ** 2 * ( + drive - layer.friction_Pa / specs[layer.name].k_f + ) + tilt = ( + layer.r_helix_m + / abs(math.sin(layer.lay_angle_rad)) + * (math.pi / 2) + * np.abs(np.diff(gamma.mean(axis=0))) + ) + assert np.all( + np.abs(step)[held] + <= np.broadcast_to(tilt, step.shape)[held] + 1e-12 * amplitude + ) + assert np.abs(step)[held].max() < 2e-3 * amplitude # Slip while slipping, of the order of the kinematic slip. assert 0.3 * amplitude < np.abs(layer.slip_m).max() <= 1.001 * amplitude diff --git a/tests/test_menard2023_bm1.py b/tests/test_menard2023_bm1.py index 7814ba4..8b9e525 100644 --- a/tests/test_menard2023_bm1.py +++ b/tests/test_menard2023_bm1.py @@ -111,15 +111,13 @@ def test_BM1_held_out_pm01_loop_matches_digitised_test_branches() -> None: assert normalized_rmse < 0.05 -@pytest.mark.xfail( - strict=True, - reason=( - "After force-projection, section-geometry and per-wire shear corrections, " - "the reduced model exceeds the 10% matched experimental cycle-work criterion. " - "Compare the same measured curvature paths in J/m, not a source-table entry labelled J." - ), -) def test_BM1_matched_experimental_cycle_work_criterion() -> None: + """Registered 10 % criterion on the matched cycle work (J/m, same paths). + + It failed with the former symmetric capstan cap (+12.9 %); with the + signed bound of [Papailiou1997] the full-slip loop work falls by 3.7 % + and the difference is +8.8 %. The threshold is unchanged. + """ data = np.genfromtxt(MEASURED_B, delimiter=",", names=True) curvature, moment = data["curvature_1_per_m"], data["moment_Nm"] augmented, _, crossings = insert_cycle_crossings(curvature, crossing=0.0) diff --git a/tests/test_neutral_axis.py b/tests/test_neutral_axis.py index 9e13015..9071f2c 100644 --- a/tests/test_neutral_axis.py +++ b/tests/test_neutral_axis.py @@ -17,7 +17,7 @@ from cablexsec.mechanics.papailiou import ( slip_onset_curvature, wire_slip_history, - wire_slip_stress_cap, + wire_slip_stress_bounds, ) from cablexsec.mechanics.section_conventions import rotation_to_strain_curvature from cablexsec.mechanics.stiffness import ea_fixed @@ -84,13 +84,18 @@ def test_the_cap_is_kept_on_request(cable: cx.CableData) -> None: np.testing.assert_array_equal(plain.stress_Pa, kept.stress_Pa) np.testing.assert_array_equal(plain.moment_Nm, kept.moment_Nm) assert np.all(np.abs(kept.stress_Pa) <= kept.cap_Pa * (1 + 1e-12)) - # Above the hold threshold the cap is that of the current direction. + # Above the hold threshold the cap is the bound of the current direction + # on the side of the wire's stress: upper for a nonnegative stress, lower + # (signed capstan) for a negative one. index = 777 + upper, lower = wire_slip_stress_bounds(spec, math.atan2(ky[index], kx[index])) np.testing.assert_allclose( kept.cap_Pa[:, index], - wire_slip_stress_cap(spec, math.atan2(ky[index], kx[index])), + np.where(kept.stress_Pa[:, index] < 0.0, lower, upper), rtol=1e-12, ) + assert np.any(kept.stress_Pa[:, index] < 0.0) + assert np.any(kept.stress_Pa[:, index] > 0.0) # The slipping count of the return map is the wires at their cap that # moved; a wire below its cap is never counted. below = np.abs(kept.stress_Pa) < kept.cap_Pa * (1 - 1e-12) @@ -156,8 +161,9 @@ def test_planar_cycles_flip_the_direction(cable: cx.CableData) -> None: def _independent_lead(spec: object, kappa: float, per_revolution: int = 20000) -> float: """Lead of the stress resultant over the bending direction of one wire population under steady anticlockwise rotation, from a scalar - spring-slider written out here: the Papailiou cap - sigma0 expm1(mu |sin a| asin|cos(beta)|) and the elastic-Coulomb update. + spring-slider written out here: the signed Papailiou bounds + -sigma0 (1 - exp(-m psi)) <= sigma <= sigma0 (exp(m psi) - 1), + psi = asin|cos(beta)|, m = mu |sin a|, and the elastic-Coulomb update. Every wire sees the same history shifted in time, so the steady stress S(beta) of one wire gives the distribution round a continuous layer.""" a = spec.lay_angle_rad # type: ignore[attr-defined] @@ -172,12 +178,14 @@ def _independent_lead(spec: object, kappa: float, per_revolution: int = 20000) - k = spec.k_f # type: ignore[attr-defined] turn = np.linspace(0.0, 6 * math.pi, 3 * per_revolution + 1) drive = r * kappa * np.cos(turn) # the wire at azimuth zero - cap = sigma0 * np.expm1(m * np.arcsin(np.abs(np.cos(turn)))) + psi = np.arcsin(np.abs(np.cos(turn))) + upper = sigma0 * (np.exp(m * psi) - 1) + lower = sigma0 * (1 - np.exp(-m * psi)) stress = np.empty_like(turn) force = 0.0 for i in range(turn.size): trial = force + k * (drive[i] - (drive[i - 1] if i else 0.0)) - force = max(-cap[i], min(cap[i], trial)) + force = max(-lower[i], min(upper[i], trial)) stress[i] = force last = slice(2 * per_revolution, 3 * per_revolution) beta = -turn[last] # the wire's azimuth from the bending direction @@ -198,7 +206,10 @@ def test_rotation_in_partial_slip_against_an_independent_calculation( lead = float(np.mean(result.stress_angle_rad(outer)[last])) expected = _independent_lead(spec, kappa) assert math.degrees(lead) == pytest.approx(math.degrees(expected), abs=0.1) - assert 9.0 < math.degrees(lead) < 11.0 # the stress axis leads + # The stress axis leads (11.06 deg). The signed bound lets the compression + # side slip earlier than the former symmetric cap (10 deg), so at three + # times the onset more of the ring slips and the lead is larger. + assert 10.5 < math.degrees(lead) < 11.5 # Energy: the work per revolution, 2 pi |b| |m| sin(lead), is the friction # dissipation of the same history (plastic work of the slip increments). history = wire_slip_history(spec, kx, ky) # type: ignore[arg-type] @@ -230,10 +241,15 @@ def test_rotation_reversed_reverses_the_lead(cable: cx.CableData) -> None: def test_full_slip_moment_is_normal_to_the_curvature(cable: cx.CableData) -> None: - """Closed form: every wire at its cap with the sign of its strain rate, - sigma_k = cap(beta_k) sign(sin beta_k), whose resultant is normal to the - curvature (Kimball 1925) with the continuous-layer magnitude - M = A cos(a) r sigma0 (n/2pi) 4 [(e^{m pi/2} - m)/(1 + m^2) - 1].""" + """Closed form: every wire at the bound of the sign of its strain rate, + sigma_k = sigma0 (e^{m psi} - 1) for sin beta_k > 0 and + -sigma0 (1 - e^{-m psi}) for sin beta_k < 0 (signed capstan), whose + resultant is normal to the curvature (Kimball 1925): the in-plane part + cancels between beta and pi - beta. Opposite wires (beta, beta + pi) add + up to the reversal span 2 sigma0 sinh(m psi), and with psi = pi/2 - beta + on [0, pi/2] the continuous-layer magnitude is + M = A cos(a) r sigma0 (n/2pi) 4 int_0^{pi/2} sinh(m psi) cos(psi) dpsi + = A cos(a) r sigma0 (n/2pi) 4 (sinh(m pi/2) - m)/(1 + m^2).""" layers = _layers(cable) name, spec = layers[1] kappa = 1e4 * slip_onset_curvature(spec) # type: ignore[arg-type] @@ -262,7 +278,8 @@ def test_full_slip_moment_is_normal_to_the_curvature(cable: cx.CableData) -> Non * sigma0 * (n / (2 * math.pi)) * 4 - * ((math.exp(m * math.pi / 2) - m) / (1 + m * m) - 1) + * (math.sinh(m * math.pi / 2) - m) + / (1 + m * m) ) direction = np.column_stack((kx, ky))[last] / kappa normal = np.column_stack((-direction[:, 1], direction[:, 0])) diff --git a/tests/test_orbit_friction_heat.py b/tests/test_orbit_friction_heat.py index e5ee3db..7dc956a 100644 --- a/tests/test_orbit_friction_heat.py +++ b/tests/test_orbit_friction_heat.py @@ -4,10 +4,12 @@ Gates: -* large-amplitude whirl, closed form: one revolution of a circular orbit of - radius ``R`` against the two planar cycles of amplitude ``R``, ratio - ``pi / 4`` for the distributed helix model (every helix node slips through - ``4 R`` at its bound) and ``pi (pi/2 - 1) / 4`` for the direction-tied cap +* large-amplitude whirl, closed forms with the signed capstan bound: one + revolution of a circular orbit of radius ``R`` against the two planar + cycles of amplitude ``R``, ratio ``pi / 4`` for the distributed helix model + (exact for any ``lam``) and ``pi (sinh x0 - lam) / (4 lam cosh x0)``, + ``x0 = lam pi / 2``, for the direction-tied cap; in planar bending the + direction-tied work is ``sinh(x0) / x0`` times the distributed one (:func:`cablexsec.mechanics.papailiou.wire_slip_history` notes); * the heat of ``compute_thermal_fatigue`` is the distributed dissipation of the fatigue-path discretisation within 0.5 %, on a planar record (where it @@ -100,11 +102,32 @@ def test_large_whirl_dissipation_matches_closed_form(spec): ) ratio_d = distributed["circle"] / (distributed["x"] + distributed["y"]) ratio_p = direction_tied["circle"] / (direction_tied["x"] + direction_tied["y"]) - # Corrections are of order kappa_on / R and of the capstan term. - assert ratio_d == pytest.approx(math.pi / 4.0, rel=0.01) - assert ratio_p == pytest.approx(math.pi * (math.pi / 2.0 - 1.0) / 4.0, rel=0.02) - # In planar bending the two models dissipate the same work. - assert direction_tied["x"] == pytest.approx(distributed["x"], rel=0.01) + # Rigid-plastic limit (R >> kappa_on), signed bounds [-l(psi), u(psi)], + # u + l = 2 sigma0 sinh(lam psi). Direction-tied: on the orbit every wire + # is at the bound of the sign of its drive rate, so per revolution it + # dissipates r R int (u + l) |sin b| = 4 sigma0 r R (sinh x0 - lam) / + # (1 + lam^2); a planar cycle gives 2 r R |c| (u + l), whose wire mean + # over the two axes is (16 / pi) sigma0 r R lam cosh x0 / (1 + lam^2). + # Distributed: the rotating full-slip field is the planar one, + # sigma0 (C exp(lam x) - 1), turned to the slip-reversal axes, and both + # cases integrate exp(lam x) cos x, so pi / 4 holds for any lam. The + # remaining corrections are of order kappa_on / R (0.26 % and 0.06 % here, + # four times smaller than at R = 256 kappa_on). + lam = spec.mu * abs(math.sin(spec.lay_angle_rad)) + x0 = lam * math.pi / 2.0 + tied_limit = math.pi * (math.sinh(x0) - lam) / (4.0 * lam * math.cosh(x0)) + assert tied_limit == pytest.approx( + math.pi * (math.pi / 2.0 - 1.0) / 4.0, rel=lam**2 + ) + assert ratio_d == pytest.approx(math.pi / 4.0, rel=2e-3) + assert ratio_p == pytest.approx(tied_limit, rel=5e-3) + # In planar bending the extreme-fibre wire reverses over 2 sigma0 + # sinh(x0) against sigma0 lam pi in the distributed field: the works + # differ by sinh(x0) / x0 (1.0008 here, which this check resolves only + # to the 1e-3 discretisation of the two models). + assert direction_tied["x"] / distributed["x"] == pytest.approx( + math.sinh(x0) / x0, rel=2e-3 + ) def _block_heat(t66: CableData, kx: np.ndarray, ky: np.ndarray): diff --git a/tests/test_progressive_friction.py b/tests/test_progressive_friction.py index 69495ef..2b37be0 100644 --- a/tests/test_progressive_friction.py +++ b/tests/test_progressive_friction.py @@ -14,6 +14,7 @@ from cablexsec.exceptions import CableInputError, CableSchemaError from cablexsec.mechanics import fast_slip from cablexsec.mechanics.papailiou import ( + _compression_onset_factor, slip_onset_curvature, wire_slip_history, wire_slip_stress_cap, @@ -191,28 +192,89 @@ def test_transition_is_more_gradual_than_the_default(spec): spec, kappa, zeros, progressive=ProgressiveFriction() ).moment_Nm[:, 0] # Same stick branch, never above the pointwise law, strictly below it in - # the transition (friction continuity removes the KK overshoot). - stick = kappa <= k_on + # the transition (friction continuity removes the KK overshoot). The stick + # branch ends at the compression-side first slip m(lam) k_on, below k_on. + lam = spec.mu * abs(math.sin(spec.lay_angle_rad)) + stick = kappa < _compression_onset_factor(lam) * k_on + assert np.count_nonzero(stick) > 3 assert np.allclose(ref[stick], new[stick], rtol=1e-12, atol=0) assert np.all(new <= ref + 1e-9 * np.abs(ref).max()) assert (ref - new)[kappa > 1.2 * k_on].min() > 0 -def test_masing_reversal(spec): +def _reversal(spec, multiple): k_on = slip_onset_curvature(spec) - amp = 3.0 * k_on + amp = multiple * k_on up = np.linspace(0.0, amp, 1201) down = np.linspace(amp, -amp, 1201)[1:] kappa = np.r_[up, down] - zeros = np.zeros_like(kappa) m = progressive_wire_history( - spec, kappa, zeros, progressive=ProgressiveFriction() + spec, kappa, np.zeros_like(kappa), progressive=ProgressiveFriction() ).moment_Nm[:, 0] - virgin = m[: up.size] - # Masing: M_down(k) = M(amp) - 2 M_virgin((amp - k)/2) - m_down = m[up.size :] - expected = m[up.size - 1] - 2.0 * np.interp((amp - down) / 2.0, up, virgin) - assert np.abs(m_down - expected).max() < 1e-7 * np.abs(m).max() + return amp, up, down, m + + +def _sub_elements(spec, amp): + """Bounds of every sub-element, ``(wires, elements)``: ``b1`` on the side + of the first excursion (upper on the tension side, lower on the + compression side), ``b2`` the opposite one, and the peak force.""" + settings = ProgressiveFriction() + upper = progressive_caps(spec, 0.0, settings) + lower = progressive_caps(spec, 0.0, settings, side=-1.0) + c = np.cos(spec.phi_wires)[:, None] + b1 = np.where(c >= 0, upper, lower) + b2 = np.where(c >= 0, lower, upper) + stick = spec.k_f * spec.r_helix_m * np.abs(c) + peak = np.minimum(stick * amp, b1) + return b1, b2, peak, stick + + +def _moment(spec, force): + """Moment of the sub-element forces (signed by the wire side).""" + c = np.cos(spec.phi_wires) + weight = spec.A_wire_m2 * math.cos(spec.lay_angle_rad) * spec.r_helix_m + return ( + weight + * np.einsum("wjt,w->t", np.sign(c)[:, None, None] * force, c) + / (force.shape[1]) + ) + + +def test_reversal_is_the_elementwise_closed_form(spec): + """Each sub-element is elastic--perfectly plastic with the interval + ``[-lower, upper]``: from the peak ``f_p = min(k x_p, b1)`` of its first + excursion it reverses as ``f_p - min(k d, f_p + b2)`` at the reversal + distance ``d`` (written out here, no time stepping).""" + amp, up, down, m = _reversal(spec, 3.0) + b1, b2, peak, stick = _sub_elements(spec, amp) + d = (amp - down)[None, None, :] + force = peak[..., None] - np.minimum(stick[..., None] * d, (peak + b2)[..., None]) + expected = _moment(spec, force) + assert np.abs(m[up.size :] - expected).max() < 1e-12 * np.abs(m).max() + + +def test_masing_reversal_in_its_generalised_form(spec): + """Masing's rule for the signed interval: a sub-element that slipped at + ``b1`` reverses over ``b1 + b2``, ``b1 - min(k d, b1 + b2) = b1 - 2 + min(k d / 2, (b1 + b2) / 2)``, and one that stuck with ``f_p <= b2`` + reverses elastically over the whole return; both give + ``M_down(k) = M(amp) - 2 M_s((amp - k) / 2)`` with ``M_s`` the virgin + branch of the population with the mean bounds ``(b1 + b2) / 2`` (the + ``sinh`` shares). Only a sub-element stuck at ``b2 < f_p < b1`` breaks + it; none does at ten times the onset. The plain doubling of the virgin + branch, exact for the former symmetric cap, no longer holds.""" + amp, up, down, m = _reversal(spec, 10.0) + b1, b2, peak, stick = _sub_elements(spec, amp) + assert not np.any((peak < b1) & (peak > b2)) + half = ((amp - down) / 2)[None, None, :] + mean_virgin = _moment( + spec, np.minimum(stick[..., None] * half, (0.5 * (b1 + b2))[..., None]) + ) + expected = m[up.size - 1] - 2.0 * mean_virgin + scale = np.abs(m).max() + assert np.abs(m[up.size :] - expected).max() < 1e-12 * scale + plain = m[up.size - 1] - 2.0 * np.interp((amp - down) / 2.0, up, m[: up.size]) + assert np.abs(m[up.size :] - plain).max() > 1e-3 * scale def test_dissipation_nonnegative_and_balance(spec): diff --git a/tests/test_saevik2011_benchmark.py b/tests/test_saevik2011_benchmark.py index b40ef17..547eaf5 100644 --- a/tests/test_saevik2011_benchmark.py +++ b/tests/test_saevik2011_benchmark.py @@ -121,12 +121,16 @@ def test_registered_targets_and_results_are_pinned(rows): "median R in [0.85, 1.18] and >= 12 of 14 R in [0.70, 1.43] " "(R = mean predicted / mean measured, bending-plane stations)" ) + # Signed capstan bound; the former symmetric cap gave median R 1.65 + # (0.45-3.65) and sectional median 1.03 (0.45-2.28). The stick load + # cases are unchanged, the slipping ones fall by 3-5 %. assert plane.value == ( - "median R 1.65 (0.45-3.65), 3 of 14 in band; sectional median 1.03 " - "(0.45-2.28), 11 of 14" + "median R 1.62 (0.45-3.59), 3 of 14 in band; sectional median 1.00 " + "(0.45-2.17), 11 of 14" ) assert plane.status == "FAIL" gj = rows["SV11-GJ"] assert gj.target == "mean ratio in [0.72, 1.38]" - assert gj.value == "1.90 (sectional 1.32); static stress 271 MPa" + # Former symmetric cap: 1.90 (sectional 1.32). + assert gj.value == "1.80 (sectional 1.24); static stress 271 MPa" assert gj.status == "FAIL" diff --git a/tests/test_section_history.py b/tests/test_section_history.py index 8521f74..f6393f0 100644 --- a/tests/test_section_history.py +++ b/tests/test_section_history.py @@ -92,22 +92,19 @@ def test_variable_modulus_wire_history_matches_independent_plastic_strain_update stick_modulus_Pa=stiffness, ) # Independent constitutive implementation stores plastic strain, not force. - # At the extreme wire psi=pi/2, so the slip cap has a direct scalar form. + # At the extreme wire psi=pi/2, so the slip bounds have a direct scalar + # form: sigma0 (exp(lam pi/2) - 1) for a rising and sigma0 (1 - exp(-lam + # pi/2)) for a falling stress (signed capstan, [Papailiou1997] Eq. 14). sine, cosine = math.sin(0.4), math.cos(0.4) width = 2 * math.pi * spec.r_helix_m / spec.n_wires - cap = ( - spec.r_helix_m - * width - * cosine - / (spec.A_wire_m2 * sine**2) - * np.expm1(spec.mu * sine * math.pi / 2) - * pressure - ) + sigma0 = spec.r_helix_m * width * cosine / (spec.A_wire_m2 * sine**2) * pressure + upper = sigma0 * (math.exp(spec.mu * sine * math.pi / 2) - 1) + lower = sigma0 * (1 - math.exp(-spec.mu * sine * math.pi / 2)) plastic = 0.0 expected = [] for t, value in enumerate(kappa): drive = spec.r_helix_m * value - friction = np.clip(stiffness[t] * (drive - plastic), -cap[t], cap[t]) + friction = np.clip(stiffness[t] * (drive - plastic), -lower[t], upper[t]) plastic = drive - friction / stiffness[t] bending = modulus[t] * value * cosine**2 * math.cos(0.8) * 0.003 / 2 expected.append(normal[t] + friction + bending) diff --git a/tests/test_section_properties.py b/tests/test_section_properties.py index fc52baa..d10ca9d 100644 --- a/tests/test_section_properties.py +++ b/tests/test_section_properties.py @@ -279,7 +279,18 @@ def test_backbone_is_compute_mkappa_and_the_staircase_has_the_bounds( onset = min(s.onset_curvature_1_m for s in held.armour) full = max(s.full_slip_curvature_1_m for s in held.armour) assert full < held.kappa_1_m[-1] - stick = high <= onset + # The reported onset is the neutral-axis limit. With the signed capstan + # bound the compression side slips first, at m = min_psi (1 - exp(-lam + # psi)) / (lam sin psi) = 1 - 3 lam^2 / 8 + O(lam^3) times it (brute force + # here), so the pure stick steps end there. + m = 1.0 + psi = np.linspace(1e-7, np.pi / 2, 200_001) + specs = cx.cable_to_mkappa_specs(single, 50e3) + for s, spec in zip(held.armour, specs, strict=True): + lam = s.mu * abs(np.sin(spec.lay_angle_rad)) + m = min(m, float(np.min(-np.expm1(-lam * psi) / (lam * np.sin(psi))))) + assert 0.99 < m < 1.0 + stick = high <= m * onset slip = low >= full assert stick.any() and slip.any() np.testing.assert_allclose(tangent[stick], held.ei_stick_Nm2, rtol=1e-9) diff --git a/tests/test_sectional_mechanics_inputs.py b/tests/test_sectional_mechanics_inputs.py index 9537f6f..f9446da 100644 --- a/tests/test_sectional_mechanics_inputs.py +++ b/tests/test_sectional_mechanics_inputs.py @@ -89,9 +89,22 @@ def test_direction_hold_fraction_must_lie_in_the_unit_interval(fraction): def test_threshold_is_the_fraction_of_the_onset_curvature(): + """``f m(lam) kappa_on``: ``m`` is the compression-side first slip. + + The compression bound ``sigma0 (1 - exp(-lam psi))`` reaches the stick + stress ``k r kappa sin psi`` first at ``kappa_on min_psi (1 - exp(-lam + psi)) / (lam sin psi)``; expanding to second order, + ``1 - lam psi / 2 + (1 + lam^2) psi^2 / 6``, its minimum lies at + ``psi = 3 lam / (2 (1 + lam^2))`` with the value ``1 - 3 lam^2 / 8``. + Here the minimum is found by brute force on a fine grid. + """ layer = _spec() + lam = layer.mu * abs(math.sin(layer.lay_angle_rad)) + psi = np.linspace(1e-7, math.pi / 2, 2_000_001) + m = float(np.min(-np.expm1(-lam * psi) / (lam * np.sin(psi)))) + assert m == pytest.approx(1 - 3 * lam**2 / 8, abs=lam**3) assert direction_threshold_curvature(layer, 0.25) == pytest.approx( - 0.25 * slip_onset_curvature(layer), rel=1e-15 + 0.25 * m * slip_onset_curvature(layer), rel=1e-11 ) diff --git a/tests/test_shared_wire_slip.py b/tests/test_shared_wire_slip.py index f230177..f69690a 100644 --- a/tests/test_shared_wire_slip.py +++ b/tests/test_shared_wire_slip.py @@ -46,19 +46,25 @@ def test_fixed_plane_reversal_and_zero_hold_match_independent_plastic_strain( c, s = math.cos(layer.lay_angle_rad), math.sin(layer.lay_angle_rad) stiffness = layer.xi * layer.E_wire_Pa * c**2 width = 2 * math.pi * layer.r_helix_m / layer.n_wires - cap = ( + sigma0 = ( layer.contact_pressure_Pa * width * c * layer.r_helix_m / (layer.A_wire_m2 * s**2) - * np.expm1(layer.mu * s * np.arcsin(np.abs(np.cos(phi - angle)))) ) + # Signed capstan ([Papailiou1997] Eqs. 11, 14 with the signed helix + # angle): a rising stress is bounded by sigma0 (exp(lam psi) - 1), a + # falling one by -sigma0 (1 - exp(-lam psi)), whichever side the wire is + # on; psi depends on the bending plane only, not on the sign of kappa. + lam_psi = layer.mu * s * np.arcsin(np.abs(np.cos(phi - angle))) + upper = sigma0 * (np.exp(lam_psi) - 1) + lower = sigma0 * (1 - np.exp(-lam_psi)) plastic = np.zeros(layer.n_wires) expected = [] for curvature in kappa: strain = curvature * layer.r_helix_m * np.cos(phi - angle) - stress = np.clip(stiffness * (strain - plastic), -cap, cap) + stress = np.clip(stiffness * (strain - plastic), -lower, upper) plastic = strain - stress / stiffness expected.append(stress) np.testing.assert_allclose(result.stress_Pa.T, expected, rtol=2e-12, atol=2e-7) diff --git a/tests/test_signed_capstan.py b/tests/test_signed_capstan.py new file mode 100644 index 0000000..ff1f7aa --- /dev/null +++ b/tests/test_signed_capstan.py @@ -0,0 +1,160 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2026 Jae Hoon Seo, SMI Lab, Inha University +"""Signed capstan bound of the armour friction stress ([Papailiou1997] Eqs. 9-15). + +The capstan growth acts on the wire's own force: a wire whose force rises +presses harder on its support, a wire whose force falls loses normal load. +With ``lam = mu |sin a|`` and ``psi`` the distance from the neutral axis, the +admissible friction stress is ``-sigma0 (1 - exp(-lam psi)) <= sigma <= +sigma0 expm1(lam psi)``, and a full reversal spans ``2 sigma0 sinh(lam psi)``. +""" + +from __future__ import annotations + +import math + +import numpy as np +import pytest + +from cablexsec.mechanics.distributed_friction import ( + HAVE_NUMBA, + distributed_friction_history, +) +from cablexsec.mechanics.fast_slip import wire_friction_stress +from cablexsec.mechanics.mkappa import HelicalLayerSpec +from cablexsec.mechanics.papailiou import ( + _compression_onset_factor, + direction_threshold_curvature, + slip_onset_curvature, + wire_slip_history, + wire_slip_stress_bounds, +) + +pytestmark = pytest.mark.analytical_sanity +compiled = pytest.mark.skipif( + not HAVE_NUMBA, reason="long histories need the compiled kernel" +) + + +def _spec(alpha_deg: float = 35.0, mu: float = 0.3, n: int = 72) -> HelicalLayerSpec: + return HelicalLayerSpec( + n_wires=n, + r_helix_m=0.05, + lay_angle_rad=math.radians(alpha_deg), + E_wire_Pa=207e9, + A_wire_m2=math.pi * 0.005**2 / 4, + xi=0.6, + mu=mu, + F_n_axi_N=0.0, + contact_pressure_Pa=1.0e6, + normal_load_is_line=True, + ) + + +def _sigma0(spec: HelicalLayerSpec) -> float: + a = spec.lay_angle_rad + width = 2 * math.pi * spec.r_helix_m / spec.n_wires + return ( + spec.r_helix_m + * spec.contact_pressure_Pa + * width + * math.cos(a) + / (spec.A_wire_m2 * math.sin(a) ** 2) + ) + + +def _reversal(spec: HelicalLayerSpec, multiple: float = 50.0, steps: int = 400): + amp = multiple * slip_onset_curvature(spec) + up = np.linspace(0.0, amp, steps + 1)[1:] + down = np.linspace(amp, -amp, 2 * steps + 1)[1:] + kx = np.concatenate([up, down]) + return kx, np.zeros_like(kx), steps - 1 + + +def test_bounds_are_papailiou_signed_closed_form(): + spec = _spec() + lam = spec.mu * math.sin(spec.lay_angle_rad) + psi = np.arcsin(np.abs(np.cos(spec.phi_wires))) + upper, lower = wire_slip_stress_bounds(spec, 0.0) + s0 = _sigma0(spec) + assert upper == pytest.approx(s0 * np.expm1(lam * psi), rel=1e-12, abs=1e-6) + assert lower == pytest.approx(s0 * -np.expm1(-lam * psi), rel=1e-12, abs=1e-6) + assert np.all(lower <= upper) + + +def test_full_slip_reversal_range_is_two_sinh(): + spec = _spec() + lam = spec.mu * math.sin(spec.lay_angle_rad) + s0 = _sigma0(spec) + kx, ky, peak = _reversal(spec) + stress = wire_slip_history(spec, kx, ky).stress_Pa + psi = np.arcsin(np.abs(np.cos(spec.phi_wires))) + tension = np.cos(spec.phi_wires) > 1e-9 + compression = np.cos(spec.phi_wires) < -1e-9 + # At the first peak: tension side at the tension bound, compression side + # at the (smaller) compression bound. + assert stress[tension, peak] == pytest.approx( + s0 * np.expm1(lam * psi[tension]), rel=1e-9 + ) + assert stress[compression, peak] == pytest.approx( + s0 * np.expm1(-lam * psi[compression]), rel=1e-9 + ) + loaded = tension | compression + span = stress[loaded, peak] - stress[loaded, -1] + expected = ( + 2 * s0 * np.sinh(lam * psi[loaded]) * np.sign(np.cos(spec.phi_wires[loaded])) + ) + assert span == pytest.approx(expected, rel=1e-9) + + +def test_compiled_kernel_is_the_reference(): + spec = _spec(n=61) + t = np.linspace(0, 6, 900) + kon = slip_onset_curvature(spec) + kx = 12 * kon * np.sin(1.3 * t) * np.cos(0.2 * t) + ky = 7 * kon * np.sin(0.7 * t) + reference = wire_slip_history(spec, kx, ky).stress_Pa + # Round-off only: the reference's vectorised NumPy arithmetic and the + # scalar kernel differ by a few ulp on some builds (2e-15 of the peak). + fast = wire_friction_stress(spec, kx, ky) + assert np.abs(fast - reference).max() <= 1e-12 * np.abs(reference).max() + + +def test_small_friction_limit_is_linear_coulomb(): + spec = _spec(mu=1e-6) + upper, lower = wire_slip_stress_bounds(spec, 0.3) + assert lower == pytest.approx(upper, rel=1e-5, abs=1e-12) + + +@compiled +def test_distributed_full_slip_field_closed_form(): + # Rigid-stick-independent full-slip field of the distributed model with + # the signed bound: dn/dphi = +-(g + lam n) from the extreme fibres and a + # zero pitch mean give sigma = sigma0 (C exp(lam phi) - 1), + # C = lam pi / (2 sinh(lam pi / 2)), phi from the neutral axis. + spec = _spec(alpha_deg=45.0, mu=0.3, n=60) + lam = spec.mu * math.sin(spec.lay_angle_rad) + kon = slip_onset_curvature(spec) + kx = np.linspace(0.0, 300 * kon, 3001)[1:] + d = distributed_friction_history(spec, kx, np.zeros_like(kx), nodes_per_pitch=600) + phi = np.pi / 2 - np.abs(np.angle(np.exp(1j * spec.phi_wires))) + c = lam * math.pi / (2 * math.sinh(lam * math.pi / 2)) + expected = _sigma0(spec) * (c * np.exp(lam * phi) - 1) + assert np.abs(d.stress_Pa[:, -1] - expected).max() <= 1e-5 * np.abs(expected).max() + assert abs(d.stress_Pa[:, -1].mean()) <= 1e-4 * _sigma0(spec) + + +@pytest.mark.parametrize("lam", [0.02, 0.1, 0.2]) +def test_compression_onset_factor(lam): + m = _compression_onset_factor(lam) + assert m == pytest.approx(1 - 3 * lam**2 / 8, abs=2 * lam**3) + psi = np.linspace(1e-4, math.pi / 2, 20001) + assert m <= np.min(-np.expm1(-lam * psi) / (lam * np.sin(psi))) + 1e-12 + + +def test_no_wire_slips_below_the_hold_threshold(): + spec = _spec(n=720) + kth = direction_threshold_curvature(spec, 1.0) + kappa = np.linspace(0.0, kth * (1 - 1e-9), 400) + count = wire_slip_history(spec, kappa, np.zeros_like(kappa)).slipping_count + assert count.max() == 0 diff --git a/tests/test_validation_report.py b/tests/test_validation_report.py index a0577dc..3d12e14 100644 --- a/tests/test_validation_report.py +++ b/tests/test_validation_report.py @@ -37,9 +37,12 @@ def incorrect_bending(*args, **kwargs): def test_bending_work_report_compares_identical_measured_paths_and_units(): row = next(r for r in run_validation._rows() if r.ident == "BM1-loop") assert "matched experimental" in row.target - assert "70.4 J/m vs measured 62.3 J/m" in row.value - assert "12.9%" in row.value - assert row.status == "FAIL" # The existing 10% threshold is not relaxed. + # Signed capstan bound: 67.8 J/m (+8.8 %; the former symmetric cap gave + # 70.4 J/m, +12.9 %). The 10 % threshold is unchanged. + assert "67.8 J/m vs measured 62.3 J/m" in row.value + assert "difference 8.8%" in row.value + assert "within 10%" in row.target + assert row.status.startswith("PASS") _XSEC = run_validation.Row( diff --git a/tests/test_witz1996_benchmark.py b/tests/test_witz1996_benchmark.py index f604109..60ce3a1 100644 --- a/tests/test_witz1996_benchmark.py +++ b/tests/test_witz1996_benchmark.py @@ -59,8 +59,10 @@ def test_identify_on_0_bar_predict_300_bar_stays_a_registered_failure(rows): assert row.target == ( "width within [1692, 2489] N·m and energy within 15% of 3125 J/m" ) - # The live identification reproduces the declared (identified) value. - assert "p0 1.037 MPa (YAML 1.037)" in row.value - assert "300-bar width 1383 vs [1990, 2164] N·m (-30.5% / -36.1%)" in row.value - assert "energy 2732 J/m (-12.6%)" in row.value + # The live identification reproduces the declared (identified) value, + # re-identified with the signed capstan bound (1.037 MPa with the former + # symmetric cap, which gave width 1383 N·m and energy -12.6 %). + assert "p0 1.071 MPa (YAML 1.071)" in row.value + assert "300-bar width 1356 vs [1990, 2164] N·m (-31.8% / -37.3%)" in row.value + assert "energy 2682 J/m (-14.2%)" in row.value assert row.status == "FAIL" diff --git a/validation/scripts/check_core_friction.py b/validation/scripts/check_core_friction.py index b441bed..87f22a2 100644 --- a/validation/scripts/check_core_friction.py +++ b/validation/scripts/check_core_friction.py @@ -88,7 +88,11 @@ def verification_checks() -> dict[str, float]: model = build_core_friction(cable, JANOCHA, 50e3, contact_model="solved") q, b, r = model.loads.total_N_per_m, model.lay_angle_rad, model.r_offset_m a = model.mu_effective * math.sin(b) - integral = (a * math.exp(a * math.pi / 2) + 1.0) / (1.0 + a * a) - 1.0 + # Full slip after a reversal, signed capstan bound: the cores of one side + # at -sigma0 (1 - exp(-a psi)), the others at sigma0 expm1(a psi); the + # moment integrand is their half sum, sinh(a psi) sin(psi), and + # int_0^{pi/2} sinh(a psi) sin(psi) dpsi = a cosh(a pi/2) / (1 + a^2). + integral = a * math.cosh(a * math.pi / 2) / (1.0 + a * a) expected = ( 2 / math.pi * model.n_cores * q * r * r * math.cos(b) ** 2 / math.sin(b) ** 2 ) diff --git a/validation/scripts/run_validation.py b/validation/scripts/run_validation.py index 2aa9503..7772d9a 100644 --- a/validation/scripts/run_validation.py +++ b/validation/scripts/run_validation.py @@ -980,7 +980,9 @@ def _rows() -> list[Row]: # GATE B (distinguishing physics): slip starts at the NEUTRAL AXIS, per the # Raoof (1989b,1992) strain-gauge observation and Papailiou — not the extreme # fibre (which the retired Coulomb loop predicts). The first-to-slip wire's - # bending lever |cos(φ−φ_bend)| must be ≈ 0 (neutral axis), not ≈ 1. + # bending lever |cos(φ−φ_bend)| must be ≈ 0 (neutral axis), not ≈ 1. With + # the signed capstan bound the first slip sits on the compression side at + # psi ≈ 3 lam / 2 (lam = mu |sin a|), so |cos| is small but not zero. name_b = next(iter(sc_stress.phi_deg)) kc_b = sc_stress.kappa_c_1_m[name_b] phi_b = sc_stress.phi_deg[name_b] @@ -991,8 +993,9 @@ def _rows() -> list[Row]: Row( "1", "slip-onset", - "First-to-slip wire at neutral axis " - "(|cos| → 0; Raoof/Papailiou, not extreme-fibre loop)", + "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", f"|cos|={lever_first:.3f}", "PASS" if lever_first < 0.2 else "FAIL", diff --git a/validation/validation_report.md b/validation/validation_report.md index e8a11c9..a8f077c 100644 --- a/validation/validation_report.md +++ b/validation/validation_report.md @@ -18,14 +18,14 @@ 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.7e-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; 1.3e-15; 1.1e-04; 4.8e-06; 5.2e-14 | 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; 4.4e-16; 1.0e-04; 5.0e-06; 5.4e-14 | 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 | A11 | M-κ energy closure (loop area vs closed form) | < 0.1% | 0.082% | PASS | | 1 | σ_B | Radial-fibre bending vs Ménard Eq. 14 (φ=0 from extension side) | < 1e-6% | 0.00e+00% | PASS | | 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 | slip-onset | First-to-slip wire at neutral axis (|cos| → 0; Raoof/Papailiou, not extreme-fibre loop) | |cos| < 0.2 | |cos|=0.000 | 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:3.16e-14% / κ∞:5.99e-13% | PASS | | 1 | QP-KKT | Concentric contact max|normal line force times gap| (common extension, twist and radial equilibrium) | < 1e-8 N | 1.9e-13 (q>=0: True) | PASS | | 1 | QP-Lamé | Isolated cylinder surface compliances vs compound-cylinder shrink-fit closed form | < 1e-6 | 1.3e-16 | PASS | @@ -47,22 +47,22 @@ Every row is computed from published data or closed-form references in this repo | 2 | TQ-KL | Torque-balance outer helix angle vs Kim and Lee (2017) beam FE, 1+6+12 strand, seven pairs [deg] | abs. difference <= 0.3 | -0.26 to -0.06 | PASS | | 2 | TQ-UJ | Fixed-end torque per kN vs Utting and Jones (1987) Part II Table 1, six strands: model/Machida-Durelli theory; model/test | 1.04-1.07; 1.00-1.15 | 1.051-1.059; 1.067-1.136 | PASS | | 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 after published +/-0.05 calibration, four-point test arrangement (Sec. 3: M = Fa L1, LVDT parabola) | ordered RMSE < 5%; matched experimental cycle work within 10% | model -548/548 N·m and W=70.4 J/m vs measured 62.3 J/m; measured -502/526 N·m; ordered RMSE 3.16%; matched experimental work difference 12.9% | FAIL | -| 2 | BM1-loop-uniform | Ménard +/-0.10 M-kappa after published +/-0.05 calibration, uniform curvature (pre-T1 basis, kept for continuity) | ordered RMSE < 5%; matched experimental cycle work within 10% | model -548/548 N·m and W=70.4 J/m vs measured 62.3 J/m; measured -502/526 N·m; ordered RMSE 3.16%; matched experimental work difference 12.9% | FAIL | +| 2 | BM1-loop | Ménard +/-0.10 M-kappa after published +/-0.05 calibration, four-point test arrangement (Sec. 3: M = Fa L1, LVDT parabola) | ordered RMSE < 5%; matched experimental cycle work within 10% | model -541/541 N·m and W=67.8 J/m vs measured 62.3 J/m; measured -502/526 N·m; ordered RMSE 2.71%; matched experimental work difference 8.8% | PASS (published calibration transfer) | +| 2 | BM1-loop-uniform | Ménard +/-0.10 M-kappa after published +/-0.05 calibration, uniform curvature (pre-T1 basis, kept for continuity) | ordered RMSE < 5%; matched experimental cycle work within 10% | model -541/541 N·m and W=67.8 J/m vs measured 62.3 J/m; measured -502/526 N·m; ordered RMSE 2.71%; matched experimental work difference 8.8% | PASS (published calibration transfer) | | 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 | -| 2 | WITZ-ID | Witz (1996) 300-bar loop predicted after p0 identified on the 0-bar width at kappa = 0 (mu = 0.10 declared) | width within [1692, 2489] N·m and energy within 15% of 3125 J/m | p0 1.037 MPa (YAML 1.037); 0-bar energy 1114 vs 1118 J/m; 300-bar width 1383 vs [1990, 2164] N·m (-30.5% / -36.1%), energy 2732 J/m (-12.6%) | FAIL | -| 2 | SV11-PLANE | Sævik (2011) Figs 17-23, 14 load cases: normalised inner-armour axial stress range at the 8 bending-plane FBG stations, termination-corrected prediction, mu = 0.20 declared | median R in [0.85, 1.18] and >= 12 of 14 R in [0.70, 1.43] (R = mean predicted / mean measured, bending-plane stations) | median R 1.65 (0.45-3.65), 3 of 14 in band; sectional median 1.03 (0.45-2.28), 11 of 14 | FAIL | -| 2 | SV11-GJ | Gjøsteen et al. (2027) Figs 27-35, LC 14 at +-8 deg: absolute axial range at stations 2.1, 2.5, 3.1, 3.5, termination-corrected, mu = 0.20 | mean ratio in [0.72, 1.38] | 1.90 (sectional 1.32); static stress 271 MPa | FAIL | +| 2 | WITZ-ID | Witz (1996) 300-bar loop predicted after p0 identified on the 0-bar width at kappa = 0 (mu = 0.10 declared) | width within [1692, 2489] N·m and energy within 15% of 3125 J/m | p0 1.071 MPa (YAML 1.071); 0-bar energy 1114 vs 1118 J/m; 300-bar width 1356 vs [1990, 2164] N·m (-31.8% / -37.3%), energy 2682 J/m (-14.2%) | FAIL | +| 2 | SV11-PLANE | Sævik (2011) Figs 17-23, 14 load cases: normalised inner-armour axial stress range at the 8 bending-plane FBG stations, termination-corrected prediction, mu = 0.20 declared | median R in [0.85, 1.18] and >= 12 of 14 R in [0.70, 1.43] (R = mean predicted / mean measured, bending-plane stations) | median R 1.62 (0.45-3.59), 3 of 14 in band; sectional median 1.00 (0.45-2.17), 11 of 14 | FAIL | +| 2 | SV11-GJ | Gjøsteen et al. (2027) Figs 27-35, LC 14 at +-8 deg: absolute axial range at stations 2.1, 2.5, 3.1, 3.5, termination-corrected, mu = 0.20 | mean ratio in [0.72, 1.38] | 1.80 (sectional 1.24); static stress 271 MPa | FAIL | | 2 | 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: `1026 passed, 3109 deselected` -- independent_method: `70 passed, 4065 deselected` -- full_scale: `26 passed, 4108 deselected` +- analytical_sanity: `1035 passed, 3111 deselected` +- independent_method: `70 passed, 4076 deselected` +- full_scale: `27 passed, 4119 deselected` Run `pytest -m ` to reproduce each group.