diff --git a/CHANGELOG.md b/CHANGELOG.md index 39649ca..8398a3e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,19 @@ All notable changes to CableXSec are recorded in this file. The format follows ### Added +- Laid filler profiles in the core stick-slip law: `CoreFrictionSpec(filler_profiles=True)` (and + `mu_filler_profile`) turns the interstitial filler annulus into three profiles laid with the + cores that stick and slip with the same direction-tied cap. Their radius `√(J_f/A_f)` and lay + angle come from the annulus less the core circles, so the stuck profiles add `ξ_f E J_f cos³β_f + / 2`; each carries the ring force on both faces and has its own Yun `ξ_f`. They form their own + slip-scale group (`filler_profiles`) in the exported bending law and are reported by the core + lay stage of the Section properties analysis. Off by default. Checked by validation row CFW + (profile full-slip moment against the closed form, μ = 0 bitwise, stick tangent against + `EI_max + E J_f cos³β_f / 2`). +- `CoreFrictionSpec(central_filler=...)` selects the support of the inward core loads in the + bounded core contact estimate: the neighbouring cores of a touching trefoil (default) or a + central filler. + - The armour friction coefficient can depend on the contact pressure: `FrictionLaw(pressure_factor=((P, f), ...))`, a piecewise-linear factor `f(P)` on the coefficient, clamped at the table ends, evaluated at the local friction-setting pressure @@ -186,6 +199,13 @@ All notable changes to CableXSec are recorded in this file. The format follows stale without changing a gate. CI checks the committed report before the coverage run, so a stale report fails within about 15 minutes instead of after the 45-minute coverage run. +- Bounded core contact loads of the laid-core law: the inward resultant of a core (capstan load + plus its share of the ring line force) is now reacted by its two neighbours, whose contact + forces sum to the resultant over `sin(π/n)`, besides the ring share on the outer face. The + earlier estimate put both parts on one contact and left out the reaction. On the 66 kV + template at 50 kN the core load rises from 9.6 to 16.4 kN/m and the loop half-height with core + friction from 0.19 to 0.25 kN·m (bounded; the solved route is unchanged). Results without + `core_friction` are unchanged. - The distributed helix friction model (`friction_model="distributed"`, and `"auto"` on non-planar paths) runs about three times faster on the 66 kV template. `compute_fatigue` on one thread, warm, an hour of the 66 kV template at 10 Hz (36 001 samples, both armour diff --git a/doc/benchmarks.md b/doc/benchmarks.md index d494723..2224729 100644 --- a/doc/benchmarks.md +++ b/doc/benchmarks.md @@ -88,7 +88,7 @@ model) is the full construction. | 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; range (b) with core friction FAIL (+18.9 %) | +| Laid-core friction (gap R1b), Ménard and Cartraud (2023) six ranges | M | Moment and work errors increase; range (b) with core friction FAIL (+27.2 %) | | 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) | @@ -133,7 +133,8 @@ 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; 4.4e-16; 1.0e-4; 5.0e-6; 5.4e-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; 1.0e-15; 1.0e-4; 5.0e-6; 5.0e-14 | PASS | +| CFW | A | Laid-core contact statics (wedged trefoil and central filler, with and without a filler): radial equilibrium of one core; filler profiles: μ = 0 gives the armour-only loop; full-slip profile moment vs closed form; stick tangent vs `EI_max + E J_f cos³β_f / 2` | < 1e-12 rel.; 0 N·m; < 5e-3; < 1e-9 | 9.5e-17; 0; 1.0e-4; 7.8e-16 | 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 | @@ -286,8 +287,8 @@ registered before the runs; nothing was refitted. | 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.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) | +| 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 % | 5.15 %; +27.2 % | FAIL with the cores | +| Ménard (2023) ranges (a), (c)–(f), work | M | — | +47.2, +44.7, +32.0, +2.2, −3.6 % | +63.1, +59.8, +46.2, +19.3, +12.6 % | (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 @@ -298,17 +299,22 @@ registered before the runs; nothing was refitted. - **Ménard.** The published pressure (0.3 MPa) was calibrated with friction on every contact of the source FE, so the armour-only transfer already carries the cores' share of the work; adding the cores without - recalibration raises the work on every range. The bounded core load is - 24.8 kN/m per core against 16.5 kN/m reported by the source FE. + recalibration raises the work on every range. The bounded ring load on a + core's outer face is 24.8 kN/m against the 16.5 kN/m per core that the + source FE reports (about a third of its 46 kN/m inner-sheath load); with + the neighbour reactions of the wedged trefoil a core carries 53.3 kN/m on + all its contacts. - **Core lay stage, whole report.** `validation/scripts/run_validation.py --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 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. + insulation shear, no internal ring slip, wedged trefoil) and writes + nothing. Rows that move: BM1-loop and BM1-loop-uniform ordered RMSE 2.71 % + to 5.15 %, work +8.8 % to +27.2 % (PASS to FAIL; before the trefoil wedge + 3.88 % and +18.9 %); CF, CFW and MK-Tcyc read FAIL because the stage also + switches their armour-only references; MX-scale's tension-cycle check on + the Ménard cable reads 2.36 against at most 1.25 (the Ménard core group + then joins the scaled law). 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. diff --git a/doc/file_formats.md b/doc/file_formats.md index 2851b43..276af90 100644 --- a/doc/file_formats.md +++ b/doc/file_formats.md @@ -590,7 +590,7 @@ scale is still written as version 1, byte for byte as before. The object holds: | `scale` | single scale `s`, one row per tension, one column per pressure (one column without a pressure axis) | | `dscale_dtension_1_per_N` | `∂s/∂T` [1/N], same shape | | `dscale_dexternal_pressure_1_per_Pa` | `∂s/∂p_e` [1/Pa], same shape (pressure axis only) | -| `groups` | one object per friction group: `name` (the armour layer, or `laid_cores`), `kind` (`armour_layer` or `laid_cores`), `reference_cap_Nm`, the group's `stiffness_Nm2` and reference `yield_curvature_1_m`, its `scale` `ρ_g` and the derivatives `dscale_dtension_1_per_N` and `dscale_dexternal_pressure_1_per_Pa` | +| `groups` | one object per friction group: `name` (the armour layer, `laid_cores` or `filler_profiles`), `kind` (`armour_layer`, `laid_cores` or `filler_profiles`), `reference_cap_Nm`, the group's `stiffness_Nm2` and reference `yield_curvature_1_m`, its `scale` `ρ_g` and the derivatives `dscale_dtension_1_per_N` and `dscale_dexternal_pressure_1_per_Pa` | At a state with group scales `ρ_g` the law is `M = ei_slip_Nm2 κ + Σ k_i e_i` over all group elements, with every element of group `g` updated by diff --git a/doc/global_local_guide.md b/doc/global_local_guide.md index b3aa020..9cf590f 100644 --- a/doc/global_local_guide.md +++ b/doc/global_local_guide.md @@ -420,8 +420,8 @@ bounds scale by `ρ` therefore obeys `M(κ; ρ) = ρ M(κ/ρ; 1)` over any curva capstan bound included, and its Iwan elements keep their stiffnesses `k_i` while their yield curvatures become `ρ κ_y,i`. With `slip_scale=True` the export carries this form as `BendingLawExport.slip_scale`, a `SlipScaleTable`: -- the law at a reference tension split into friction groups, one per structural armour layer and `laid_cores` for - the core lay stage, each with its elements (`k_i`, `κ_y,i`), plus the full-slip stiffness `EI_slip`; +- the law at a reference tension split into friction groups, one per structural armour layer, `laid_cores` for + the core lay stage and `filler_profiles` for its laid filler profiles, each with its elements (`k_i`, `κ_y,i`), plus the full-slip stiffness `EI_slip`; - the cap `R_g` of every group (its planar full-slip friction moment) over a table of tensions and, optionally, external pressures, the group scale `ρ_g = R_g / R_g,ref`, the single cap-weighted scale `s = Σ R_g / Σ R_g,ref`, and their derivatives `∂/∂T` and `∂/∂p_e` (central differences of the contact model, diff --git a/doc/howto.md b/doc/howto.md index cc9cc43..e50fa77 100644 --- a/doc/howto.md +++ b/doc/howto.md @@ -146,12 +146,12 @@ tension and curvature, for a section stress map. ```text core state: frictional layer kind min MPa max MPa use limit -cu_conductor annulus -28.7 107.1 0.893 yielding +cu_conductor annulus -34.9 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.1 309.0 - follows the section -hdpe_core_sheath annulus -2.0 2.5 0.037 strain limit +cu_screen annulus -249.7 309.0 - follows the section +hdpe_core_sheath annulus -2.1 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 -71.4 152.2 0.221 yielding diff --git a/doc/local_analysis_guide.md b/doc/local_analysis_guide.md index d6eb22d..d7ac268 100644 --- a/doc/local_analysis_guide.md +++ b/doc/local_analysis_guide.md @@ -889,9 +889,25 @@ print(core.loads, core.xi, core.mu_effective, core.stick_EI_Nm2) wires, so biaxial histories work (`cablexsec.mechanics.core_friction.core_friction_history`). - Normal loads: the solved trefoil contact forces (`contact_model="solved"`) - or a bounded estimate (core capstan plus one third of the line force inside - the innermost armour, winding stress included). They are held fixed during + or a bounded estimate. In the estimate each core carries its capstan load + `C` and one third of the line force `R` inside the innermost armour (winding + stress included) on its outer face; the inward resultant `C + R/3` is + reacted by the two neighbouring cores of a touching trefoil, whose contact + forces sum to `(C + R/3)/sin 60°` (default), or radially by a central + filler (`CoreFrictionSpec(central_filler=True)`). The solved model reads the + core support of the solved radial state. The loads are held fixed during bending. +- Filler profiles (`CoreFrictionSpec(filler_profiles=True)`, + `mu_filler_profile`): the non-structural interstitial filler annulus (a + structural one is refused: it already bends in `EI_min`) becomes three laid + profiles (the cores' pitch) that stick and slip like the cores. Their + effective radius `r_f = √(J_f/A_f)` comes from the area and polar moment of + the annulus less the core circles, so that the stuck profiles add + `ξ_f E J_f cos³β_f / 2`; each carries the ring force `R/3` on both faces + (`2R/3`; solved: the filler–ring and filler–core forces shared among the + profiles) and has its own Yun `ξ_f` (contact penalty and shear of half the + mean filler depth). They carry no share of the tension. The exported + bending law gives them their own slip-scale group, `filler_profiles`. - Stick coefficient ξ (Yun form): contact penalty `interface_stiffness_Pa_per_m` (default rigid) in series with the shear of the polymer layers inside the core (`core_shear=True`). With μ → ∞ and a rigid contact the tangent is diff --git a/doc/template_66kv.md b/doc/template_66kv.md index b39db19..29c14c4 100644 --- a/doc/template_66kv.md +++ b/doc/template_66kv.md @@ -119,9 +119,9 @@ th = cx.compute_thermal(cable, current_A=1093.0, conductor_area_m2=630e-6, | GJ | 131.3 kN·m² | 152 kN·m² at 50 kN, Janocha 2.4 | −14 %; CableXSec GJ is the extension-only lay term, without polymer and core torsion | | 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.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 | +| M at 0.2 1/m, 50 kN loop | 4.31 / 4.28 kN·m (bounded / solved); 4.44 / 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.25 / 0.18 kN·m with core friction | about 1 kN·m, Fig. 6 | Core friction (μ 0.46) adds 0.10–0.13 kN·m; still about 4 times low | +| Moment at slip onset, 10/100/200 kN | 0.23 / 0.43 / 0.66 kN·m at 0.01 1/m; 0.26 / 0.70 / 1.19 kN·m with core friction (bounded) | about 5.5 / 9.5 / 12 kN·m, Fig. 12b | Same cause; 10 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 | | @@ -177,9 +177,9 @@ 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.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 | +| Core normal load per core | — | 16.4 / 12.2 kN/m (bounded: wedged trefoil) | not published | — | +| Loop half-height at κ = 0 | 0.112 / 0.081 kN·m | 0.246 / 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.44 / 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.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 | @@ -529,8 +529,8 @@ and the mass carry the template's known differences (Section 5, items 1 and 1. **Friction outside the armour.** Closed in part by gap R1b (Section 4.1): the cores and resolved conductor rings now have an optional stick–slip - law. With the tension-induced contact it adds 0.08–0.10 kN·m to the - half-height at 50 kN; slip-onset moments remain 12 to 22 times lower than + law. With the tension-induced contact it adds 0.10–0.13 kN·m to the + half-height at 50 kN; slip-onset moments remain 10 to 22 times lower than Fig. 12b, and the full-slip EI is unchanged. The published loops need either an initial core contact state about nine times the tension-induced one or a stiffer component bending than the template assumes; neither is diff --git a/src/cablexsec/analysis/bending_law.py b/src/cablexsec/analysis/bending_law.py index b6ac918..164b6ac 100644 --- a/src/cablexsec/analysis/bending_law.py +++ b/src/cablexsec/analysis/bending_law.py @@ -112,6 +112,7 @@ __all__ = [ "CORE_GROUP", + "FILLER_GROUP", "BendingLawExport", "IwanBendingLaw", "SlipScaleTable", @@ -127,6 +128,10 @@ #: Name of the friction group of the laid-core stage in a :class:`SlipScaleTable`. CORE_GROUP = "laid_cores" +#: Name of the friction group of the laid filler profiles in a +#: :class:`SlipScaleTable` (``CoreFrictionSpec(filler_profiles=True)``). +FILLER_GROUP = "filler_profiles" + #: Relative step of the central differences of the group caps. _DIFFERENCE_STEP = 1e-4 @@ -307,8 +312,9 @@ class SlipScaleTable: r"""Slip scaling variable of an exported law over tension and pressure. The law at the reference state is split into friction groups: one per - structural armour layer (named after it) and :data:`CORE_GROUP` for the - laid-core stage. ``group_laws[g]`` holds the group's elements (fixed + structural armour layer (named after it), :data:`CORE_GROUP` for the + laid-core stage and :data:`FILLER_GROUP` for its laid filler profiles. + ``group_laws[g]`` holds the group's elements (fixed stiffness ``k_i``, reference yield curvature ``kappa_y,i``; no elastic part), ``ei_slip_Nm2`` the elastic full-slip stiffness. At a state with group caps ``R_g`` the law is the reference law with the yield curvatures @@ -337,7 +343,8 @@ class SlipScaleTable: Table external pressures [Pa], strictly ascending; ``None`` when the table runs over tension only (at the reference external pressure). group_names : tuple of str - Armour layer names, then :data:`CORE_GROUP` when the cores slip. + Armour layer names, then :data:`CORE_GROUP` when the cores slip and + :data:`FILLER_GROUP` when the filler profiles do. group_laws : tuple of IwanBendingLaw Elements of every group at the reference state (``ei_slip_Nm2`` 0). ei_slip_Nm2 : float @@ -657,7 +664,7 @@ def record(self) -> dict[str, Any]: ): item: dict[str, Any] = { "name": name, - "kind": "laid_cores" if name == CORE_GROUP else "armour_layer", + "kind": name if name in (CORE_GROUP, FILLER_GROUP) else "armour_layer", "reference_cap_Nm": float(self.reference_cap_Nm[g]), "stiffness_Nm2": law.stiffness_Nm2.tolist(), "yield_curvature_1_m": law.yield_curvature_1_m.tolist(), @@ -1213,7 +1220,7 @@ def _group_caps(law: _MkappaLaw) -> FloatArray: """Planar full-slip friction moment of every friction group [N m].""" values = [_friction_cap(spec) for spec in law.layers] if law.core_model is not None: - values.append(_friction_cap(law.core_model.population)) + values += [_friction_cap(spec) for spec in law.core_model.populations] return np.asarray(values, dtype=np.float64) @@ -1266,7 +1273,7 @@ def _slip_transitions( spread = 1.0 - law.progressive.spread * (1.0 - 1.0 / n) specs = [(spec, spread) for spec in law.layers] if law.core_model is not None: - specs.append((law.core_model.population, 1.0)) + specs += [(spec, 1.0) for spec in law.core_model.populations] out = [] for spec, factor in specs: if friction_law is not None and friction_law.pressure_dependent: @@ -1410,7 +1417,10 @@ def caps(tension: float, pressure: float | None) -> FloatArray: kappa, np.zeros_like(kappa), ) - backbones.append(history.moment_Nm[:, 0]) + backbones.append(history.core_moment_Nm[:, 0]) + if history.filler_moment_Nm is not None: + names.append(FILLER_GROUP) + backbones.append(history.filler_moment_Nm[:, 0]) reference_cap = caps(reference_N, reference_pressure) empty = [ name for name, value in zip(names, reference_cap, strict=True) if value <= 0 diff --git a/src/cablexsec/analysis/core_screen.py b/src/cablexsec/analysis/core_screen.py index 22e9468..a6a76b1 100644 --- a/src/cablexsec/analysis/core_screen.py +++ b/src/cablexsec/analysis/core_screen.py @@ -442,6 +442,9 @@ def compute_core_screen_fatigue( contact_tension_N, contact_model=contact_model, radial_state=radial_state, + central_filler=None + if core_friction is None + else core_friction.central_filler, ) p_core = loads.total_N_per_m / (2.0 * math.pi * r_out) limitations.append( diff --git a/src/cablexsec/analysis/section_properties.py b/src/cablexsec/analysis/section_properties.py index 65aeec2..0627595 100644 --- a/src/cablexsec/analysis/section_properties.py +++ b/src/cablexsec/analysis/section_properties.py @@ -375,7 +375,14 @@ class CoreSlip: """Curvature from which every core slips.""" stick_bending_stiffness_Nm2: float """Stick term of the cores ``xi 1/2 sum EA r_c² cos³ beta`` (and of - resolved internal wire rings) in the law [N m²].""" + resolved internal wire rings and filler profiles) in the law [N m²].""" + filler_line_load_N_per_m: float | None = None + """Normal load on both faces of one filler profile [N per m of cable]; + ``None`` without ``CoreFrictionSpec(filler_profiles=True)``.""" + filler_onset_curvature_1_m: float | None = None + """Neutral-axis limit of the filler-profile slip onset.""" + filler_full_slip_curvature_1_m: float | None = None + """Curvature from which every filler profile slips.""" @dataclass(frozen=True) @@ -1060,6 +1067,9 @@ def _spec_settings(spec: CoreFrictionSpec) -> dict[str, Any]: "interface_stiffness_Pa_per_m": stiffness if math.isfinite(stiffness) else None, "core_shear": spec.core_shear, "strand_slip": spec.strand_slip, + "central_filler": spec.central_filler, + "filler_profiles": spec.filler_profiles, + "mu_filler_profile": spec.filler_mu if spec.filler_profiles else None, } @@ -1094,6 +1104,7 @@ def _core_slip( f"the core lay stage needs one family of laid cores ({exc})" ) from exc population = model.population + fillers = model.fillers return CoreSlip( model.loads.total_N_per_m, model.loads.source, @@ -1102,6 +1113,9 @@ def _core_slip( slip_onset_curvature(population), full_slip_curvature(population), model.stick_EI_Nm2, + None if fillers is None else fillers.line_load_N_per_m, + None if fillers is None else slip_onset_curvature(fillers.population), + None if fillers is None else full_slip_curvature(fillers.population), ) @@ -1296,6 +1310,16 @@ def report(fraction: float, message: str) -> None: for slip in (*entry["armour"], *[c for c in (entry["cores"],) if c]) for value in (slip.onset_curvature_1_m, slip.full_slip_curvature_1_m) ] + nodes += [ + value + for entry in prepared + if entry["cores"] is not None + for value in ( + entry["cores"].filler_onset_curvature_1_m, + entry["cores"].filler_full_slip_curvature_1_m, + ) + if value is not None + ] kappa = _curvature_grid(kappa_max_1_m, n_points, nodes) results: list[SectionCaseResult] = [] diff --git a/src/cablexsec/api.py b/src/cablexsec/api.py index cb7d9fe..8a016b2 100644 --- a/src/cablexsec/api.py +++ b/src/cablexsec/api.py @@ -1022,6 +1022,13 @@ def compute_mkappa( if model.strand_rings else "" ) + + ( + f" and {model.fillers.n_profiles} laid filler profiles (stick " + f"coefficient {model.fillers.xi:.3f}, friction coefficient " + f"{model.fillers.mu:.3f})" + if model.fillers is not None + else "" + ) ) citations_extra = ("[Yun2020] (core xi)", "[KarlsenHusoy2026]") limitations_extra = ( diff --git a/src/cablexsec/io/global_export.py b/src/cablexsec/io/global_export.py index a60738b..7c90422 100644 --- a/src/cablexsec/io/global_export.py +++ b/src/cablexsec/io/global_export.py @@ -93,7 +93,15 @@ def _bending_source(result: SectionPropertiesResult, case: SectionCaseResult) -> f"{cores.mu:.3g}, stick coefficient {cores.xi:.3g}, contact line load " f"{cores.contact_line_load_N_per_m:.6g} N/m per core, slip from " f"{cores.onset_curvature_1_m:.6g} to {cores.full_slip_curvature_1_m:.6g} " - "1/m)" + "1/m" + + ( + "" + if cores.filler_line_load_N_per_m is None + else f"; filler profiles: line load {cores.filler_line_load_N_per_m:.6g}" + f" N/m per profile, slip from {cores.filler_onset_curvature_1_m:.6g} " + f"to {cores.filler_full_slip_curvature_1_m:.6g} 1/m" + ) + + ")" ) return ( "monotonic backbone of the Papailiou slip-front law of the armour " @@ -254,6 +262,16 @@ def section_properties_csv( "laid cores slip onset curvature [1/m]", "laid cores full slip curvature [1/m]", ] + with_fillers = any( + case.cores is not None and case.cores.filler_line_load_N_per_m is not None + for case in result.cases + ) + if with_fillers: + header += [ + "filler profiles line load per profile [N/m]", + "filler profiles slip onset curvature [1/m]", + "filler profiles full slip curvature [1/m]", + ] rows = [",".join(_csv_text(name) for name in header)] for case in result.cases: route = "solved section" if case.route == "solved" else "fixed radius" @@ -276,6 +294,20 @@ def section_properties_csv( _number(core.full_slip_curvature_1_m), ] ) + if with_fillers: + core = case.cores + cells += ( + ["", "", ""] + if core is None + or core.filler_line_load_N_per_m is None + or core.filler_onset_curvature_1_m is None + or core.filler_full_slip_curvature_1_m is None + else [ + _number(core.filler_line_load_N_per_m), + _number(core.filler_onset_curvature_1_m), + _number(core.filler_full_slip_curvature_1_m), + ] + ) rows.append(",".join(cells)) return _comment(lines) + "\n" + "\n".join(rows) + "\n" diff --git a/src/cablexsec/mechanics/core_friction.py b/src/cablexsec/mechanics/core_friction.py index c3f32f3..57f7ee1 100644 --- a/src/cablexsec/mechanics/core_friction.py +++ b/src/cablexsec/mechanics/core_friction.py @@ -70,21 +70,58 @@ ``contact_model="solved"``: the trefoil contact forces of the solved radial state (:class:`cablexsec.mechanics.radial_solution.BundleState`): two core--core contacts, the filler--core force and the direct core--ring force -of one core. Otherwise the bounded estimate: the inward capstan load of a -core ``N_core tan^2 beta / r_c`` per metre of cable, with ``N_core`` its -cable-axis tension share (as ``capstan_force_per_wire`` for an armour wire), -plus one third of the line force ``2 pi r P`` that the bounded pressure chain -applies inside the innermost armour, with the armour winding-stress increment -superposed as for the armour clamping. With an interstitial filler both parts -bear on the filler; without one the capstan part bears on the two neighbouring -cores, whose contact forces sum to the capstan load over ``sin(pi/n)`` -(1.155 times for a trefoil), and the ring part on the sheath. +of one core. Otherwise the bounded estimate. Each core carries two inward +loads per metre of cable: its capstan load ``C = N_core tan^2 beta / r_c`` +(``N_core`` its cable-axis tension share, as ``capstan_force_per_wire`` for an +armour wire) and its share ``R / n`` of the line force ``R = 2 pi r P`` that +the bounded pressure chain applies inside the innermost armour (the armour +winding-stress increment superposed as for the armour clamping). ``R / n`` +reaches the core on its outer face, through the filler or directly from the +ring. The inward resultant ``F = C + R / n`` is reacted on the inner side of +the core: + +* without a central filler (``CoreFrictionSpec.central_filler`` ``None`` or + ``False``, the default) by the two neighbouring cores of a touching + trefoil, whose contact normals lie ``pi/2 - pi/n`` off the radial + direction, so that the two contact forces sum to ``F / sin(pi/n)`` + (1.155 ``F`` for three cores; two cores touch along the radial line); +* with a central filler (``central_filler=True``) by that filler, radially. + +The normal load of a core is then ``R/n + F/sin(pi/n)`` (wedged trefoil) or +``R/n + F`` (central filler). The earlier estimate put ``C + R/n`` on one +contact and left out the reaction on the inner side. + +Filler profiles +--------------- +With ``CoreFrictionSpec(filler_profiles=True)`` the interstitial filler (the +non-structural filler annulus around the cores) is a population of ``n`` +shaped profiles laid with the cores (same pitch), each sticking to or +slipping against the cores and the ring with the same direction-tied cap and +return map. The filler region is the annulus minus the core envelopes +(circles of the core radius in the cable cross-section); its area ``A_f`` and +polar moment ``J_f`` about the cable axis give the effective radius +``r_f = sqrt(J_f / A_f)``, so that ``1/2 E A_f r_f^2`` is the stuck bending +stiffness ``E J_f / 2`` of the region (times ``xi cos^3 beta_f``), and the lay +angle ``tan beta_f = 2 pi r_f / pitch``. A profile is loaded on both faces: +the ring line force ``R / n`` on its outer face and the same force, passed +on, against the cores (bounded estimate), or the solved filler--ring and +filler--core forces divided among the profiles (solved), so ``q_f = 2 R / n`` +in the bounded estimate. Its stick coefficient is the Yun form with the +contact penalty and the shear of half the mean filler depth +``A_f / (2 pi r_b)`` over the profile perimeter ``4 pi r_b / n`` (``r_b`` the +filler outer radius). The profiles carry no share of the cable tension (the +filler stays non-structural axially), so they have no capstan load. Assumptions (stated, not solved) -------------------------------- * Normal contact loads are those of the axisymmetric state and are held fixed during bending (as for the armour); the bending redistribution of core contact is not solved. +* The wedged trefoil assumes touching cores. The outer-face load ``R / n`` of + a core and the face loads ``2 R / n`` of a profile are estimates: a profile + face is not radial, and part of ``R`` reaches the cores directly. +* A central filler reacts the inward core loads; it is not part of the + slipping filler-profile population. * The layers of one core are bonded and move together axially; the core is a rod of rigidity ``EA_core`` whose interior shear enters only through ``xi``. @@ -147,6 +184,7 @@ "CoreFrictionHistory", "CoreFrictionModel", "CoreFrictionSpec", + "FillerProfiles", "StrandRingFriction", "build_core_friction", "core_contact_loads", @@ -193,6 +231,19 @@ class CoreFrictionSpec: ``mu_strand``). direction_hold_fraction : float Direction hold of the slip cap near zero curvature, as for the armour. + central_filler : bool or None + Load path of the inward core loads in the bounded estimate (module + notes): ``None`` or ``False`` (default) for a touching trefoil wedged + on its neighbours, ``True`` for a central filler that carries them + radially. The solved contact model reads the core support of the + solved radial state and accepts only ``None``. + filler_profiles : bool + Treat the interstitial filler as laid frictional profiles, one per + core interstice (module notes; default False). Needs a non-structural + filler annulus around the cores and a core lay. + mu_filler_profile : float or None + Friction coefficient of the profile contacts (default: + ``mu_core_filler``). """ mu_core_filler: float = DEFAULT_CORE_MU @@ -205,13 +256,29 @@ class CoreFrictionSpec: mu_strand: float | None = None mu_strand_outer: float | None = None direction_hold_fraction: float = DIRECTION_HOLD_FRACTION + central_filler: bool | None = None + filler_profiles: bool = False + mu_filler_profile: float | None = None + + @property + def filler_mu(self) -> float: + """Friction coefficient of the filler-profile contacts.""" + if self.mu_filler_profile is None: + return self.mu_core_filler + return self.mu_filler_profile def __post_init__(self) -> None: for name in ("mu_core_filler", "mu_core_core", "mu_core_sheath"): value = getattr(self, name) if not math.isfinite(value) or value < 0.0: raise CableInputError(f"{name} must be finite and non-negative") - for name in ("mu_strand", "mu_strand_outer"): + if self.central_filler is not None and not isinstance( + self.central_filler, bool + ): + raise CableInputError("central_filler must be None, True or False") + if not isinstance(self.filler_profiles, bool): + raise CableInputError("filler_profiles must be True or False") + for name in ("mu_strand", "mu_strand_outer", "mu_filler_profile"): value = getattr(self, name) if value is not None and (not math.isfinite(value) or value < 0.0): raise CableInputError(f"{name} must be finite and non-negative") @@ -244,13 +311,16 @@ class CoreContactLoads: """Normal contact line loads on one core [N per metre of cable]. ``core_core`` sums both neighbouring cores. ``source`` names the contact - model that produced them. + model that produced them. ``filler_profile_N_per_m`` is the sum of the + normal loads on both faces of one filler profile (module notes), the + load of the filler-profile population. """ core_core_N_per_m: float core_filler_N_per_m: float core_sheath_N_per_m: float source: str + filler_profile_N_per_m: float = 0.0 @property def total_N_per_m(self) -> float: @@ -306,7 +376,12 @@ def _core_geometry(cable: CableData) -> tuple[int, float, float, float]: def _bounded_loads( - cable: CableData, axi: AxisymmetricResult, n_cores: int, r_c: float, beta: float + cable: CableData, + axi: AxisymmetricResult, + n_cores: int, + r_c: float, + beta: float, + central_filler: bool, ) -> CoreContactLoads: core_names = {x.name for x in _core_layers(cable)} n_core = sum(v for k, v in axi.layer_tension_N.items() if k in core_names) @@ -335,16 +410,27 @@ def _bounded_loads( pressure += float( wound.interface_pressure_Pa[0] - base.interface_pressure_Pa[0] ) + # Share of the ring line force on one core's outer face (through the + # filler where there is one, else directly from the ring). ring = 2.0 * math.pi * float(axi.interface_radii_m[0]) * pressure / n_cores - if _has_filler(cable): - return CoreContactLoads(0.0, capstan + ring, 0.0, "bounded") - # Without a filler the inward load rests on the neighbouring cores. With - # three or more cores each core touches two neighbours whose contact + has_filler = _has_filler(cable) + inward = capstan + ring + filler_face = ring if has_filler else 0.0 + sheath_face = 0.0 if has_filler else ring + # A profile carries the ring force of its interstice on its outer face + # and passes it on to the cores: both faces, 2 R / n. + profile = 2.0 * ring if has_filler else 0.0 + if central_filler: + # The central filler reacts the inward resultant radially. + return CoreContactLoads( + 0.0, filler_face + inward, sheath_face, "bounded", profile + ) + # Wedged trefoil: each core rests on its two neighbours, whose contact # normals lie pi/2 - pi/n off the radial direction, so the two contact - # forces sum to capstan / sin(pi/n) (1.155 times for a trefoil); two cores - # touch along the radial line. - core_core = capstan / math.sin(math.pi / n_cores) if n_cores >= 3 else capstan - return CoreContactLoads(core_core, 0.0, ring, "bounded") + # forces sum to F / sin(pi/n) (1.155 F for three cores); two cores touch + # along the radial line (sin(pi/2) = 1). + core_core = inward / math.sin(math.pi / n_cores) + return CoreContactLoads(core_core, filler_face, sheath_face, "bounded", profile) def core_contact_loads( @@ -354,12 +440,23 @@ def core_contact_loads( contact_model: str = "bounded", radial_state: CableRadialState | None = None, section_state: SectionState | None = None, + central_filler: bool | None = None, ) -> CoreContactLoads: - """Normal contact line loads of one laid core (see the module notes).""" + """Normal contact line loads of one laid core (see the module notes). + + ``central_filler`` selects the support of the inward core loads in the + bounded estimate (``None``/``False``: wedged trefoil; ``True``: central + filler); the solved model reads its own and accepts only ``None``. + """ n_cores, r_c, beta, _ = _core_geometry(cable) if radial_state is not None or contact_model == "solved": if section_state is not None: raise CableSchemaError("supply a section state or a radial state, not both") + if central_filler is not None: + raise CableInputError( + "central_filler applies to the bounded core contact estimate; the " + "solved radial state sets the core support itself" + ) if radial_state is None: from cablexsec.mechanics.radial_cable import ( # noqa: PLC0415 solve_cable_radial_state, @@ -370,11 +467,18 @@ def core_contact_loads( bundle = radial_state.result.bundle if bundle is None: raise CableSchemaError("the solved radial state has no core bundle") + filler_core = max(bundle.filler_core_force_N_per_m, 0.0) + # One profile per interstice: the filler--ring force of the whole + # ring and the filler--core forces of all cores, shared equally. + profile = ( + max(bundle.filler_ring_force_N_per_m, 0.0) + n_cores * filler_core + ) / n_cores return CoreContactLoads( 2.0 * max(bundle.core_core_force_N_per_m, 0.0), - max(bundle.filler_core_force_N_per_m, 0.0), + filler_core, max(bundle.core_ring_force_N_per_m, 0.0), "solved", + profile, ) if section_state is not None: section_state.require_cable(cable) @@ -385,13 +489,13 @@ def core_contact_loads( section_state.tension_N, p_ext_Pa=section_state.external_pressure_Pa, ) - return _bounded_loads(cable, axi, n_cores, r_c, beta) + return _bounded_loads(cable, axi, n_cores, r_c, beta, bool(central_filler)) if contact_model not in {"bounded", "qp"}: raise CableSchemaError("contact_model must be 'bounded', 'qp' or 'solved'.") axi = compute_contact_forces( cable, tension_N, p_ext_Pa=cable.initial_state.external_pressure_Pa ) - return _bounded_loads(cable, axi, n_cores, r_c, beta) + return _bounded_loads(cable, axi, n_cores, r_c, beta, bool(central_filler)) @dataclass(frozen=True) @@ -420,6 +524,34 @@ def stick_EI_Nm2(self) -> float: ) +@dataclass(frozen=True) +class FillerProfiles: + """Laid filler profiles as a frictional helical population (module notes). + + ``line_load_N_per_m`` is the sum of the normal loads on both faces of one + profile; ``EA_profile_N`` the axial rigidity of one profile; + ``plane_section_EI_Nm2`` the stuck term ``1/2 E A_f r_f^2`` without + ``xi cos^3 beta_f``. + """ + + population: HelicalLayerSpec + n_profiles: int + layer_name: str + area_m2: float + r_effective_m: float + lay_angle_rad: float + EA_profile_N: float + line_load_N_per_m: float + mu: float + xi: float + plane_section_EI_Nm2: float + + @property + def stick_EI_Nm2(self) -> float: + """Stick stiffness of the profiles, ``xi`` times plane section ``cos^3``.""" + return float(self.population.EI_stick) + + @dataclass(frozen=True) class CoreFrictionModel: """Assembled core population, internal rings and their inputs.""" @@ -436,6 +568,7 @@ class CoreFrictionModel: plane_section_EI_Nm2: float strand_rings: tuple[StrandRingFriction, ...] = field(default=()) tension_N: float = 0.0 + fillers: FillerProfiles | None = None @property def core_stick_EI_Nm2(self) -> float: @@ -446,9 +579,22 @@ def core_stick_EI_Nm2(self) -> float: def strand_stick_EI_Nm2(self) -> float: return float(sum(r.stick_EI_Nm2 for r in self.strand_rings)) + @property + def filler_stick_EI_Nm2(self) -> float: + return 0.0 if self.fillers is None else self.fillers.stick_EI_Nm2 + @property def stick_EI_Nm2(self) -> float: - return self.core_stick_EI_Nm2 + self.strand_stick_EI_Nm2 + return ( + self.core_stick_EI_Nm2 + self.strand_stick_EI_Nm2 + self.filler_stick_EI_Nm2 + ) + + @property + def populations(self) -> tuple[HelicalLayerSpec, ...]: + """The helical populations of the law: the cores, then the profiles.""" + if self.fillers is None: + return (self.population,) + return (self.population, self.fillers.population) def _stick_coefficient( @@ -479,6 +625,116 @@ def _stick_coefficient( return yun_xi(series_shear_stiffness(stack), ea_core, beta, r_c) +def _filler_region( + r_in: float, r_out: float, n_cores: int, r_c: float, r_core: float +) -> tuple[float, float]: + """Area and polar moment about the cable axis of a filler annulus less the + core envelopes (circles of radius ``r_core`` at ``r_c``) [m², m⁴]. + + At radius ``r`` a core circle covers the angle + ``2 acos((r² + r_c² - r_core²) / (2 r r_c))``; the integrals over ``r`` are + Gauss--Legendre sums on the pieces between the core-circle radii, where + the integrand has square-root ends (relative error below 1e-6). + """ + nodes, weights = np.polynomial.legendre.leggauss(64) + edges = sorted( + {r_in, r_out, *(x for x in (r_c - r_core, r_c + r_core) if r_in < x < r_out)} + ) + area = polar = 0.0 + for a, b in zip(edges[:-1], edges[1:], strict=False): + # Substitute r = a + (b - a) (1 - cos t) / 2 to smooth the ends. + t = 0.5 * math.pi * (nodes + 1.0) + r = a + 0.5 * (b - a) * (1.0 - np.cos(t)) + dr = 0.5 * (b - a) * np.sin(t) * 0.5 * math.pi + cosine = np.clip((r**2 + r_c**2 - r_core**2) / (2.0 * r * r_c), -1.0, 1.0) + covered = np.where(np.abs(r - r_c) < r_core, 2.0 * np.arccos(cosine), 0.0) + width = np.maximum(2.0 * math.pi - n_cores * covered, 0.0) + area += float(np.sum(weights * width * r * dr)) + polar += float(np.sum(weights * width * r**3 * dr)) + return area, polar + + +def _filler_profiles( + cable: CableData, + spec: CoreFrictionSpec, + loads: CoreContactLoads, + n_cores: int, + r_c: float, + beta: float, + r_core: float, +) -> FillerProfiles: + fillers = [ + x + for x in cable.layers + if isinstance(x, CylindricalLayer) and is_interstitial_filler(x, cable) + ] + if len(fillers) != 1: + raise CableSchemaError( + "filler profiles need exactly one interstitial filler layer around " + f"the cores (found {len(fillers)})" + ) + layer = fillers[0] + if layer.structural: + # A structural filler annulus already bends in EI_min; the profiles + # would add the same material a second time. + raise CableSchemaError( + f"filler profiles need a non-structural filler annulus; " + f"{layer.name!r} is structural (declare structural: false)" + ) + r_in, r_out = float(layer.r_inner_m or 0.0), float(layer.r_outer_m or 0.0) + area, polar = _filler_region(r_in, r_out, n_cores, r_c, r_core) + if not (area > 0.0 and polar > 0.0): + raise CableSchemaError( + f"filler layer {layer.name!r} leaves no area around the cores" + ) + try: + e_f = library.get_property(layer.material, "E_Pa") + nu_f = library.get_property(layer.material, "nu") + except KeyError: + raise CableInputError( + f"filler layer {layer.name!r}: material {layer.material!r} has no " + "isotropic modulus (E_Pa, nu) for the filler profiles" + ) from None + r_f = math.sqrt(polar / area) + beta_f = math.atan(math.tan(beta) * r_f / r_c) + ea_profile = e_f * area / n_cores + stack: list[tuple[float, float, float]] = [] + perimeter = 4.0 * math.pi * r_out / n_cores + if math.isfinite(spec.interface_stiffness_Pa_per_m): + stack.append((1.0, spec.interface_stiffness_Pa_per_m, perimeter)) + if spec.core_shear: + depth = area / (2.0 * math.pi * r_out) + stack.append((0.5 * depth, shear_modulus(e_f, nu_f), perimeter)) + xi_f = yun_xi(series_shear_stiffness(stack), ea_profile, beta_f, r_f) + n_st = n_cores * spec.n_stations_per_core + q_f = loads.filler_profile_N_per_m + population = HelicalLayerSpec( + n_wires=n_st, + r_helix_m=r_f, + lay_angle_rad=beta_f, + E_wire_Pa=e_f, + A_wire_m2=area / n_st, + xi=xi_f, + mu=spec.filler_mu, + F_n_axi_N=q_f, + contact_pressure_Pa=n_cores * q_f / (2.0 * math.pi * r_f), + normal_load_is_line=True, + ) + return FillerProfiles( + population=population, + n_profiles=n_cores, + layer_name=layer.name, + area_m2=area, + r_effective_m=r_f, + lay_angle_rad=beta_f, + EA_profile_N=ea_profile, + line_load_N_per_m=q_f, + mu=spec.filler_mu, + xi=xi_f, + plane_section_EI_Nm2=0.5 * e_f * area * r_f**2, + ) + + def _strand_rings( cable: CableData, spec: CoreFrictionSpec, @@ -568,6 +824,7 @@ def build_core_friction( contact_model=contact_model, radial_state=radial_state, section_state=section_state, + central_filler=spec.central_filler, ) axial = axial_stiffness_by_layer(cable) cos3 = math.cos(beta) ** 3 @@ -606,22 +863,32 @@ def build_core_friction( plane_section_EI_Nm2=0.5 * contribution * r_c**2, strand_rings=_strand_rings(cable, spec, loads, tension_N, n_cores, beta), tension_N=float(tension_N), + fillers=( + _filler_profiles(cable, spec, loads, n_cores, r_c, beta, r_core) + if spec.filler_profiles + else None + ), ) @dataclass(frozen=True) class CoreFrictionHistory: - """Moments ``(samples, 2)`` and work of the cores and internal rings.""" + """Moments ``(samples, 2)`` and work of the cores, internal rings and + filler profiles (``filler_moment_Nm`` zero without profiles).""" core_moment_Nm: FloatArray strand_moment_Nm: FloatArray core_slip_fraction: FloatArray work: BendingWork model: CoreFrictionModel + filler_moment_Nm: FloatArray | None = None @property def moment_Nm(self) -> FloatArray: - return np.asarray(self.core_moment_Nm + self.strand_moment_Nm) + total = self.core_moment_Nm + self.strand_moment_Nm + if self.filler_moment_Nm is not None: + total = total + self.filler_moment_Nm + return np.asarray(total) def _strand_history( @@ -658,11 +925,12 @@ def core_friction_history( *, initial_bending_angle: float = 0.0, ) -> CoreFrictionHistory: - """Biaxial history of the core population and the internal rings. + """Biaxial history of the core population, the internal rings and the + filler profiles. - The core stations use :func:`wire_slip_history` unchanged (direction-tied - Papailiou cap); the rings use :func:`strand_slip_strain`. Both return - moments in the material frame of the curvature components. + The core and profile stations use :func:`wire_slip_history` unchanged + (direction-tied Papailiou cap); the rings use :func:`strand_slip_strain`. + All return moments in the material frame of the curvature components. """ kx = np.asarray(kappa_x, dtype=np.float64) ky = np.asarray(kappa_y, dtype=np.float64) @@ -681,6 +949,21 @@ def core_friction_history( friction = w.friction_J_per_m + s_friction endpoint = w.endpoint_work_J_per_m + s_endpoint remainder = w.integration_remainder_J_per_m + s_remainder + filler_moment = None + if model.fillers is not None: + filler = wire_slip_history( + model.fillers.population, + kx, + ky, + initial_bending_angle=initial_bending_angle, + direction_hold_fraction=model.spec.direction_hold_fraction, + ) + filler_moment = np.asarray(filler.moment_Nm) + fw = filler.work + stored = stored + fw.stored_J_per_m + friction = friction + fw.friction_J_per_m + endpoint = endpoint + fw.endpoint_work_J_per_m + remainder = remainder + fw.integration_remainder_J_per_m return CoreFrictionHistory( core_moment_Nm=np.asarray(history.moment_Nm), strand_moment_Nm=s_moment, @@ -693,4 +976,5 @@ def core_friction_history( endpoint - stored - friction - remainder, ), model=model, + filler_moment_Nm=filler_moment, ) diff --git a/tests/test_bending_law_slip_scale.py b/tests/test_bending_law_slip_scale.py index 0e86447..0c26409 100644 --- a/tests/test_bending_law_slip_scale.py +++ b/tests/test_bending_law_slip_scale.py @@ -23,6 +23,7 @@ from cablexsec._project_codec import pack, unpack from cablexsec.analysis.bending_law import ( CORE_GROUP, + FILLER_GROUP, SlipScaleTable, export_bending_law, ) @@ -105,6 +106,10 @@ def test_section_law_is_homogeneous_in_the_friction_bound(iea66): [ (cx.menard2023_yaml_path(), None), (cx.inter_array_three_core_yaml_path(), True), + ( + cx.inter_array_three_core_yaml_path(), + cx.CoreFrictionSpec(filler_profiles=True), + ), ], ) def test_group_yield_curvatures_scale_exactly(path, core): @@ -114,6 +119,10 @@ def test_group_yield_curvatures_scale_exactly(path, core): cable = _cable(path) kappa = _grid(0.3, 200) reference = _table(cable, kappa, 1.0e4, [1.0e4, 6.0e4], core_friction=core) + if isinstance(core, cx.CoreFrictionSpec): + assert reference.group_names[-2:] == (CORE_GROUP, FILLER_GROUP) + kinds = [group["kind"] for group in reference.record()["groups"]] + assert kinds[-2:] == [CORE_GROUP, FILLER_GROUP] rho = reference.group_scale[:, 1, 0] assert np.ptp(rho) > 1e-3 # the groups do scale differently for g, name in enumerate(reference.group_names): diff --git a/tests/test_core_friction.py b/tests/test_core_friction.py index 41786ba..55642bd 100644 --- a/tests/test_core_friction.py +++ b/tests/test_core_friction.py @@ -220,20 +220,88 @@ def test_contact_loads(cable): loads.core_filler_N_per_m + loads.core_sheath_N_per_m ) assert loads.mu_effective(mixed) == pytest.approx(weighted) + # Solved: one profile per interstice shares the filler--ring force of the + # ring and the filler--core forces of all cores. + assert loads.filler_profile_N_per_m == pytest.approx( + (bundle.filler_ring_force_N_per_m + 3 * bundle.filler_core_force_N_per_m) / 3, + rel=1e-12, + ) bounded = core_contact_loads(cable, T) - assert bounded.source == "bounded" and bounded.core_core_N_per_m == 0.0 + assert bounded.source == "bounded" and bounded.core_core_N_per_m > 0.0 assert core_contact_loads(cable, 0.0).total_N_per_m == 0.0 assert core_contact_loads(cable, 0.0).mu_effective(mixed) == 0.4 - # Without a filler the capstan load bears on the neighbouring cores. + # Without a filler the ring share bears on the sheath. menard = cx.load_cable(cx.menard2023_yaml_path(), geometry_override=None) split = core_contact_loads(menard, T) assert split.core_core_N_per_m > 0.0 and split.core_sheath_N_per_m > 0.0 + assert split.core_filler_N_per_m == 0.0 and split.filler_profile_N_per_m == 0.0 section = cx.solve_section_state(cable, tension_N=T, contact_model="bounded") assert core_contact_loads(cable, section_state=section) == bounded with pytest.raises(CableSchemaError): core_contact_loads(cable, T, radial_state=state, section_state=section) with pytest.raises(CableSchemaError): core_contact_loads(cable, T, contact_model="other") + # The solved state sets its own core support. + with pytest.raises(CableInputError, match="central_filler"): + core_contact_loads(cable, T, radial_state=state, central_filler=False) + with pytest.raises(CableInputError, match="central_filler"): + build_core_friction( + cable, CoreFrictionSpec(central_filler=True), T, contact_model="solved" + ) + + +def _bounded_parts(cable, tension): + """Capstan load C and ring share R/n of one core in the bounded chain.""" + from cablexsec.mechanics.axisymmetric import compute_contact_forces + from cablexsec.mechanics.core_friction import _core_geometry, _core_layers + + n_cores, r_c, beta, _ = _core_geometry(cable) + axi = compute_contact_forces( + cable, tension, p_ext_Pa=cable.initial_state.external_pressure_Pa + ) + names = {x.name for x in _core_layers(cable)} + share = sum(v for k, v in axi.layer_tension_N.items() if k in names) / n_cores + capstan = share * math.tan(beta) ** 2 / r_c + ring = ( + 2 * math.pi * axi.interface_radii_m[0] * axi.interface_pressure_Pa[0] / n_cores + ) + return n_cores, capstan, ring + + +@pytest.mark.parametrize("path", ["iea", "menard"]) +@pytest.mark.parametrize("central", [None, False, True]) +def test_bounded_core_load_statics(cable, path, central): + """Radial equilibrium of one core in the bounded estimate. + + Inward capstan C and ring share R/n on the outer face; the inward + resultant is reacted by the two neighbour contacts at pi/2 - pi/n off the + radial direction (wedged trefoil), or radially by a central filler. + """ + target = ( + cable + if path == "iea" + else cx.load_cable(cx.menard2023_yaml_path(), geometry_override=None) + ) + n, capstan, ring = _bounded_parts(target, T) + assert capstan > 0.0 and ring > 0.0 + loads = core_contact_loads(target, T, central_filler=central) + filled = path == "iea" + outer = loads.core_filler_N_per_m if filled else loads.core_sheath_N_per_m + if central: + assert loads.core_core_N_per_m == 0.0 + if filled: + assert outer == pytest.approx(2 * ring + capstan, rel=1e-12) + else: + assert loads.core_filler_N_per_m == pytest.approx(ring + capstan, rel=1e-12) + assert loads.core_sheath_N_per_m == pytest.approx(ring, rel=1e-12) + else: + assert outer == pytest.approx(ring, rel=1e-12) + # The radial components of the two neighbour contacts balance C + R/n. + radial = loads.core_core_N_per_m * math.cos(math.pi / 2 - math.pi / n) + assert radial == pytest.approx(capstan + ring, rel=1e-12) + assert loads.filler_profile_N_per_m == ( + pytest.approx(2 * ring, rel=1e-12) if filled else 0.0 + ) def test_bounded_capstan_load_and_trefoil_contacts(): @@ -249,13 +317,19 @@ def test_bounded_capstan_load_and_trefoil_contacts(): names = {x.name for x in _core_layers(menard)} share = sum(v for k, v in axi.layer_tension_N.items() if k in names) / n_cores capstan = share * math.tan(beta) ** 2 / r_c + ring = ( + 2 * math.pi * axi.interface_radii_m[0] * axi.interface_pressure_Pa[0] / n_cores + ) loads = core_contact_loads(menard, T) assert n_cores == 3 - # The two neighbour contacts lie 30 deg off the radial direction. + # The two neighbour contacts lie 30 deg off the radial direction and + # carry the capstan load and the ring share of the core. assert loads.core_core_N_per_m == pytest.approx( - capstan / math.sin(math.pi / 3), rel=1e-12 + (capstan + ring) / math.sin(math.pi / 3), rel=1e-12 + ) + assert loads.core_core_N_per_m * math.cos(math.pi / 6) == pytest.approx( + capstan + ring ) - assert loads.core_core_N_per_m * math.cos(math.pi / 6) == pytest.approx(capstan) def test_bounded_loads_include_armour_winding_stress(cable): @@ -276,7 +350,9 @@ def test_bounded_loads_include_armour_winding_stress(cable): 2 * math.pi * inner.r_helix_m * (p12["inner_armour"] - p12["outer_armour"]) ) assert loads.core_filler_N_per_m == pytest.approx(expected / 3, rel=1e-12) - assert loads.core_core_N_per_m == 0.0 + assert loads.core_core_N_per_m == pytest.approx( + expected / 3 / math.sin(math.pi / 3), rel=1e-12 + ) def test_section_state_path(cable): @@ -429,3 +505,175 @@ def test_janocha_template_regression(cable): # 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) + + +PROFILES = CoreFrictionSpec( + mu_core_filler=0.46, mu_core_core=0.46, mu_core_sheath=0.46, filler_profiles=True +) + + +def test_filler_region_area_and_polar_moment(): + from cablexsec.mechanics.core_friction import _filler_region + + # Cores wholly inside the annulus: closed form. + r_out, n, r_c, r_core = 0.08, 3, 0.04, 0.03 + area, polar = _filler_region(0.0, r_out, n, r_c, r_core) + exact_a = math.pi * r_out**2 - n * math.pi * r_core**2 + exact_j = math.pi * r_out**4 / 2 - n * ( + math.pi * r_core**4 / 2 + math.pi * r_core**2 * r_c**2 + ) + assert area == pytest.approx(exact_a, rel=1e-9) + assert polar == pytest.approx(exact_j, rel=1e-9) + # Cores crossing the outer radius (the 66 kV template): a fine grid. + r_out, r_c, r_core = 0.0759, 0.04081, 0.0352 + area, polar = _filler_region(0.0, r_out, 3, r_c, r_core) + h = r_out / 1500 + x = np.arange(-r_out + h / 2, r_out, h) + xx, yy = np.meshgrid(x, x) + rr = np.hypot(xx, yy) + inside = rr < r_out + for k in range(3): + cx_, cy_ = ( + r_c * math.cos(2 * math.pi * k / 3), + r_c * math.sin(2 * math.pi * k / 3), + ) + inside &= np.hypot(xx - cx_, yy - cy_) >= r_core + assert area == pytest.approx(np.count_nonzero(inside) * h * h, rel=2e-3) + assert polar == pytest.approx(np.sum(rr[inside] ** 2) * h * h, rel=2e-3) + + +@pytest.mark.parametrize("model", ["bounded", "solved"]) +def test_filler_profile_full_slip_moment_matches_closed_form(cable, model): + """Same signed-capstan closed form as the cores, with the profile radius, + lay angle, both-face load and friction coefficient.""" + core = build_core_friction(cable, PROFILES, T, contact_model=model) + f = core.fillers + assert f is not None and f.n_profiles == 3 + assert f.line_load_N_per_m == core.loads.filler_profile_N_per_m > 0.0 + beta, r, q = f.lay_angle_rad, f.r_effective_m, f.line_load_N_per_m + # Same pitch as the cores. + assert math.tan(beta) / r == pytest.approx( + math.tan(core.lay_angle_rad) / core.r_offset_m, rel=1e-12 + ) + a = f.mu * math.sin(beta) + closed = ( + 2.0 / math.pi * 3 * q * r * r * math.cos(beta) ** 2 / math.sin(beta) ** 2 + ) * (a * math.cosh(a * math.pi / 2) / (1.0 + a * a)) + k = _loop(0.2, n=4001) + hist = core_friction_history(core, k, np.zeros_like(k)) + m = hist.filler_moment_Nm[:, 0] + assert -_descending_zero(k, m) == pytest.approx(closed, rel=5e-3) + assert m.max() == pytest.approx(closed, rel=5e-3) + assert np.array_equal( + hist.moment_Nm, + hist.core_moment_Nm + hist.strand_moment_Nm + hist.filler_moment_Nm, + ) + + +@pytest.mark.parametrize("model", ["bounded", "solved"]) +def test_zero_friction_with_filler_profiles_recovers_armour_only_law(cable, model): + k = _loop(0.2) + base = cx.compute_mkappa(cable, k, tension_N=T, contact_model=model) + zero = CoreFrictionSpec( + mu_core_filler=0.0, + mu_core_core=0.0, + mu_core_sheath=0.0, + filler_profiles=True, + ) + res = cx.compute_mkappa( + cable, k, tension_N=T, contact_model=model, core_friction=zero + ) + assert np.array_equal(res.moment_Nm, base.moment_Nm) + assert res.W_diss_J_per_m == base.W_diss_J_per_m + # A profile coefficient of its own: zero there too. + other = CoreFrictionSpec( + mu_core_filler=0.0, + mu_core_core=0.0, + mu_core_sheath=0.0, + filler_profiles=True, + mu_filler_profile=0.0, + ) + res = cx.compute_mkappa( + cable, k, tension_N=T, contact_model=model, core_friction=other + ) + assert np.array_equal(res.moment_Nm, base.moment_Nm) + + +def test_filler_profiles_stick_limit(cable): + """Large friction, rigid contact, no shear: the profiles add E J_f cos^3 / 2.""" + from cablexsec.materials import library + + rigid = CoreFrictionSpec( + mu_core_filler=1.0e3, + mu_core_core=1.0e3, + mu_core_sheath=1.0e3, + core_shear=False, + filler_profiles=True, + ) + k = _loop(1.0e-6, n=201, cycles=1) + res = cx.compute_mkappa(cable, k, tension_N=T, mu=1.0e3, core_friction=rigid) + f = res.core_friction.model.fillers + assert f.xi == 1.0 + filler = next(x for x in cable.layers if x.name == f.layer_name) + e = library.get_property(filler.material, "E_Pa") + polar = f.area_m2 * f.r_effective_m**2 + assert f.stick_EI_Nm2 == pytest.approx( + 0.5 * e * polar * math.cos(f.lay_angle_rad) ** 3, rel=1e-12 + ) + expected = cx.compute_stiffness(cable).ei_max_Nm2 + f.stick_EI_Nm2 + assert res.EI_max_Nm2 == pytest.approx(expected, rel=1e-12) + finite = np.abs(k[1:]) > 1e-9 + tangent = res.moment_Nm[1:] / k[1:] + assert np.allclose(tangent[finite], expected, rtol=1e-9) + # The default shear of half the filler depth lowers the profile xi. + sheared = build_core_friction(cable, PROFILES, T) + assert 0.0 < sheared.fillers.xi < 1.0 + + +def test_filler_profiles_work_and_inputs(cable): + rng = np.random.default_rng(5) + kx = np.cumsum(rng.normal(scale=0.01, size=500)) + ky = np.cumsum(rng.normal(scale=0.01, size=500)) + core = build_core_friction(cable, PROFILES, T) + hist = core_friction_history(core, kx, ky) + plain = core_friction_history(build_core_friction(cable, SPEC, T), kx, ky) + friction = hist.work.friction_J_per_m + assert friction[-1] > plain.work.friction_J_per_m[-1] > 0.0 + assert np.all(np.diff(friction) >= -1e-12 * friction[-1]) + assert np.max(np.abs(hist.work.balance_residual_J_per_m)) < 1e-9 * friction[-1] + assert plain.filler_moment_Nm is None + assert core.stick_EI_Nm2 == pytest.approx( + core.core_stick_EI_Nm2 + core.fillers.stick_EI_Nm2, rel=1e-15 + ) + assert core.populations == (core.population, core.fillers.population) + # The profile coefficient defaults to the core--filler one. + own = build_core_friction( + cable, CoreFrictionSpec(filler_profiles=True, mu_filler_profile=0.3), T + ) + assert own.fillers.mu == 0.3 and core.fillers.mu == 0.46 + menard = cx.load_cable(cx.menard2023_yaml_path(), geometry_override=None) + with pytest.raises(CableSchemaError, match="interstitial filler"): + build_core_friction(menard, PROFILES, T) + # A structural pp_filler annulus already bends in EI_min: refused. + three = cx.load_cable(cx.inter_array_three_core_yaml_path(), geometry_override=None) + structural = three.model_copy( + update={ + "layers": tuple( + x.model_copy(update={"structural": True}) + if x.name == "pp_filler" + else x + for x in three.layers + ) + } + ) + with pytest.raises(CableSchemaError, match="non-structural filler"): + build_core_friction(structural, PROFILES, T) + assert build_core_friction(three, PROFILES, T).fillers is not None + for bad in ( + {"central_filler": 1}, + {"filler_profiles": "yes"}, + {"mu_filler_profile": -0.1}, + {"mu_filler_profile": math.nan}, + ): + with pytest.raises(CableInputError): + CoreFrictionSpec(**bad) # type: ignore[arg-type] diff --git a/tests/test_core_lay_stage.py b/tests/test_core_lay_stage.py index b702cb8..381d9a2 100644 --- a/tests/test_core_lay_stage.py +++ b/tests/test_core_lay_stage.py @@ -277,3 +277,36 @@ def test_bending_law_export_with_the_core_lay_stage( assert first == pytest.approx(bound, rel=1e-9) assert "core lay stage" in law.provenance.method assert "core_friction" in law.settings + + +def test_filler_profiles_in_the_core_lay_stage(cable: cx.CableData) -> None: + spec = CoreFrictionSpec(strand_slip=False, filler_profiles=True) + result = compute_section_properties( + cable, [SectionLoadCase("design", T)], core_friction=spec, n_points=40 + ) + cores = result.cases[0].cores + assert cores is not None + model = build_core_friction(cable, spec, T) + assert model.fillers is not None + assert cores.filler_line_load_N_per_m == model.fillers.line_load_N_per_m + onset = slip_onset_curvature(model.fillers.population) + assert cores.filler_onset_curvature_1_m == pytest.approx(onset, rel=1e-12) + assert cores.filler_full_slip_curvature_1_m is not None + assert cores.filler_full_slip_curvature_1_m > onset + assert cores.stick_bending_stiffness_Nm2 == pytest.approx( + model.stick_EI_Nm2, rel=1e-12 + ) + kappa = result.cases[0].kappa_1_m + for value in (onset, cores.filler_full_slip_curvature_1_m): + assert np.min(np.abs(kappa - value)) <= 1e-15 * value + assert result.settings["core_lay_stage"]["filler_profiles"] is True + table = global_export.section_properties_csv(result) + assert "filler profiles full slip curvature [1/m]" in table + assert "filler profiles: line load" in global_export.bending_tables_csv(result) + # Without the profiles the columns stay out. + plain = compute_section_properties( + cable, [SectionLoadCase("design", T)], core_friction=RIGID, n_points=40 + ) + assert plain.cases[0].cores is not None + assert plain.cases[0].cores.filler_line_load_N_per_m is None + assert "filler profiles" not in global_export.section_properties_csv(plain) diff --git a/validation/scripts/check_core_friction.py b/validation/scripts/check_core_friction.py index 87f22a2..61df6be 100644 --- a/validation/scripts/check_core_friction.py +++ b/validation/scripts/check_core_friction.py @@ -123,6 +123,122 @@ def verification_checks() -> dict[str, float]: } +def wedge_filler_checks() -> dict[str, float]: + """Scorecard gate CFW (66 kV template, 50 kN): core load statics and the + laid filler profiles. + + ``statics``: largest relative residual of the radial equilibrium of one + core in the bounded estimate, wedged trefoil and central filler, with and + without a filler (66 kV template and Menard cable): the two neighbour + contacts times ``sin(pi/n)`` (or the central reaction) against the + capstan load plus the ring share, and the outer face against the ring + share. ``mu0``: largest moment difference to the armour-only loop with + the profiles on and every coefficient zero (bitwise: 0). ``closed``: + relative error of the full-slip profile moment against the cores' closed + form with the profile radius, lay angle, both-face load and coefficient + (solved and bounded, the larger). ``stick``: relative error of the + small-curvature tangent against ``EI_max`` plus ``E J_f cos^3 beta_f / 2`` + at large friction, rigid contact and no shear. + """ + from cablexsec.materials import library # noqa: PLC0415 + from cablexsec.mechanics.axisymmetric import ( # noqa: PLC0415 + compute_contact_forces, + ) + from cablexsec.mechanics.core_friction import ( # noqa: PLC0415 + _core_geometry, + _core_layers, + build_core_friction, + core_contact_loads, + core_friction_history, + ) + + cable = cx.load_cable(cx.iea_task49_66kv_yaml_path(), geometry_override=None) + menard_cable = cx.load_cable(cx.menard2023_yaml_path(), geometry_override=None) + tension = 50e3 + statics = 0.0 + for target, filled in ((cable, True), (menard_cable, False)): + n, r_c, beta, _ = _core_geometry(target) + axi = compute_contact_forces( + target, tension, p_ext_Pa=target.initial_state.external_pressure_Pa + ) + names = {x.name for x in _core_layers(target)} + share = sum(v for k, v in axi.layer_tension_N.items() if k in names) / n + capstan = share * math.tan(beta) ** 2 / r_c + ring = 2 * math.pi * axi.interface_radii_m[0] * axi.interface_pressure_Pa[0] / n + for central in (False, True): + loads = core_contact_loads(target, tension, central_filler=central) + outer = loads.core_filler_N_per_m if filled else loads.core_sheath_N_per_m + if central: + reaction = loads.core_filler_N_per_m - (ring if filled else 0.0) + residuals = (reaction - capstan - ring, loads.core_core_N_per_m) + if not filled: + residuals += (loads.core_sheath_N_per_m - ring,) + else: + residuals = ( + loads.core_core_N_per_m * math.sin(math.pi / n) - capstan - ring, + outer - ring, + ) + statics = max(statics, max(abs(r) for r in residuals) / (capstan + ring)) + + k = 0.2 * np.sin(np.linspace(0.0, 4.0 * math.pi, 801)) + base = cx.compute_mkappa(cable, k, tension_N=tension) + zero = CoreFrictionSpec( + mu_core_filler=0.0, mu_core_core=0.0, mu_core_sheath=0.0, filler_profiles=True + ) + res = cx.compute_mkappa(cable, k, tension_N=tension, core_friction=zero) + mu0 = float(np.max(np.abs(res.moment_Nm - base.moment_Nm))) + + spec = CoreFrictionSpec( + mu_core_filler=0.46, + mu_core_core=0.46, + mu_core_sheath=0.46, + filler_profiles=True, + ) + long = 0.2 * np.sin(np.linspace(0.0, 4.0 * math.pi, 4001)) + closed = 0.0 + for route in ("bounded", "solved"): + model = build_core_friction(cable, spec, tension, contact_model=route) + f = model.fillers + assert f is not None + b, r, q = f.lay_angle_rad, f.r_effective_m, f.line_load_N_per_m + a = f.mu * math.sin(b) + expected = 2 / math.pi * f.n_profiles * q * r * r * math.cos(b) ** 2 + expected *= a * math.cosh(a * math.pi / 2) / (1 + a * a) / math.sin(b) ** 2 + hist = core_friction_history(model, long, np.zeros_like(long)) + assert hist.filler_moment_Nm is not None + closed = max( + closed, + abs(-_descending_zero(long, hist.filler_moment_Nm[:, 0]) / expected - 1), + ) + + rigid = CoreFrictionSpec( + mu_core_filler=1e3, + mu_core_core=1e3, + mu_core_sheath=1e3, + core_shear=False, + filler_profiles=True, + ) + tiny = 1e-6 * np.sin(np.linspace(0.0, 2.0 * math.pi, 201)) + stuck = cx.compute_mkappa( + cable, tiny, tension_N=tension, mu=1e3, core_friction=rigid + ) + assert stuck.core_friction is not None + fillers = stuck.core_friction.model.fillers + assert fillers is not None + layer = next(x for x in cable.layers if x.name == fillers.layer_name) + filler_ei = ( + 0.5 + * library.get_property(layer.material, "E_Pa") + * fillers.area_m2 + * fillers.r_effective_m**2 + * math.cos(fillers.lay_angle_rad) ** 3 + ) + reference = cx.compute_stiffness(cable).ei_max_Nm2 + filler_ei + mask = np.abs(tiny) > 1e-9 + stick = float(np.max(np.abs(stuck.moment_Nm[mask] / tiny[mask] / reference - 1))) + return {"statics": statics, "mu0": mu0, "closed": closed, "stick": stick} + + def _branch_slope(k: np.ndarray, m: np.ndarray, lo: float, hi: float) -> float: """Slope of the last ascending branch between two curvatures.""" start = int(np.flatnonzero((k[:-1] < 0) & (k[1:] >= 0))[-1]) @@ -238,13 +354,17 @@ def menard() -> None: core_friction=True, ).core_friction.model print( - f" bounded core load {mod.loads.total_N_per_m / 1e3:.1f} kN/m per core " - f"(source FE 16.5 kN/m), xi {mod.xi:.3f}" + f" bounded ring load on a core's outer face " + f"{mod.loads.core_sheath_N_per_m / 1e3:.1f} kN/m (source FE: 16.5 kN/m " + f"on a core, about a third of its 46 kN/m inner-sheath load); all " + f"contacts of a core, wedged trefoil " + f"{mod.loads.total_N_per_m / 1e3:.1f} kN/m; xi {mod.xi:.3f}" ) if __name__ == "__main__": warnings.simplefilter("ignore") print("Verification (gate CF):", verification_checks()) + print("Verification (gate CFW):", wedge_filler_checks()) janocha() menard() diff --git a/validation/scripts/run_validation.py b/validation/scripts/run_validation.py index f5469af..e3f78d2 100644 --- a/validation/scripts/run_validation.py +++ b/validation/scripts/run_validation.py @@ -1169,6 +1169,27 @@ def _rows() -> list[Row]: else "FAIL", ) ) + from check_core_friction import wedge_filler_checks # noqa: PLC0415 + + cfw = wedge_filler_checks() + rows.append( + Row( + "1", + "CFW", + "Laid-core contact statics (wedged trefoil, central filler) and laid " + "filler profiles: mu = 0 armour-only loop; full-slip profile moment " + "vs closed form; stick tangent vs EI_max + E J_f cos^3 / 2", + "< 1e-12 relative; 0 N m; < 5e-3; < 1e-9", + f"{cfw['statics']:.1e}; {cfw['mu0']:.1e} N m; {cfw['closed']:.1e}; " + f"{cfw['stick']:.1e}", + "PASS" + if cfw["statics"] < 1e-12 + and cfw["mu0"] == 0.0 + and cfw["closed"] < 5e-3 + and cfw["stick"] < 1e-9 + else "FAIL", + ) + ) # Fretting regime and wear (gap 3.1); scripts/check_fretting_regime.py. import check_fretting_regime as fret # noqa: PLC0415 diff --git a/validation/validation_report.md b/validation/validation_report.md index a569bd4..4137b3f 100644 --- a/validation/validation_report.md +++ b/validation/validation_report.md @@ -18,7 +18,8 @@ Every row is computed from published data or closed-form references in this repo | 1 | OvM | Frictionless contact slip vs Out-von Morgen geodesic (Eqs. 26-28): loxodromic slip = wire-direction component; magnitude within bound; closed forms vs exact geodesic | < 1e-12 relative; ratio <= 1; < 1e-3 relative at k = 1e-4 | identity 1.07e-15; ratio 0.333; closed form 3.76e-04 | PASS | | 1 | OvM-g | Geodesic transverse map (eta = 1) vs Out-von Morgen slip vector (Eqs. 26-28) at mu = 0; vs exact geodesic | < 1e-12 relative; < 1e-3 relative at k = 1e-4 | closed form 1.05e-15; delta*/Eq. 28 - 1 2.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; 4.4e-16; 1.0e-04; 5.0e-06; 5.4e-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; 1.0e-15; 1.0e-04; 5.0e-06; 5.0e-14 | PASS | +| 1 | CFW | Laid-core contact statics (wedged trefoil, central filler) and laid filler profiles: mu = 0 armour-only loop; full-slip profile moment vs closed form; stick tangent vs EI_max + E J_f cos^3 / 2 | < 1e-12 relative; 0 N m; < 5e-3; < 1e-9 | 9.5e-17; 0.0e+00 N m; 1.0e-04; 7.8e-16 | PASS | | 1 | FR | Fretting regime: Mindlin energy vs numerical Masing loop; Fouvry A/D/B at transition; Cattaneo strip I(0) = pi/16; mu = inf stick energy; planar-path rotation | < 1e-9; < 1e-12; < 1e-12; 0 J; < 1e-12 relative | 7.8e-12; 4.4e-16; 1.6e-15; 0.0e+00 J; 4.4e-16 | PASS | | 1 | TQ | Torque balance: Feyrer Ex. 2.8 torque constant c_1S (fixed radius); coupled section vs Knapp (1981) core factor, theta = 2 nu; mirror lay reverses torque and twist | 0.0345 +/- 0.2%; < 1e-4 relative; < 1e-9 relative | 0.03446 (-0.11%); -1.3e-06; 0.0e+00 | PASS | | 1 | A11 | M-κ energy closure (loop area vs closed form) | < 0.1% | 0.082% | PASS | @@ -67,7 +68,7 @@ Every row is computed from published data or closed-form references in this repo ## Test taxonomy (full gate suite) -- analytical_sanity: `1153 passed` +- analytical_sanity: `1168 passed` - independent_method: `76 passed` - full_scale: `31 passed`