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
2 changes: 1 addition & 1 deletion ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ Functional kernels operating on arrays; most are not called directly by users.
| `conductor_fatigue.py` | `assess_conductor_fatigue` behind `compute_conductor_fatigue`: ring-by-ring strand-slip strain, bulk Miner sums (optional user S-N options), opt-in trellis SWT fretting (not validated) and strain life above yield |
| `compression.py` | `compression_screen`, `compute_compression_capacity`: armour in compression; lateral buckling lower bound (Sævik–Thorsen Eq. 19) and round-wire limit with cyclic-curvature knock-down (Li–Vaz), friction first-slip gate, radial (bird-cage) buckling of the armour stack on the outboard sheath and tape foundation with hoop-capacity and yield interaction (Eq. 35), DNV-RP-F401 utilisation factors, combined tension/compression–curvature curve ([doc/uls_guide.md](doc/uls_guide.md)) |
| `coiling.py` | `compute_coiling`: a cable coiled into a static tank (curvature 2/D with one twist per winding, Chae, Nam and Shim 2023); the twisted section solved first (radial, axial and torsional), then the bending turned through each winding on fixed fibres; per armour layer the extreme wire stresses, the friction stress, the contact pressure, the radial-buckling (bird-caging) capacity in wire stress and the first-yield check (beyond first yield the result says the elastic stresses are not valid); the friction-free lateral bound is reported, not used; unbonded flexible pipes are refused and counter-helical (non-coilable) armour is flagged |
| `bending_law.py` | `export_bending_law`, `IwanBendingLaw`, `BendingLawExport`: the section moment–curvature backbone at several tensions decomposed into an exact Iwan law (parallel elastic–perfectly plastic elements) for global solvers; tension interpolation; JSON, CSV and kN–m table writers ([doc/global_local_guide.md](doc/global_local_guide.md) Section 8) |
| `bending_law.py` | `export_bending_law`, `IwanBendingLaw`, `BendingLawExport`, `SlipScaleTable`: the section moment–curvature backbone at several tensions decomposed into an Iwan law (parallel elastic–perfectly plastic elements) for global solvers; tension interpolation or the slip scaling variable (per-group yield curvatures scaled by the friction caps over tension and external pressure); JSON, CSV and kN–m table writers ([doc/global_local_guide.md](doc/global_local_guide.md) Section 8) |
| `sheave.py` | `compute_sheave`: a cable pulled over a sheave; groove line and global pressure, cosine groove distribution and run-on contact (Feyrer 2015), wire stresses, capacity utilisation and per-passage damage from the section analyses |
| `electrical_life.py` | `compute_electrical_life`: coaxial field and relative water-tree ageing factor |
| `curve_comparison.py` | Sequence-preserving comparison of measured cyclic curves (benchmark support) |
Expand Down
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,38 @@ All notable changes to CableXSec are recorded in this file. The format follows
moment) and closes the work balance (1.1e-15 of the friction work). `SectionLaw` and the bending-test simulator keep a
fixed pressure (their leg solver evaluates trial curvatures without a sample time), and so
does the exported bending law.
- The exported bending law can carry a slip scaling variable: `export_bending_law(...,
slip_scale=True)` adds `BendingLawExport.slip_scale`, a `SlipScaleTable` with the law at a
reference tension split into friction groups (one per armour layer, `laid_cores` for the core
lay stage) and each group's scale `ρ_g = R_g/R_g,ref` of its full-slip friction moment over a
table of tensions and, optionally, external pressures (`slip_scale_tensions_N`,
`slip_scale_external_pressure_Pa`), with the single cap-weighted scale `s` and the derivatives
`∂/∂T` and `∂/∂p_e`. The friction bounds of the direction-tied law are proportional to `P1+P2`
at fixed stick stiffness, so a group's law at another state is the reference law with fixed
element stiffnesses and yield curvatures times `ρ_g`, and under a changing state every element
follows the return map with the new cap (`SlipScaleTable.moment`, `.law_at`,
`.dissipated_energy`). New validation row MX-scale: the section law is homogeneous in the
bound (4e-16), the group yield curvatures scale exactly (8e-14), and a tension cycle inside the
bending cycles adds nothing to the fixed-tension residual of the Iwan law (ratio 1.02; with
symmetric wire bounds the scaled law is the contact-tension history of `compute_mkappa` to
1e-14). One scale for all groups is exact when they scale alike (66 kV template, tension) and
misses the per-group law by up to 0.3 % (33 kV three-core), 12 % (Ménard) and 21 % (66 kV with
external pressure). The JSON law with a slip scale is format `cablexsec.bending_law/2` (a new
`slip_scale` object; version-1 fields unchanged); `SlipScaleTable.to_csv` writes the table.
Torque is not a table variable, and the internal-ring slip of resolved strands is refused.
Project files written before `BendingLawExport.slip_scale` existed still load: the project
codec accepts a missing field that has a default. `export_bending_law` refuses
`contact_pressure_Pa` and `contact_tension_history_N` as options.

### Fixed

- The exported bending law no longer claims to follow `compute_mkappa` exactly. With the signed
capstan bound the slip interval of a wire is asymmetric (the falling bound is the rising one
times `exp(−λψ)`), which no Masing element carries; the Iwan law misses the section law's loops
by about 0.1 % of the moment range on bending cycles near full slip (0.08–0.26 % on the 66 kV,
Ménard and 33 kV three-core templates), and by 0.02 % at μ = 0.02. The provenance of
`export_bending_law` and `cabledyn_bending_law`, the module notes and the global–local guide
say so; the law itself is unchanged.
- The frictional heat of `compute_thermal_fatigue` (`frictional_heat_W_m`, `pi2` and
`friction_temperature_rise_K` of every block) is now the dissipation of the distributed
helix friction law, whatever friction law the fatigue uses. It was the work of the
Expand Down
1 change: 1 addition & 0 deletions VALIDATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ afterwards: a comparison that misses its target is reported as failed.
| **σ_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 |
| **MK-Tcyc** | Moment–curvature law with tension cycling inside the bending cycles; work balance under the changing friction bound | fatigue-path friction stress, same kernels | 3.4e-16; 1.1e-15 | <1e-12 | Pass |
| **MX-scale** | Exported bending law with a slip scaling variable: bound homogeneity, scaled group yield curvatures, tension cycle inside the bending cycles | `compute_mkappa` at another tension; contact-tension history | 4.1e-16; 8.3e-14; ratio 1.02 | <1e-12; <1e-9; ≤1.25 | 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 |
Expand Down
17 changes: 12 additions & 5 deletions doc/benchmarks.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ model) is the full construction.
| 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 (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 |
| 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 |
| 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 @@ -137,6 +137,7 @@ All rows are verification, not validation. Source: the scorecard
| 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 |
| MK-Tcyc | I | `compute_mkappa` with a contact-tension history cycling inside the bending cycles vs the moment of the fatigue-path friction stress on the same history; work-balance residual over the friction work | < 1e-12 rel.; < 1e-12 rel. | 3.4e-16; 1.1e-15 | PASS |
| MX-scale | I | Slip-scaled bending law: `compute_mkappa` at 70 kN vs the 20 kN law with the bound scaled (66 kV, cores); group elements at 60 kN vs the 10 kN elements with yield curvatures scaled (Ménard); tension cycle inside the bending cycles, scaled law vs the contact-tension history over the fixed-tension Iwan residual | < 1e-12 rel.; < 1e-9 rel.; ratio ≤ 1.25 | 4.1e-16; 8.3e-14; 1.02 | 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 |
Expand Down Expand Up @@ -659,10 +660,16 @@ guide [global_local_guide.md](global_local_guide.md), Section 8.
| MX-3 | I | Stick tangent, full-slip slope and virgin backbone of the decomposition | 1e-16 to 2e-14 | PASS |
| MX-4 | I | Progressive law, Ménard at 50 kN | ≤ 0.06 % of the range, work ≤ 0.02 % | reported |
| MX-5 | MM | Hysteretic bending of a global program with the exported table | not run | open |

The law is exact for planar bending at fixed contact pressure because the armour laws are parallel spring–sliders;
the only approximations are the backbone discretisation and the interpolation in tension. Biaxial bending is
outside it (per-wire, direction-tied response in CableXSec).
| 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 | 4.1e-16; 8.3e-14; 1.02 (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 |

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
falling bound is the rising one times `exp(−λψ)`), and the MX-1 residual comes from that besides the backbone
discretisation (bending at ±0.03 1/m on the Ménard cable: 0.14 % of the range at 10 kN with 300 points, 0.02 % with
symmetric bounds). The interpolation in tension is the other approximation; the slip scale replaces it with 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).

## Cable over a sheave (gap SH)

Expand Down
11 changes: 8 additions & 3 deletions doc/concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,14 @@ moment–curvature curve at a set of tensions and decomposes it into parallel
elastic–perfectly-plastic elements, an Iwan model. For planar bending at fixed
contact pressure the armour law is itself a set of parallel spring–sliders,
so the exported law follows Masing's rules and reproduces `compute_mkappa`,
memory of earlier reversals included. The law is planar, and tension and
annulus state are fixed within one law. Export tension levels no more than
about 20 kN apart (Section 8 of the global–local guide).
memory of earlier reversals included, to about 0.1 % of the moment range (the
asymmetric slip interval of the signed capstan bound). The law is planar, and
tension and annulus state are fixed within one law. Export tension levels no
more than about 20 kN apart, or export the slip scale (`slip_scale=True`):
tension and external pressure scale the friction caps of each armour layer and
of the cores, not their stiffness, so one law with scaled yield curvatures
covers the table and its sliders follow a changing tension (Section 8 of the
global–local guide).

## Every result says where it came from

Expand Down
46 changes: 44 additions & 2 deletions doc/file_formats.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ and the rules it is checked against.
| CableDyn 0.4.0 station table | `cablexsec.io.read_cabledyn_station_table` | CableDyn | CSV, tab or whitespace |
| Sea-state batch specification | `cablexsec-batch`, `load_batch_spec` | (by hand) | JSON |
| Project | `Project.load` | `Project.save` | JSON |
| Hysteretic bending law | — | `BendingLawExport.to_csv`, `.to_json` | CSV, JSON |
| Hysteretic bending law | — | `BendingLawExport.to_csv`, `.to_json`, `SlipScaleTable.to_csv` | CSV, JSON |

## Every file follows three rules

Expand Down Expand Up @@ -556,7 +556,8 @@ objects and the stale-result checks.

The first column is the curvature [1/m]; each further column is the moment
[N m] at the tension named in its heading (`M_<tension>N_Nm`).
- `to_json(path)`: an object with `format` (`cablexsec.bending_law/1`),
- `to_json(path)`: an object with `format` (`cablexsec.bending_law/1`; `/2`
with a slip scale, below),
`hysteresis_rule` (`masing_iwan`), `planar_only`, `tension_N`, `kappa_1_m`,
`moment_Nm` (one backbone per tension), `ei_slip_Nm2` (the full-slip
stiffness per tension), `elements` (the stiffness and yield curvature of the
Expand All @@ -570,6 +571,47 @@ The law is planar and its contact state is fixed at each tension. Between
tensions it is interpolated linearly, as Section 8 of the
[global–local guide](global_local_guide.md) explains.

### Slip scale (format version 2)

`export_bending_law(..., slip_scale=True)` adds the slip scaling variable
(`BendingLawExport.slip_scale`, a `SlipScaleTable`; guide Section 8.1). The
JSON law then has `format` `cablexsec.bending_law/2` and one more object,
`slip_scale`; every version-1 field is unchanged, and a law without a slip
scale is still written as version 1, byte for byte as before. The object holds:

| Key | Content |
| --- | --- |
| `rule` | `yield_curvature_scaling` |
| `variables` | `["tension_N"]`, or `["tension_N", "external_pressure_Pa"]` with a pressure axis |
| `reference_tension_N`, `reference_external_pressure_Pa` | state of the reference law |
| `tension_N`, `external_pressure_Pa` | table axes (`external_pressure_Pa` is `null` without a pressure axis) |
| `ei_slip_Nm2` | full-slip stiffness [N m²] |
| `reference_elements` | `stiffness_Nm2`, `yield_curvature_1_m` of all groups merged at the reference |
| `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` |

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
`e_i ← clip(e_i + Δκ, −ρ_g κ_y,i, ρ_g κ_y,i)` (the return map with the cap of
the current state). A reader that carries one scale uses `reference_elements`
and `scale` in place of `ρ_g`; that is exact only when the groups scale alike
(guide Section 8.1). The table is interpolated linearly in tension and
pressure; the derivatives are those of the contact model at the table states.

`SlipScaleTable.to_csv(path)` writes the table as CSV, one row per state
(tension, then pressure):

```text
tension_N,external_pressure_Pa,s,ds_dT_1_per_N,s_inner_armour,ds_dT_inner_armour_1_per_N,s_outer_armour,ds_dT_outer_armour_1_per_N
2.000000000e+04,0.000000000e+00,1.000000000e+00,5.000000000e-05,...
```

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
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
load cases as neutral CSV tables (`section_properties_csv`,
`bending_tables_csv`), each preceded by comment lines starting with `# ` that
Expand Down
Loading
Loading