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
19 changes: 18 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,16 @@ All notable changes to CableXSec are recorded in this file. The format follows
- `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.

- A serving layer: `construction: serving` on a `cylindrical` layer declares a served yarn or a
wound tape. It keeps its mass, its radial and hoop stiffness (an annulus of its material in
plane stress along the cable axis, in the concentric and the meshed three-core radial
solutions) and its shear compliance under the armour, and carries no axial force, bending
moment or torque: no contribution to the axial, bending (stick and slip) or torsional
stiffness or to the load sharing; in the component response it is outside the load path, as a
loose screen (kinematic upper-bound stress). A serving is non-structural (`structural: true` is refused) and never an interstitial filler. Layers
without the key are unchanged. Checked in closed form: at zero Poisson ratio a serving gives
the solid annulus's radial response with exactly its `E A` and `G J` removed, and an outer
serving under external pressure has the plane-stress thick-cylinder displacements.
- 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
Expand Down Expand Up @@ -209,6 +218,14 @@ All notable changes to CableXSec are recorded in this file. The format follows

### Changed

- Templates whose source describes a layer as a yarn serving now declare it as one. The Chae,
Nam and Shim (2023) coiling cable's two yarn layers: full-slip EI 47.3 to 30.6 kN·m², stick EI
876 to 860 kN·m², fixed-end EA 631 to 626 MN, solved torsional secant under the source's
torque at pitch 1.8 m 106.5 to 89.5 kN·m², least armour surface stress under that torque
−204.8 to −216.9 MPa. Thies et al. (2016) 30 kV outer PP yarn serving: fixed-end EA 328.3 to
325.8 MN, free-end EA 125.7 to 123.2 MN, bending stiffness unchanged (it was already
non-structural). Layers the source does not call a serving are unchanged, among them the 66 kV
template's PPY beddings (the source's footnote names the material polypyrrole).
- The validation report's test-taxonomy lines record the passed count only: the deselected
count is the rest of the suite, so a test added anywhere else marked the committed report
stale without changing a gate. CI checks the committed report before the coverage run, so a
Expand Down
16 changes: 15 additions & 1 deletion doc/file_formats.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,24 @@ them filled.
| --- | --- | --- |
| `helical` (armour wires) | `n_wires`, `d_wire_m`, `r_helix_m`, `lay_angle_deg` | `lay_direction` (`right_hand` default, `left_hand`), `manufacturing_clamping`, `bulk_sn`, `fretting_sn`, `transverse_slip_fraction`; flat or profiled wires: `wire_shape` (`round` default, `rectangular`, `profiled`), `wire_width_m`, `wire_thickness_m`, `wire_corner_radius_m`, `wire_area_m2`, `wire_I_normal_m4`, `wire_I_lateral_m4`, `wire_J_m4` |
| `helical_stranded` (strand within conductor within cable) | `n_conductors`, `r_cable_m`, `lay_angle_cable_deg`, `n_strands`, `r_strand_m`, `d_strand_m`, `lay_angle_strand_deg` | `bulk_sn`, `fretting_sn` |
| `cylindrical` (polymer annulus, bedding, filler, sheath) | `r_inner_m`, `r_outer_m` | `tape` (helical tape winding), `strain_life`, `extrusion_shrinkage` |
| `cylindrical` (polymer annulus, bedding, filler, sheath, serving) | `r_inner_m`, `r_outer_m` | `tape` (helical tape winding), `strain_life`, `extrusion_shrinkage`, `construction` (`serving`) |
| `cylindrical_offset` (core component: conductor, insulation, screen) | `r_offset_m`, `r_inner_m`, `r_outer_m` | `n_cores` (default 3), `conductor_area_mm2`, `strand_layers`, `n_strands`, `strand_diameter_mm`, `strand_lay_angle_deg`, `construction`, `electrical`, `bulk_sn`, `fretting_sn`, `strain_life`, `outer_face_pressure`, `tape` |
| `cylindrical_shell` (lead or corrugated aluminium sheath) | `r_mid_m`, `t_m` | `f_corrugation` (default 1), `scf` (default 1), `construction` (`bonded_laminate`), `bulk_sn`, `fretting_sn`, `strain_life` |

`construction: serving` on a `cylindrical` layer declares a served yarn or a
wound tape. The serving keeps its mass, its radial and hoop stiffness (an
annulus of its material in plane stress along the cable axis, so it transmits
contact pressure and its thermal expansion acts in the cross-section plane)
and its shear compliance in the finite-support no-slip coefficient. It carries
no axial force, no bending moment and no torque: it adds nothing to the axial,
bending (stick or slip) or torsional stiffness and nothing to the load
sharing. In the component response it lies outside the load path, like a
loose screen: it is given the stress of the strain it follows, an upper bound
marked `kinematic`. A serving is non-structural
(`structural` defaults to `false`; `true` is refused), needs `r_inner_m > 0`, has no `extrusion_shrinkage`
and is never an interstitial filler. Without `construction` a `cylindrical`
layer is a solid annulus, as before.

`lay_angle_deg` lies between −90° and 90°. A rectangular or profiled wire
fills in `d_wire_m` as the diameter of the round wire of the same area. A
given value must agree with it, and a layer whose wires overfill the
Expand Down
16 changes: 8 additions & 8 deletions doc/howto.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,14 +185,14 @@ cable coiled into a static tank with one twist per turn.

<!-- howto-output: howto_05_coiling.py -->
```text
D = 14.4 m: kappa = twist = 0.1389 1/m, torque 14.79 kN m
armour wire centre -244.0 to -205.4 MPa, surface -299.8 to -150.6 MPa
bird-caging capacity 231.7 MPa, buckling 1.053, yield 0.750
governing: armour (radial), utilisation 1.053, elastic True
D = 8.0 m: kappa = twist = 0.2500 1/m, torque 26.62 kN m
armour wire centre -439.1 to -369.7 MPa, surface -539.7 to -271.1 MPa
bird-caging capacity 231.7 MPa, buckling 1.895, yield 1.349
governing: armour (radial), utilisation 1.895, elastic False
D = 14.4 m: kappa = twist = 0.1389 1/m, torque 12.43 kN m
armour wire centre -223.6 to -188.3 MPa, surface -280.5 to -132.7 MPa
bird-caging capacity 231.7 MPa, buckling 0.965, yield 0.701
governing: armour (radial), utilisation 0.965, elastic True
D = 8.0 m: kappa = twist = 0.2500 1/m, torque 22.37 kN m
armour wire centre -402.6 to -338.9 MPa, surface -505.0 to -238.9 MPa
bird-caging capacity 231.7 MPa, buckling 1.737, yield 1.262
governing: armour (radial), utilisation 1.737, elastic False
```

The check is elastic. When the wires yield (`elastic False`) the stresses are
Expand Down
1 change: 1 addition & 0 deletions doc/radial_model.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ The section state minimises the small-strain elastic energy per axial metre with

- Unlisted gaps inside a core (semiconducting screens) are filled with the softer neighbouring material.
- Loose (non-structural) core layers, such as copper tape and wire screens, are meshed with their declared material by default (`loose_layers="declared"`), so they carry axial load and torque in the solved section although the fixed-radius stiffness gives them none. `loose_layers="neighbour"` gives each the material of its softer structural neighbour; `torque_balance` uses it by default. On the 66 kV template the declared copper screens raise the solved torque/tension coefficient from 1.50 to 3.24 mm (fixed radius 1.51 mm).
- A serving (`construction: serving`: a served yarn or a wound tape) is an annulus, or ring of the three-core mesh, in plane stress along the cable axis: it has the radial and hoop stiffness of its material, so it transmits pressure, but no axial stress and no Saint-Venant torsion. It therefore adds nothing to the solved EA or GJ.
- Geometric overlaps below 0.5 % of the contact radius are treated as a snug fit (Ménard: 0.067 mm core-to-inner-sheath).
- A three-core cylindrical layer overlapping the cores is the interstitial filler, with three options:
- `filler="solid"`: meshed in the outer interstices with unilateral contact.
Expand Down
16 changes: 10 additions & 6 deletions src/cablexsec/analysis/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@
conductor (wire rings) is on the wire basis already: each wire bends about its
own axis with its own diameter.

Layers outside the load path (a loose tape or wire screen of a core: no axial
stiffness, :data:`KINEMATIC`) are given the stress of the strain they follow,
their modulus times that strain, and are assessed against their limits as
the others; ``kinematic`` marks them. That stress is an upper bound: a loose
screen that slips over its core takes less.
Layers outside the load path (a loose tape or wire screen of a core, or a
serving: no axial stiffness, :data:`KINEMATIC`) are given the stress of the
strain they follow, their modulus times that strain, and are assessed against
their limits as the others; ``kinematic`` marks them. That stress is an upper
bound: a loose screen that slips over its core takes less.

Thermal stress is formed from axial-force equilibrium. A common cable strain
is solved from the imposed tension and the free thermal forces of every
Expand Down Expand Up @@ -93,6 +93,7 @@
HelicalLayer,
HelicalStrandedLayer,
Layer,
is_serving,
)
from cablexsec.exceptions import CableInputError, CableSchemaError
from cablexsec.materials import library
Expand Down Expand Up @@ -1188,7 +1189,10 @@ def compute_component_response(
)
continue

if section_state.radial is not None:
# A serving is outside the load path in either contact model: it
# takes the kinematic stress of the strain it follows, as a loose
# screen does, not the coupled normal stress.
if section_state.radial is not None and not is_serving(layer):
normal = section_state.layers[layer.name]
if isinstance(layer, CylindricalShellLayer):
assert layer.r_mid_m is not None and layer.t_m is not None
Expand Down
3 changes: 2 additions & 1 deletion src/cablexsec/analysis/section_stress.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
CylindricalShellLayer,
HelicalLayer,
HelicalStrandedLayer,
is_serving,
)
from cablexsec.exceptions import CableInputError
from cablexsec.mechanics.core_friction import CoreFrictionSpec
Expand Down Expand Up @@ -405,7 +406,7 @@ def compute_section_stress(
if isinstance(layer, HelicalStrandedLayer):
fields.append(_none(name, states[name].basis))
continue
if section_state.radial is not None:
if section_state.radial is not None and not is_serving(layer):
fields.append(
_radial_field(
layer,
Expand Down
4 changes: 4 additions & 0 deletions src/cablexsec/cables/chae2023_coiling.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
# of overlap with touching cores);
# circular string fillers of the source (Fig. 6) as a non-structural
# annulus between the cores;
# the two yarn layers as servings (construction: serving): radial and hoop
# stiffness of the Table 2 yarn, no axial, bending or torsional stiffness;
# straight cores (no core_lay block): the core lay pitch is not given;
# zero manufacturing clamping: all tools start from a stress-free state
# (Sec. 2.4).
Expand Down Expand Up @@ -64,6 +66,7 @@ layers:
- name: yarn1
layer_type: cylindrical
material: yarn_chae2023
construction: serving
r_inner_m: 0.076277
r_outer_m: 0.0785
source: "[ChaeNamShim2023] Table 1 1st yarn to 157.0 mm (2.22 mm with touching cores)"
Expand All @@ -87,6 +90,7 @@ layers:
- name: yarn2
layer_type: cylindrical
material: yarn_chae2023
construction: serving
r_inner_m: 0.0835
r_outer_m: 0.0875
source: "[ChaeNamShim2023] Table 1 2nd yarn 4.0 mm to 175.0 mm"
48 changes: 47 additions & 1 deletion src/cablexsec/cables/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,15 @@ def _documented(self) -> ExtrusionShrinkage:


class CylindricalLayer(_LayerBase):
"""Solid annular layer (bedding, filler, polymer sheath)."""
"""Solid annular layer (bedding, filler, polymer sheath) or a serving.

``construction: serving`` declares a served yarn or a wound tape. The
layer keeps its mass, its radial and hoop stiffness (an annulus in plane
stress along the cable axis, so it transmits contact pressure) and its
shear compliance between the layers it separates, but it carries no axial
force, no bending moment and no torque. A serving is non-structural;
``structural: true`` is refused.
"""

layer_type: Literal["cylindrical"] = "cylindrical"
r_inner_m: float | None = None
Expand All @@ -947,6 +955,26 @@ class CylindricalLayer(_LayerBase):
strain_life: str = ""
# Frozen extrusion shrinkage (a manufacturing clamping of the layers inside).
extrusion_shrinkage: ExtrusionShrinkage | None = None
# "" (extruded or solid annulus) or "serving" (yarn or tape serving:
# radial and hoop stiffness only).
construction: Literal["", "serving"] = ""

@model_validator(mode="before")
@classmethod
def _serving_is_not_structural(cls, data: Any) -> Any:
"""A serving carries no section load, so ``structural`` is false."""
if (
not isinstance(data, Mapping)
or data.get("construction") != "serving"
or "structural" in data
):
return data
return {**data, "structural": False}

@property
def is_serving(self) -> bool:
"""Whether the layer is a yarn or tape serving (no section stiffness)."""
return self.construction == "serving"

@model_validator(mode="after")
def _annulus_physical_values(self) -> CylindricalLayer:
Expand All @@ -960,9 +988,27 @@ def _annulus_physical_values(self) -> CylindricalLayer:
and self.r_outer_m <= self.r_inner_m
):
raise ValueError("r_outer_m must be greater than r_inner_m")
if self.is_serving and self.r_inner_m is not None and self.r_inner_m <= 0.0:
raise ValueError(
"a serving is wound onto the layer beneath it: r_inner_m must be > 0"
)
if self.is_serving and self.structural:
raise ValueError(
"a serving (construction: serving) carries no axial, bending or "
"torsional load: structural must be false"
)
if self.is_serving and self.extrusion_shrinkage is not None:
raise ValueError(
"a serving is wound, not extruded: it has no extrusion_shrinkage"
)
return self


def is_serving(layer: object) -> bool:
"""Whether ``layer`` is a ``cylindrical`` layer declared as a serving."""
return isinstance(layer, CylindricalLayer) and layer.is_serving


class CoreStrandRing(_Frozen):
"""One uniform wire ring about a power-core axis, or its straight centre.

Expand Down
1 change: 1 addition & 0 deletions src/cablexsec/cables/thies2016_30kv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ layers:
- name: pp_yarn_serving
layer_type: cylindrical
material: pp_filler
construction: serving
r_inner_m: 0.0570
r_outer_m: 0.0615
structural: false
Expand Down
44 changes: 39 additions & 5 deletions src/cablexsec/mechanics/concentric_section.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ class ElasticAnnulus:
# In-plane (radial and hoop) free strain added to the isotropic one: a
# frozen extrusion shrinkage is -hoop_strain (no axial part).
free_transverse_strain: float = 0.0
# False for a yarn or tape serving: plane stress along the cable axis
# (no axial stress) and no Saint-Venant torsion; the radial and hoop
# stiffness are those of the isotropic material.
carries_axial_load: bool = True

@property
def free_strain_vector(self) -> NDArray[np.float64]:
Expand All @@ -49,6 +53,37 @@ def free_strain_vector(self) -> NDArray[np.float64]:
return np.array([e + t, e + t, e], dtype=np.float64)


def annulus_constitutive(
youngs_modulus_Pa: float, poisson_ratio: float, carries_axial_load: bool = True
) -> FloatArray:
"""Isotropic stiffness in (radial, hoop, axial) strains [Pa], 3 x 3.

Three-dimensional elasticity for a solid annulus; plane stress along the
axis (zero axial row and column) for a serving that carries no axial load.
"""
e, nu = youngs_modulus_Pa, poisson_ratio
if not carries_axial_load:
plane = e / (1 - nu * nu)
out = np.zeros((3, 3))
out[:2, :2] = plane * np.array([[1.0, nu], [nu, 1.0]])
return out
shear = e / (2 * (1 + nu))
lame = e * nu / ((1 + nu) * (1 - 2 * nu))
return np.asarray(lame * np.ones((3, 3)) + 2 * shear * np.eye(3), dtype=np.float64)


def annulus_torsional_rigidity(layer: ElasticAnnulus) -> float:
"""Saint-Venant torsional rigidity ``G J`` of an annulus [N m^2].

Zero for a serving, which carries no torque.
"""
if not layer.carries_axial_load:
return 0.0
a, b = layer.inner_radius_m, layer.outer_radius_m
shear = layer.youngs_modulus_Pa / (2 * (1 + layer.poisson_ratio))
return shear * math.pi * (b**4 - a**4) / 2


@dataclass(frozen=True)
class ElasticHelicalRing:
name: str
Expand Down Expand Up @@ -266,10 +301,9 @@ def solve_concentric_section(
* strain_map
)
else:
nu = layer.poisson_ratio
shear = e / (2 * (1 + nu))
lame = e * nu / ((1 + nu) * (1 - 2 * nu))
constitutive = lame * np.ones((3, 3)) + 2 * shear * np.eye(3)
constitutive = annulus_constitutive(
e, layer.poisson_ratio, layer.carries_axial_load
)
# Rows of the strain map are radial, circumferential and axial.
if a > 0:
coeff = np.linalg.inv(np.array([[a, 1 / a], [b, 1 / b]]))
Expand All @@ -295,7 +329,7 @@ def solve_concentric_section(
@ constitutive
@ layer.free_strain_vector
)
matrix[1, 1] += shear * math.pi * (b**4 - a**4) / 2
matrix[1, 1] += annulus_torsional_rigidity(layer)
initial_load = load.copy()
load[0] += tension_N
load[1] += torque_Nm
Expand Down
2 changes: 2 additions & 0 deletions src/cablexsec/mechanics/contact_qp.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
CylindricalOffsetLayer,
CylindricalShellLayer,
HelicalLayer,
is_serving,
)
from cablexsec.exceptions import CableSchemaError
from cablexsec.materials import library
Expand Down Expand Up @@ -233,6 +234,7 @@ def _concentric_layers(
e,
library.get_property(layer.material, "nu"),
free_transverse_strain=-float(shrink.hoop_strain) if shrink else 0.0,
carries_axial_load=not is_serving(layer),
)
)
result.sort(key=lambda layer: layer.inner_radius_m)
Expand Down
7 changes: 7 additions & 0 deletions src/cablexsec/mechanics/radial_cable.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
CylindricalOffsetLayer,
CylindricalShellLayer,
HelicalLayer,
is_serving,
)
from cablexsec.exceptions import CableInputError, CableSchemaError
from cablexsec.materials import library
Expand Down Expand Up @@ -350,6 +351,10 @@ def build_radial_section(
]
if len(fillers) > 1:
raise CableSchemaError("more than one interstitial filler layer")
if any(is_serving(x) for x in fillers):
raise CableSchemaError(
"a serving is wound on a layer; it cannot fill the core interstices"
)
filler_body = None
if fillers:
concentric_source.remove(fillers[0])
Expand Down Expand Up @@ -402,6 +407,7 @@ def build_radial_section(
mats[item.name].poisson,
mats[item.name].free_strain,
free_transverse_strain=mats[item.name].transverse_strain,
carries_axial_load=not is_serving(item),
)
)
if not ring:
Expand Down Expand Up @@ -466,6 +472,7 @@ def build_radial_section(
m.poisson,
m.free_strain,
free_transverse_strain=m.transverse_strain,
carries_axial_load=not is_serving(x),
)
)
else:
Expand Down
Loading
Loading