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
41 changes: 41 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,47 @@ All notable changes to CableXSec are recorded in this file. The format follows
monotonic curves in plotted curvature (not loops), and the record zero and centre. No
target, band, gated input or default changes; SV11-PLANE and SV11-GJ stay FAIL.

### Fixed

- Every public function of the submodules that takes a cable now reads the cable's own
materials when it is called directly, as the functions of `cablexsec` and
`cablexsec.api` already did. Before, `xi_for_layer`, `yun_shear_stack`, `ei_min_slip`
and 87 other functions of 36 modules (mechanics, analysis, adapters, plotting) used the
library values outside a material scope: Zeidan's inner armour gave ξ 1.000 instead of
0.832. Results through `cablexsec` and `cablexsec.api` do not change. A nested call
with the same cable object does not re-enter the scope (no measurable cost); a test
now checks every module.

### Documentation

- Credit: the coupled intralayer slip of laid cores (`core_core_coupling="relative"`, 0.2.1)
follows Skeie, Sødahl, Pettersen and Verde (2023, OMAE2023-104817,
doi:10.1115/OMAE2023-104817), who formulated the relative slip of three cores, its onset
and the coalescence of the slip zones; cited in `core_friction`, `station_coupling`, the
local analysis guide and doc/template_66kv.md. The largest friction stress saturates at
`π/3` times the onset, before the coalescence at `2π/(3√3) = 1.209`: the "full slip" of
their Table 1. New reported row SK23-T1: with the contact load per metre of helix the
onset is their Eq. 16 (2.2518e-5 1/mm against 2.25e-5), the saturation 1.0472 times the
onset against 1.049 (their model) and 1.053 (their FE).
- The bonded outer face (0.2.1): stuck, the inner support and the bond act in parallel,
`xi_tot = (K_s + K_b) / (K_s + K_b + k2)`. The 0.2.1 entry's "the stuck layer is
unchanged" holds for a rigid support only (Zeidan's outer armour, ξ = 1); with ξ 0.5
the bond raises it to 0.510. The friction cap stays the inner face's: the bond is a
separate elastic shear flow, and scaling the cap by `1 - xi_bond` would count it twice
(doc/benchmarks.md).
- The stuck-wire normal curvature `cos^4(a)` cites Sævik (2011) Eq. 50, the prescribed
normal curvature of the stuck helix.
- Validation report cells escape a literal `|` (as in `|cos|`).
- Version references of 0.2.1 in doc/template_66kv.md, doc/citing.rst (BibTeX key) and
DEVELOPMENT.md.

### Tests

- The CableDyn curvature-component test compares the strain gradient with a relative
tolerance of 1e-15 instead of exact equality.
- The per-worker numba cache folders of the tests have short names, below the 260-character
path limit of Windows.

## [0.2.1] - 2026-11-23

The Python interfaces are versioned but may change before `1.0.0`. The evidence for
Expand Down
2 changes: 1 addition & 1 deletion DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ python -m build --outdir dist
python -m twine check dist/*
python -m venv wheel-test
wheel-test\Scripts\python -m pip install dist\cablexsec-0.2.1-py3-none-any.whl
wheel-test\Scripts\python release\smoke_test_wheel.py --version 0.2.0
wheel-test\Scripts\python release\smoke_test_wheel.py --version 0.2.1
```

The wheel contains only the `cablexsec` package (with its bundled cable definitions)
Expand Down
1 change: 1 addition & 0 deletions VALIDATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ afterwards: a comparison that misses its target is reported as failed.
| **SV11-SIDE** | Which quantity Sævik normalised: static stress implied by each reading of the two sides | Sævik (2011) Fig. 21(a); Lukassen (2019) | larger side 272–334 MPa (CV 0.08), axial CV 0.45; model 271 MPa | stated, not gated | Info |
| **SV11-SUB** | SV11 metrics without the one-sided stations 2.1/2.5, with coincident pairs by geometric mean, SV11-GJ at 3.1/3.5 | Sævik (2011); Gjøsteen et al. (2027) | 1.89 / 1.12; 2.22 / 1.21; GJ 1.51 / 1.33 (corrected / sectional) | stated, not gated | Info |
| **SV11-NORM** | Hypothesis: one normalising static stress for all load cases | Sævik (2011) | median 2.06 (3 of 14), sectional 1.07 (13 of 14) | stated, not gated | Info |
| **SK23-T1** | Three tubes in core–core contact only: onset, the curvature where the largest friction stress stops growing, and coalescence of the slip zones (`core_core_coupling="relative"`), code-to-code | Skeie, Sødahl, Pettersen and Verde (2023, OMAE2023-104817), Table 1, model and FE | onset 2.2518e-5 1/mm with the load per metre of helix, as their Eq. 16 (2.2320e-5 per metre of cable) vs 2.25e-5; saturation 1.0472 × onset (π/3) vs 1.049 (model) and 1.053 (FE); coalescence 1.209 × onset | stated, not gated | Info |
| **AW-DONG25** | Armour wire anchored at both ends of one pitch at uniform curvature: stress at the anchor and peak, code-to-code | Dong et al. (2025), FE, Figs 14 and 25 | anchor 156.4 vs 156.9 MPa (source theory 147.8); peak 207.8 vs 204.5 MPa | stated, not gated | Info |
| **AW-ZT14** | Same at a = 4.92: normalised anchor and peak stress, code-to-code | Zhu and Tan (2014), FE, Figs 4–8 | 1.19 / 1.70 vs 2.22 (the FE far field is not in slip) | stated, not gated | Info |
| **DAI20-KAPPA** | Curvature at two stations inside a bellmouth against the rocking angle, steel-tube umbilical at 200 kN: contact angles predicted after identifying the bending stiffness on one curvature value | Dai, Sævik and Ye (2020), Fig. 9 | −0.87° (S2), −0.89° (S3); 59.1 kN m² identified | both within ±1.0° | Pass |
Expand Down
13 changes: 11 additions & 2 deletions doc/benchmarks.md
Original file line number Diff line number Diff line change
Expand Up @@ -1612,9 +1612,18 @@ into friction and dissipates about twice the measured work.
- the bond is an elastic spring through the polymer outside the wires, an
inner-loaded layered annulus free at the cable surface plus the strip
concentration (`annulus_mode1_compliance_inner`, `bonded_face_terms`);
- the stuck layer is unchanged;
- stuck, the inner support `K_s` and the bond `K_b` act in parallel:
`xi_tot = (K_s + K_b) / (K_s + K_b + k2)`, `k2 = EA_w sin^2(a) / r_h^2`.
It equals the support's `xi` for a rigid support (`xi = 1`, Zeidan's outer
armour) and is higher otherwise (`xi` 0.50 becomes 0.510 and 0.90 becomes
0.9004 on the Zeidan layer);
- in full slip the bond keeps `xi_bond` of the layer's plane-section
stiffness, added in parallel to the law (`bonded_face_ei`).
stiffness, added in parallel to the law (`bonded_face_ei`);
- the friction cap is not reduced by the bond. The slider is the shear flow
of the inner face, bounded by mu times the inner-face pressure; the bond is
a separate elastic shear flow through the polymer outside, which adds wire
stress without sharing that bound. Scaling the cap by `1 - xi_bond` would
count the bond twice.

**Zeidan.** The sheath sits on the outer armour with no tape (Table 5.2,
Fig. 5.2). With the outer face bonded:
Expand Down
2 changes: 1 addition & 1 deletion doc/citing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ power cables* (version 0.2.1) [Computer software]. https://github.com/SMI-Lab-In

.. code-block:: bibtex

@software{CableXSec_0_2_0,
@software{CableXSec_0_2_1,
author = {Seo, Jae Hoon},
title = {{CableXSec}: Component-resolved local cross-section mechanics of
dynamic power cables},
Expand Down
18 changes: 13 additions & 5 deletions doc/local_analysis_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -1000,10 +1000,13 @@ print(core.loads, core.xi, core.mu_effective, core.stick_EI_Nm2)
(`"absolute"`) every contact of a core, its neighbours included, resists the
slip of that core against the plane section, as for a helix on a fixed
cylinder: full slip at `π/2` times the onset curvature. `"relative"` is a
coupled intralayer slip model of laid cores: neighbouring cores touch at
the same axial position, so the friction between them resists their
relative slip `u_i − u_j`, while the filler and ring contacts keep the
absolute slip. The stations of the cores at one axial position form a
coupled intralayer slip model of laid cores after Skeie, Sødahl, Pettersen
and Verde (2023, OMAE2023-104817), who formulated the relative slip of
three cores, its onset and the coalescence of the slip zones at `π/3`:
neighbouring cores touch at the same axial position, so the friction
between them resists their relative slip `u_i − u_j`, while the filler and
ring contacts keep the absolute slip (the interlayer share and the
direction-tied cap are this library's). The stations of the cores at one axial position form a
group whose intralayer friction shares sum to zero; the intralayer share of
a station is bounded by `σ0 μ_cc (q_cc/q) |sin β| min(ψ, π/n)` (`ψ` from the
neutral axis), the interlayer share by the Papailiou cap with
Expand All @@ -1012,6 +1015,11 @@ print(core.loads, core.xi, core.mu_effective, core.stick_EI_Nm2)
contact only (three cores) slip starts at the same onset, the largest
frozen friction stress is 2/3 and the full-slip moment `√3/2` of the
absolute values, and full slip comes at `2π/(3√3) = 1.209` times the onset.
The largest friction stress stops growing earlier, at `π/3 = 1.047` times
the onset, when the slip front passes `π/3` from the neutral axis; beyond
it only the moment still grows. Skeie et al.'s Table 1 "full slip"
curvature (1.049 times the onset in their model, 1.053 in their FE) is this
saturation, not the coalescence at 1.209 (validation row SK23-T1).
An independent field solver of the coupled axial equilibrium of the three
cores (`validation/scripts/coupled_core_slip_reference.py`) gives the same
onset, full-slip curvature, moment–curvature, friction-force distribution
Expand Down Expand Up @@ -1079,7 +1087,7 @@ print(core.loads, core.xi, core.mu_effective, core.stick_EI_Nm2)
(Skeie and Sødahl 2012, Eq. 2.31) and all slip from
`q expm1(μ sin β π/2) / (ξ EA_core sin² β cos β)` (Papailiou 1997, Eq. 15;
with `core_core_coupling="relative"` the full-slip curvature of the coupled
stations, `core_full_slip_curvature`);
stations, `core_full_slip_curvature`, Skeie et al. 2023);
both curvatures are reported per case and are nodes of the backbone grid.
With `CoreFrictionSpec(core_shear=False, strand_slip=False)` the backbone
starts on `compute_stiffness(cable).ei_max_Nm2`; with the core insulation
Expand Down
6 changes: 3 additions & 3 deletions doc/template_66kv.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ armour governs):
| `distributed` | 1.30e-9 | 7.77e-10 |

Since the normal local bending of the wires follows their slip state
(CHANGELOG, Unreleased), the largest wire damage of this record (0.1 s
(CHANGELOG, 0.2.1), the largest wire damage of this record (0.1 s
sampling, noise 4e-4 1/m) is 0.23–0.27 % higher for the inner armour and
0.05–0.06 % higher for the outer armour in all four columns, at the same
wire and fibre; the table keeps its earlier values, like the other
Expand Down Expand Up @@ -267,8 +267,8 @@ What the comparison shows:
raises the half-height by a further 0.03 kN·m.
- **Core–core coupling.** With `CoreFrictionSpec(core_core_coupling="relative")`
(the coupled intralayer slip model of the local analysis guide,
Section 6.1) the friction between neighbouring cores acts on their relative
slip. At 50 kN with the default coefficients (0.2) the bounded trefoil puts
Section 6.1, after Skeie et al. 2023, OMAE2023-104817) the friction between
neighbouring cores acts on their relative slip. At 50 kN with the default coefficients (0.2) the bounded trefoil puts
67 % of the core contact load on the core–core contacts; the solved radial
state has no core–core contact force at that tension (98 % of the load is
on the filler), so the two options agree on it. On the bounded state the cores reach full slip at 1.22 instead of
Expand Down
5 changes: 5 additions & 0 deletions src/cablexsec/analysis/beam_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
from cablexsec.api import _prepare_mkappa_law
from cablexsec.cable_adapters import require_fully_specified
from cablexsec.cables.schema import CableData, uses_cable_materials
from cablexsec.cables.schema import scope_entry_points as _scope_entry_points
from cablexsec.exceptions import CableInputError, CableSolverError
from cablexsec.mechanics.bend_restrictor import ArticulatedRestrictor
from cablexsec.mechanics.core_friction import (
Expand Down Expand Up @@ -1742,3 +1743,7 @@ def _simulate_along_wire(
notes=tuple(notes),
along_wire=aw_out,
)


# Public entry points read the cable's own materials when called directly.
_scope_entry_points(globals(), __all__)
5 changes: 5 additions & 0 deletions src/cablexsec/analysis/bending_law.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
import numpy as np
from numpy.typing import ArrayLike, NDArray

from cablexsec.cables.schema import scope_entry_points as _scope_entry_points
from cablexsec.exceptions import CableInputError
from cablexsec.mechanics.friction_law import FrictionLaw
from cablexsec.mechanics.papailiou import (
Expand Down Expand Up @@ -1821,3 +1822,7 @@ def caps(tension: float, pressure: float | None) -> FloatArray:
group_cap_dT_Nm_per_N=d_t,
group_cap_dpe_Nm_per_Pa=d_p,
)


# Public entry points read the cable's own materials when called directly.
_scope_entry_points(globals(), __all__)
5 changes: 5 additions & 0 deletions src/cablexsec/analysis/capacity.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@
CylindricalShellLayer,
HelicalLayer,
)
from cablexsec.cables.schema import scope_entry_points as _scope_entry_points
from cablexsec.exceptions import CableInputError, CableSchemaError
from cablexsec.materials import library
from cablexsec.mechanics.axisymmetric import (
Expand Down Expand Up @@ -946,3 +947,7 @@ def compute_capacity(
),
),
)


# Public entry points read the cable's own materials when called directly.
_scope_entry_points(globals(), __all__)
5 changes: 5 additions & 0 deletions src/cablexsec/analysis/capacity_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
from numpy.typing import ArrayLike, NDArray

from cablexsec.cables.schema import CableData
from cablexsec.cables.schema import scope_entry_points as _scope_entry_points
from cablexsec.exceptions import CableInputError
from cablexsec.provenance import Provenance

Expand Down Expand Up @@ -1390,3 +1391,7 @@ def capacity_extremes(
if len(results) < 2:
raise CableInputError("an extreme-value fit needs at least two seeds")
return gumbel_fit([r.max_utilisation for r in results], fractile=fractile)


# Public entry points read the cable's own materials when called directly.
_scope_entry_points(globals(), __all__)
5 changes: 5 additions & 0 deletions src/cablexsec/analysis/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
Layer,
is_serving,
)
from cablexsec.cables.schema import scope_entry_points as _scope_entry_points
from cablexsec.exceptions import CableInputError, CableSchemaError
from cablexsec.materials import library
from cablexsec.mechanics.core_friction import (
Expand Down Expand Up @@ -1910,3 +1911,7 @@ def core_component_utilisation(
usage = np.maximum(usage, peak / modulus / limit.value)
best = usage if best is None else np.maximum(best, usage)
return best


# Public entry points read the cable's own materials when called directly.
_scope_entry_points(globals(), __all__)
5 changes: 5 additions & 0 deletions src/cablexsec/analysis/compression.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
HelicalLayer,
HelicalStrandedLayer,
)
from cablexsec.cables.schema import scope_entry_points as _scope_entry_points
from cablexsec.exceptions import CableInputError
from cablexsec.materials import library
from cablexsec.mechanics.stiffness import axial_stiffness_by_layer
Expand Down Expand Up @@ -1466,3 +1467,7 @@ def compute_compression_capacity(
kappa_component_1_m=k_comp if component_limits else np.zeros(0),
governing_component=tuple(comp_governing),
)


# Public entry points read the cable's own materials when called directly.
_scope_entry_points(globals(), __all__)
5 changes: 5 additions & 0 deletions src/cablexsec/analysis/core_screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
helical_layer_fretting,
)
from cablexsec.cables.schema import CableData, CylindricalOffsetLayer
from cablexsec.cables.schema import scope_entry_points as _scope_entry_points
from cablexsec.exceptions import CableInputError, CableLookupError, CableSchemaError
from cablexsec.materials import library
from cablexsec.materials.sn_curves import BlockedSNCurveError, get_sn_curve
Expand Down Expand Up @@ -707,3 +708,7 @@ def face_mu(partner: CylindricalOffsetLayer | None, given: float | None) -> floa
D_strain_life=d_life,
strain_life_constants="" if life_constants is None else life_constants.name,
)


# Public entry points read the cable's own materials when called directly.
_scope_entry_points(globals(), __all__)
5 changes: 5 additions & 0 deletions src/cablexsec/analysis/electrical_life.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
from numpy.typing import NDArray

from cablexsec.cables.schema import CylindricalOffsetLayer
from cablexsec.cables.schema import scope_entry_points as _scope_entry_points
from cablexsec.exceptions import CableInputError
from cablexsec.provenance import Provenance, ValidatedRange, check_range

Expand Down Expand Up @@ -261,3 +262,7 @@ def compute_electrical_life(
limitations=tuple(limitations),
),
)


# Public entry points read the cable's own materials when called directly.
_scope_entry_points(globals(), __all__)
5 changes: 5 additions & 0 deletions src/cablexsec/analysis/frictional_heating.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
from cablexsec.api import compute_mkappa
from cablexsec.cable_adapters import structural_armour_layers
from cablexsec.cables.schema import CableData, CylindricalOffsetLayer
from cablexsec.cables.schema import scope_entry_points as _scope_entry_points
from cablexsec.exceptions import CableInputError
from cablexsec.mechanics.clamp_layer import anchored_wire_node_dissipation
from cablexsec.mechanics.papailiou import compute_mkappa_wire_slip_front
Expand Down Expand Up @@ -678,3 +679,7 @@ def heater_power(
updates=updates,
network=network,
)


# Public entry points read the cable's own materials when called directly.
_scope_entry_points(globals(), __all__)
5 changes: 5 additions & 0 deletions src/cablexsec/analysis/kinematics.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@

from cablexsec._numba import HAVE_NUMBA
from cablexsec.cables.schema import CableData, HelicalLayer
from cablexsec.cables.schema import scope_entry_points as _scope_entry_points
from cablexsec.exceptions import CableInputError, CableSchemaError
from cablexsec.materials import library
from cablexsec.mechanics.core_friction import (
Expand Down Expand Up @@ -1053,3 +1054,7 @@ def kinematic_history(
limitations=tuple(limitations),
),
)


# Public entry points read the cable's own materials when called directly.
_scope_entry_points(globals(), __all__)
5 changes: 5 additions & 0 deletions src/cablexsec/analysis/neutral_axis.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
import numpy as np
from numpy.typing import NDArray

from cablexsec.cables.schema import scope_entry_points as _scope_entry_points
from cablexsec.exceptions import CableInputError
from cablexsec.provenance import Provenance

Expand Down Expand Up @@ -695,3 +696,7 @@ def compute_neutral_axes(
core_stick_EI_Nm2=core_stick,
core_description=core_description,
)


# Public entry points read the cable's own materials when called directly.
_scope_entry_points(globals(), __all__)
5 changes: 5 additions & 0 deletions src/cablexsec/analysis/rig_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
structural_armour_layers,
)
from cablexsec.cables.schema import CableData
from cablexsec.cables.schema import scope_entry_points as _scope_entry_points
from cablexsec.exceptions import CableInputError, CableXSecError
from cablexsec.materials import library
from cablexsec.mechanics.bend_restrictor import CurvatureField
Expand Down Expand Up @@ -1713,3 +1714,7 @@ def extreme(g: GaugeResult) -> bool:
"where the sectional law alone applies.",
)
return tuple(out)


# Public entry points read the cable's own materials when called directly.
_scope_entry_points(globals(), __all__)
5 changes: 5 additions & 0 deletions src/cablexsec/analysis/sea_state_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
from cablexsec.analysis.termination import TerminationSpec
from cablexsec.analysis.thermal_coupling import ThermalHistory, ThermalState
from cablexsec.cables.schema import CableData
from cablexsec.cables.schema import scope_entry_points as _scope_entry_points
from cablexsec.exceptions import CableInputError, CableSchemaError
from cablexsec.io.cabledyn import (
CableDynLineType,
Expand Down Expand Up @@ -1583,3 +1584,7 @@ def _json_default(value: Any) -> Any:
if isinstance(value, Path):
return str(value)
raise TypeError(f"not JSON serialisable: {type(value).__name__}")


# Public entry points read the cable's own materials when called directly.
_scope_entry_points(globals(), __all__)
5 changes: 5 additions & 0 deletions src/cablexsec/analysis/section_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
structural_armour_layers,
)
from cablexsec.cables.schema import CableData
from cablexsec.cables.schema import scope_entry_points as _scope_entry_points
from cablexsec.exceptions import CableInputError, CableSchemaError
from cablexsec.materials import library
from cablexsec.mechanics.core_friction import (
Expand Down Expand Up @@ -1691,3 +1692,7 @@ def compute_load_sharing(
),
),
)


# Public entry points read the cable's own materials when called directly.
_scope_entry_points(globals(), __all__)
Loading
Loading