Your first cable
Goal: load two bundled published cables, list their layers, compute their axial, torsional and bending stiffness with the full-slip and no-slip bounds, and see how tension changes the armour contact pressure and the curvature at which the armour starts to slip.
Script:
doc/tutorials/scripts/tutorial_01_first_cable.py
· Run time: a few seconds
Run it from a source checkout:
python doc/tutorials/scripts/tutorial_01_first_cable.py
The code blocks below are taken from the script and the output blocks are what
it prints. tests/test_tutorials_01_02.py runs the script and checks that the
two still agree.
Imports
import sys
from pathlib import Path
import matplotlib.pyplot as plt
import numpy as np
import cablexsec as cx
from cablexsec.mechanics.papailiou import (
full_slip_curvature,
slip_onset_curvature,
)
from cablexsec.mechanics.radial_cable import solve_cable_radial_states
FIGURES = (
Path(sys.argv[1])
if len(sys.argv) > 1
else Path(__file__).resolve().parents[1] / "figures"
)
The slip-curvature functions and the solved radial state come from the
mechanics modules. Everything else is on the top-level cablexsec namespace.
1. A cable is a list of layers
The cable of Ménard and Cartraud (2023) is a three-core dynamic cable with two
contra-wound layers of round armour wires. Every value in its definition is
taken from that source, and the YAML file cites it layer by layer
(cablexsec/cables/menard2023.yaml).
cable = cx.load_cable(cx.menard2023_yaml_path())
print(cable.cable.name)
print(f"source: {cable.cable.source_document}")
print(f"{'layer':<18} {'type':<19} {'material':<24} geometry")
for layer in cable.layers:
if layer.layer_type == "helical":
geometry = (
f"{layer.n_wires} wires, d = {layer.d_wire_m * 1e3:.1f} mm, "
f"lay {layer.lay_angle_deg:.1f} deg, R = {layer.r_helix_m * 1e3:.1f} mm"
)
elif layer.layer_type == "cylindrical_offset":
geometry = (
f"{layer.n_cores} cores at {layer.r_offset_m * 1e3:.1f} mm, "
f"r = {layer.r_inner_m * 1e3:.1f}-{layer.r_outer_m * 1e3:.1f} mm"
)
else:
geometry = f"r = {layer.r_inner_m * 1e3:.1f}-{layer.r_outer_m * 1e3:.1f} mm"
print(f"{layer.name:<18} {layer.layer_type:<19} {layer.material:<24} {geometry}")
Ménard 2023 reference cable
source: Ménard & Cartraud, Marine Structures 91 (2023) 103465
layer type material geometry
cu_conductor cylindrical_offset copper_menard2023 3 cores at 17.7 mm, r = 0.0-4.0 mm
xlpe_insulation cylindrical_offset xlpe_menard2023 3 cores at 17.7 mm, r = 4.0-11.3 mm
power_core_shield cylindrical_offset hdpe_menard2023 3 cores at 17.7 mm, r = 11.3-15.3 mm
inner_sheath cylindrical hdpe_menard2023 r = 32.9-37.4 mm
inner_armour helical galvanised_steel_armour 55 wires, d = 4.0 mm, lay 20.1 deg, R = 39.4 mm
bedding cylindrical pfr_menard2023 r = 41.4-42.0 mm
outer_armour helical galvanised_steel_armour 63 wires, d = 4.0 mm, lay 19.6 deg, R = 44.0 mm
outer_sheath cylindrical hdpe_menard2023 r = 46.0-50.5 mm
The three power cores are cylindrical_offset layers: one definition places
three identical cores on the lay radius. The armour layers are helical, with
the wire count, wire diameter, lay angle and helix radius R.
Lengths in a cable file are in metres; the script prints millimetres. Every
layer type and key is described on the file formats
page.
2. The bending stiffness has two bounds
stiffness = cx.compute_stiffness(cable)
print(f"EA, twist fixed {stiffness.ea_fixed_N / 1e6:8.1f} MN")
print(f"EA, twist free {stiffness.ea_free_N / 1e6:8.1f} MN")
print(f"GJ (armour lay) {stiffness.gj_Nm2 / 1e3:8.1f} kN m^2")
print(f"tension-twist K_et {stiffness.axial_torsion_coupling_Nm / 1e3:8.1f} kN m")
print(f"EI full slip {stiffness.ei_min_Nm2 / 1e3:8.2f} kN m^2")
print(f"EI no slip (xi) {stiffness.ei_max_Nm2 / 1e3:8.2f} kN m^2")
print(f"EI plane section {stiffness.ei_plane_section_Nm2 / 1e3:8.2f} kN m^2")
for name, xi in stiffness.xi_per_layer.items():
print(f"xi {name:<17} {xi:8.3f}")
EA, twist fixed 280.2 MN
EA, twist free 276.1 MN
GJ (armour lay) 59.2 kN m^2
tension-twist K_et 494.1 kN m
EI full slip 3.57 kN m^2
EI no slip (xi) 189.82 kN m^2
EI plane section 234.18 kN m^2
xi inner_armour 0.686
xi outer_armour 0.888
ea_fixed_N holds the ends against twist. ea_free_N lets them turn, which
removes the tension–twist coupling K_et of the helical layers. gj_Nm2 is
the torsional stiffness that the helical lay gives under extension; the
independent torsion of the components is not included.
ei_min_Nm2 is the full-slip bound: every wire and core bends about its own
axis. It is within 0.6 % of the analytical 3.593 kN m² of the source.
ei_max_Nm2 is the no-slip bound: the wires stick and follow the bending of
the section, and their contribution is reduced by the shear coefficient ξ
of the layers between the wires and their support (Yun et al. 2020).
ei_plane_section_Nm2 is the same assembly with ξ = 1.
The bending stiffness of a slipping cable spans a factor of about 53 between the two bounds. Where it sits depends on the curvature, the history and the contact pressure. That is why CableXSec computes the bending response as a hysteretic law and not as one number.
3. Tension raises the contact pressure
Friction between the armour wires and their neighbours needs a normal pressure. The Ménard cable declares no manufacturing clamping per layer. It carries instead the uniform external pressure of 0.3 MPa that the source calibrated against its bending test, labelled as a published calibration. Tension adds to this pressure, because a helical layer under tension presses inwards.
print(cx.clamping_state(cable).describe())
tensions = (0.0, 50e3, 100e3) # N
solved = solve_cable_radial_states(cable, tensions)
print(
f"{'T [kN]':>6} {'layer':<13} {'P bounded':>9} {'P solved':>9}"
f" {'k onset':>8} {'k full':>8}"
)
for tension, state in zip(tensions, solved, strict=True):
specs = cx.cable_to_mkappa_specs(cable, tension, contact_model="bounded")
p_solved = state.armour_contact_pressure()
for layer, spec in zip(cable.helical_layers, specs, strict=True):
print(
f"{tension / 1e3:6.0f} {layer.name:<13}"
f" {spec.contact_pressure_Pa / 1e6:9.3f} {p_solved[layer.name] / 1e6:9.3f}"
f" {slip_onset_curvature(spec):8.4f} {full_slip_curvature(spec):8.4f}"
)
inner_armour: not declared; outer_armour: not declared; initial external pressure 300 kPa (published_calibration)
T [kN] layer P bounded P solved k onset k full
0 inner_armour 0.600 0.448 0.0009 0.0015
0 outer_armour 0.600 0.428 0.0007 0.0012
50 inner_armour 1.412 0.882 0.0022 0.0036
50 outer_armour 0.859 0.337 0.0010 0.0017
100 inner_armour 2.223 1.625 0.0034 0.0057
100 outer_armour 1.117 0.557 0.0013 0.0022
The two pressure columns are the armour contact pressure P1 + P2 on both
wire faces, in MPa, from two contact models. The last two columns are the
curvatures, in 1/m, at which the first and the last wire of the layer start to
slip in the bounded model.
The bounded chain (contact_model="bounded") is the default of the
bending, stress and fatigue functions. It is a fixed-radius chain that passes
the pressure from layer to layer, so it carries the 0.3 MPa to both faces of
each armour layer: 0.600 MPa at zero tension.
The solved radial state (solve_cable_radial_states, or
contact_model="solved" in the analysis functions) is the elastic contact
problem of the whole section, the three cores included. It gives lower
pressures on this cable, and the outer sheath separates from the outer armour
between 50 and 60 kN. The solved radial contact state
notes compare the two models.
k onset is the curvature at which the first wire, on the neutral axis of
bending, starts to slip. k full is the curvature at which the last wire, on
the extreme fibre, slips. Both scale with the contact pressure, so a higher
tension keeps the armour in stick to a larger curvature.
4. Without published clamping, only tension clamps
The IEA Wind Task 49 66 kV template is a three-core inter-array cable
built from published sources (66 kV template). Its
source does not state the manufacturing clamping, so the template declares it
as zero with the basis not_published.
template = cx.load_cable(cx.iea_task49_66kv_yaml_path())
template_stiffness = cx.compute_stiffness(template)
print(template.cable.name)
print(f"EA, twist fixed {template_stiffness.ea_fixed_N / 1e6:8.1f} MN")
print(f"EI full slip {template_stiffness.ei_min_Nm2 / 1e3:8.2f} kN m^2")
print(f"EI no slip (xi) {template_stiffness.ei_max_Nm2 / 1e3:8.2f} kN m^2")
print(cx.clamping_state(template).describe())
specs = cx.cable_to_mkappa_specs(template, 100e3, contact_model="bounded")
for layer, spec in zip(template.helical_layers, specs, strict=True):
print(
f"100 kN {layer.name:<13} P = {spec.contact_pressure_Pa / 1e6:.3f} MPa,"
f" slip onset {slip_onset_curvature(spec):.5f} 1/m"
)
IEA Task 49 / Janocha 2024 66 kV three-core (public template)
EA, twist fixed 638.5 MN
EI full slip 21.74 kN m^2
EI no slip (xi) 1604.82 kN m^2
inner_armour: winding stress 0 MPa (not_published); outer_armour: winding stress 0 MPa (not_published)
100 kN inner_armour P = 0.086 MPa, slip onset 0.00020 1/m
100 kN outer_armour P = 0.023 MPa, slip onset 0.00006 1/m
With zero clamping the only contact pressure is the one tension creates, and
the armour slips from a curvature below 0.0003 1/m even at 100 kN. The run
also writes a MissingClampingStateWarning to the standard error stream. The
friction results of such a cable rest on tension-induced contact alone; they
are sensitivities, not cable properties. Section 4.4 of the
local analysis guide shows how to declare a
clamping state with its basis and source.
5. Figure
sweep = np.linspace(0.0, 100e3, 11) # N
bounded = [cx.cable_to_mkappa_specs(cable, t, contact_model="bounded") for t in sweep]
radial = solve_cable_radial_states(cable, sweep)
fig, (ax_contact, ax_bending) = plt.subplots(1, 2, figsize=(9.0, 3.8))
for i, (layer, colour) in enumerate(
zip(cable.helical_layers, ("C0", "C1"), strict=True)
):
p_bounded = [specs[i].contact_pressure_Pa / 1e6 for specs in bounded]
p_solved = [s.armour_contact_pressure()[layer.name] / 1e6 for s in radial]
ax_contact.plot(sweep / 1e3, p_bounded, "-", c=colour, label=f"{layer.name}")
ax_contact.plot(sweep / 1e3, p_solved, "--", c=colour)
ax_contact.set_xlabel("tension [kN]")
ax_contact.set_ylabel("armour contact pressure P1 + P2 [MPa]")
ax_contact.set_title("Solid: bounded chain; dashed: solved")
ax_contact.legend(loc="upper left")
kappa = np.linspace(0.0, 0.02, 401)
for tension, colour in ((0.0, "black"), (100e3, "tab:red")):
loop = cx.compute_mkappa(cable, kappa, tension_N=tension)
ax_bending.plot(
kappa, loop.moment_Nm, color=colour, label=f"T = {tension / 1e3:.0f} kN"
)
for spec in cx.cable_to_mkappa_specs(cable, tension, contact_model="bounded"):
onset = slip_onset_curvature(spec)
ax_bending.plot(onset, np.interp(onset, kappa, loop.moment_Nm), "o", c=colour)
ax_bending.plot(kappa, stiffness.ei_min_Nm2 * kappa, "--", c="grey", label="full slip")
ax_bending.plot(kappa, stiffness.ei_max_Nm2 * kappa, ":", c="grey", label="no slip")
ax_bending.set_ylim(0.0, 700.0)
ax_bending.set_xlabel("curvature [1/m]")
ax_bending.set_ylabel("bending moment [N m]")
ax_bending.set_title("First loading; dots: slip onset")
ax_bending.legend(loc="lower right")
fig.tight_layout()
FIGURES.mkdir(parents=True, exist_ok=True)
fig.savefig(FIGURES / "tutorial_01_first_cable.png", dpi=150)
print(f"wrote {(FIGURES / 'tutorial_01_first_cable.png').name}")
wrote tutorial_01_first_cable.png
Ménard and Cartraud (2023) cable. Left: armour contact pressure against tension from the bounded chain (solid) and the solved radial state (dashed). Right: moment on first loading at 0 and 100 kN with the full-slip and no-slip slopes; the dots mark the slip onset of the two armour layers.
On first loading the moment follows the no-slip slope up to the slip onset of the armour layers. It bends over while the slip front spreads from the neutral axis to the extreme fibres, and then rises with the full-slip slope. At 100 kN the higher contact pressure delays slip and raises the moment that friction carries. Tutorial 2 follows the same law through load reversals.