Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ All notable changes to CableXSec are recorded in this file. The format follows

### Added

- One exported bending law per friction group, each with its own scale table
(`BendingLawExport.slip_group_laws()`, `SlipGroupLaw`, `to_group_csv`), for a global model
that sums the group laws `s_g(T) B_g(κ / s_g(T))` instead of carrying one scale. Rows
MX-group-B and MX-group-E (targets registered before the run): on the 66 kV template with
laid cores, filler profiles and 0 / 20 / 40 MPa armour winding stress, 10–200 kN, the summed
group laws reproduce the exported backbone within 4.6e-4 (target 0.5 %) and the cycle work
within 0.06 % (target ±1 %); one scale for all groups misses by up to 5.5 % and 7 % with
clamping (MX-group-1, reported).

- Reported rows SV11-SPLIT, SV11-REACH and SV11-EQ88: where the SV11 termination increment
comes from. With the bellmouth curvature imposed uniformly from the end-fitting face the
end-fitting anchor alone moves the SV11-PLANE median from 1.00 to 1.01 and SV11-GJ from 1.24
Expand Down Expand Up @@ -339,6 +348,11 @@ All notable changes to CableXSec are recorded in this file. The format follows

### Changed

- The default slip-scale table of `export_bending_law(..., slip_scale=True)` starts at zero
tension, with the caps of the contact model there (zero without clamping, the clamping caps
otherwise; row MX-group-0), so the scale runs to zero instead of ending at the lowest
exported tension. An explicit `slip_scale_tensions_N` is used as given.

- CI runs the tests in parallel: the test matrix, the NumPy reference path and both coverage
passes run on one pytest-xdist worker per core (`pytest-xdist` joins the `dev` extra).
Every concurrent process writes its own numba cache: numba numbers a new cache entry from
Expand Down
19 changes: 18 additions & 1 deletion doc/benchmarks.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ model) is the full construction.
| 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 |
| Anchored wire at uniform curvature against published FE: Dong et al. (2025), Zhu and Tan (2014) (AW-DONG25, AW-ZT14) | MM | Reported: Dong et al. verification case reproduced (anchor 156.4 against 156.9 MPa, peak +1.6 %); Zhu and Tan not reproduced (1.70 against 2.2 normalised at the neutral-axis anchor): their FE far field is in stick and their analytical field breaks the Coulomb flow rule |
| 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-scale PASS (slip scaling variable); MX-2 FAIL (tension interpolation 3.9 % at 100 kN spacing; 0.27 % at 20 kN); MX-5 (global program) open |
| 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-scale PASS (slip scaling variable), MX-group PASS (one law per friction group); 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 |
| Torque balance (gap 3.5): Feyrer (2015) and Knapp (1981) closed forms, mirror lay, `xsec_stiffness` consistency | A, I | PASS |
Expand Down Expand Up @@ -1196,6 +1196,10 @@ guide [global_local_guide.md](global_local_guide.md), Section 8.
| MX-5 | MM | Hysteretic bending of a global program with the exported table | not run | open |
| MX-scale | I | Slip scaling variable (`slip_scale=True`): bound homogeneity of `compute_mkappa` (66 kV, 20 → 70 kN, cores); group elements at 60 kN against the 10 kN elements with yield curvatures times `ρ_g` (Ménard); tension cycle 10–70 kN inside ±0.03 1/m bending, scaled law against the contact-tension history over the fixed-tension residual | 6.9e-16; 1.2e-13; 1.21 (1.02 before the support-cut shear stack; symmetric wire bounds on a breakpoint grid: 8e-15, work 7e-15) | PASS |
| MX-scale-1 | I | One scale for all groups against the per-group law, 10–150 kN (reference 10 kN), backbone and cycles to 1.5 times full slip | 66 kV 0; 33 kV three-core 0.10 % (0.29 % with cores); Ménard 12 %; with p_e 0–2 MPa: 66 kV 21 %, 33 kV 12 %, Ménard 19 % | reported |
| MX-group-B | I | One law per friction group, each with its own scale table (`BendingLawExport.slip_group_laws`): sum over the groups of `s_g M_g(κ/s_g)` (the backbone table of the group at the reference, scaled by its own `s_g(T)`) against the exported backbone at the same tension (case below) | target (registered): at every grid curvature κ > 0 and every exported tension, within 0.5 % of the exported moment. Result: 4.6e-4, 4.4e-4, 4.5e-4 at 0, 20, 40 MPa (the interpolation of the reference backbone between grid points) | PASS |
| MX-group-E | I | Same laws, Masing replay: work of three symmetric cycles of amplitude 1e-3, 3e-3, 0.01, 0.03, 0.1 and 0.3 1/m, summed group laws against the exported law at the same tension | target (registered): within ±1 %. Result: 0.99973–1.00003, 0.99997–1.00054, 0.99973–1.00003 at 0, 20, 40 MPa | PASS |
| MX-group-0 | A | The default scale table starts at zero tension: `s_g(0)` is the group cap of the contact model at zero tension over its reference cap | registered: without clamping `s_g(0) = 0` to 1e-12; with clamping the zero row equals the direct cap ratio at 0 N to 1e-12 rel., and the table scale at 5 kN equals the direct cap ratio at 5 kN to 1e-9 rel. (bounded chain, affine in tension). Result: 0 without clamping; `s_g(0)` 0.82–0.87 (20 MPa) and 0.90–0.93 (40 MPa) of the 10 kN reference, laid cores lowest; both identities to round-off | PASS |
| MX-group-1 | I | One cap-weighted scale for all groups (`per_group=False`) on the same case and measures | backbone 0.046 % (0 MPa), 5.5 % (20 MPa), 4.8 % (40 MPa); work 0.9997–1.0000, 0.961–1.074, 0.944–1.073 | reported |

The armour laws are parallel spring–sliders at fixed contact pressure, so the Iwan law follows Masing's rules; it is
exact when every wire's slip interval is symmetric. The signed capstan bound makes the interval asymmetric (the
Expand All @@ -1205,6 +1209,19 @@ symmetric bounds). The interpolation in tension is the other approximation; the
exact scaling of the friction caps (MX-scale; guide Section 8.1). Biaxial bending is outside it (per-wire,
direction-tied response in CableXSec).

**Group laws (MX-group), registered on 2026-11-19 before any run.** Case: the 66 kV IEA Task 49 template,
bounded contact, armour friction of the template, laid-core law with the wedged trefoil and the filler profiles,
μ 0.46 on every core and profile contact ([Janocha2024] Table 2), armour winding stress 0, 20 and 40 MPa on both
armour layers (assumed clamping states, the 0 MPa case without manufacturing clamping); export at 10, 25, 50, 100,
150 and 200 kN, `kappa_max_1_m = 0.4`, 200 base points, `slip_scale=True` with the default reference and table.
The elastic full-slip part `EI_slip κ` is carried by the first group (scaling leaves it unchanged). Tests:
`tests/test_bending_law_groups.py`.

With clamping the laid cores scale unlike the armour (at 10 kN and 20 MPa the cores sit at 0.39 of their 100 kN
cap, the armour and the profiles at 0.46), which is why one scale for all groups misses the backbone by 5.5 % (MX-group-1)
while the summed group laws stay within 4.6e-4: the residual is the linear interpolation of each reference backbone
between its grid points, not the scaling.

## Cable over a sheave (gap SH)

Code `cablexsec/analysis/sheave.py` (`compute_sheave`, `sheave_contact`, `groove_pressure`);
Expand Down
29 changes: 28 additions & 1 deletion doc/file_formats.md
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,34 @@ tension_N,external_pressure_Pa,s,ds_dT_1_per_N,s_inner_armour,ds_dT_inner_armour
```

With a pressure axis the columns `ds_dpe_1_per_Pa` and
`ds_dpe_<group>_1_per_Pa` follow each `ds_dT` column. `Project` files store the
`ds_dpe_<group>_1_per_Pa` follow each `ds_dT` column. By default the table
starts at zero tension (guide Section 8.1).

`BendingLawExport.to_group_csv(directory)` writes one law per friction group
for a global model that sums them: `<group>_backbone.csv` (the backbone of the
group at the reference state on the export grid, after two comment lines that
name the group and give the slope beyond the last point) and
`<group>_slip_scale.csv` (the group's own scale `s_g`). `<group>` is the group name
with every character other than a letter, a digit, `.`, `-` or `_` replaced by
`_` (a numbered suffix where two names would meet); the comment line keeps the
name itself:

```text
# friction group laid_cores (laid_cores); scale s_laid_cores(T) in the group's scale table; M_g(kappa, T) = s B(kappa / s)
# beyond the last point the backbone continues with slope 0.000000000e+00 N m2
kappa_1_m,M_Nm
0.000000000e+00,0.000000000e+00
...
```

```text
tension_N,external_pressure_Pa,s,ds_dT_1_per_N
0.000000000e+00,0.000000000e+00,0.000000000e+00,1.000000000e-04
...
```

The law of group `g` at tension `T` is `s_g(T) B_g(κ / s_g(T))`; the first
group carries the elastic full-slip part, the others none. `Project` files store the
table with the law; project files written before it existed still load.

`cablexsec.io.global_export` also writes the section properties of a set of
Expand Down
23 changes: 22 additions & 1 deletion doc/global_local_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,12 @@ capstan bound included, and its Iwan elements keep their stiffnesses `k_i` while
`s = Σ R_g / Σ R_g,ref`, and their derivatives `∂/∂T` and `∂/∂p_e` (central differences of the contact model,
one-sided at zero; the bounded chain is affine, so they are its slopes).

By default the table runs over the exported tensions with zero tension in front. At zero tension the caps are those
of the contact model: zero without manufacturing clamping (every contact load then comes from the tension, so
`s → 0` and the law tends to its elastic part), the clamping caps otherwise (66 kV template with cores and profiles
at 20 MPa winding stress: `ρ_g(0)` 0.82–0.87 of the 10 kN reference). A global model then interpolates the scale
down to zero tension instead of holding its lowest value. An explicit `slip_scale_tensions_N` is used as given.

```python
export = cx.export_bending_law(
cable, tensions_N=[10e3, 70e3], kappa_max_1_m=0.036, n_points=300,
Expand All @@ -566,8 +572,19 @@ table = export.slip_scale
law = table.law_at(35e3, 0.5e6) # scaled law at one state
moment = table.moment(kappa, tension, pressure) # sliders follow the changing caps
table.to_csv("slip_scale.csv") # s, rho_g and derivatives per state
groups = export.slip_group_laws() # one law per friction group
moment = sum(g.backbone_at(kappa, 35e3) for g in groups) # sum of s_g B_g(kappa / s_g)
export.to_group_csv("groups") # <group>_backbone.csv, <group>_slip_scale.csv
```

One law per group. A global model that takes one scale per law can still carry the per-group scaling: it takes one
law per friction group, `M_g(κ; T) = s_g(T) B_g(κ / s_g(T))`, with `B_g` the backbone of the group at the reference
(`SlipGroupLaw`, from `BendingLawExport.slip_group_laws()`) and `s_g = ρ_g` its own scale, and sums the group laws.
The first group carries the elastic part `EI_slip κ` (the scaling leaves it unchanged); the others end on the
plateau of their full-slip friction moment. `to_group_csv` writes each backbone (`kappa_1_m,M_Nm`, with two `# `
lines that name the group and the slope beyond the last point) and each scale table (`tension_N,
external_pressure_Pa, s, ds_dT_1_per_N`, plus `ds_dpe_1_per_Pa` with a pressure axis).

Slider update. When the state changes, every element follows the return map with the new cap,
`e_i ← clip(e_i + Δκ, −ρ_g κ_y,i, ρ_g κ_y,i)` and `M = EI_slip κ + Σ k_i e_i`: the slip state is carried across, a
falling cap clips a sticking or slipping element at fixed curvature (friction work, `k_i |e_1| |e_0 − e_1|` in the
Expand All @@ -587,7 +604,11 @@ Checks (`tests/test_bending_law_slip_scale.py`; row MX-scale of the [benchmark r
43 %.

One scale or one per group. The single scale `s` keeps the stick stiffness and the full-slip moment exact and is
exact when every group scales alike. Otherwise it misplaces the transition. Largest error of the single-scale law
exact when every group scales alike. Otherwise it misplaces the transition. With armour clamping the laid cores
scale unlike the armour: on the 66 kV template with cores and filler profiles (μ 0.46) at 20 and 40 MPa winding
stress, 10–200 kN, one scale misses the exported backbone by up to 5.5 % and the cycle work by up to 7 %, while the
summed group laws stay within 4.6e-4 and 0.06 % (rows MX-group-B, MX-group-E and MX-group-1 of the
[benchmark register](benchmarks.md)). Largest error of the single-scale law
against the per-group law over 10–150 kN, reference 10 kN, on the virgin backbone and on cycles up to 1.5 times the
full-slip curvature (moment in % of the range; work per cycle at 1.5 times full slip):

Expand Down
2 changes: 2 additions & 0 deletions src/cablexsec/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
from cablexsec.analysis.bending_law import (
BendingLawExport,
IwanBendingLaw,
SlipGroupLaw,
SlipScaleTable,
export_bending_law,
)
Expand Down Expand Up @@ -334,6 +335,7 @@
__all__ = [
"BendingLawExport",
"IwanBendingLaw",
"SlipGroupLaw",
"SlipScaleTable",
"export_bending_law",
"LayerSlipCurvatures",
Expand Down
Loading
Loading