From c417d20e138d04878434959e34c8e0407c87ff1e Mon Sep 17 00:00:00 2001 From: Jae Hoon Seo Date: Wed, 18 Nov 2026 03:15:12 +0900 Subject: [PATCH 1/6] fix: the trefoil filler twists as separate lobes, not about the cable axis The Saint-Venant twist rigidity of the trefoil bundle added the polar moment of the interstitial filler about the cable axis, as if the filler were bonded to the ring with no warping. The filler touches the cores and the ring through the model's frictionless contacts, which carry no axial shear, and the three outer interstices are disjoint lobes (the central one is void), so the filler lobes twist as separate bodies with their own warping. saint_venant_rigidity solves the warping of a region of the six-node mesh (psi = 0 on the mirror lines, where torsion warping is antisymmetric) and returns the polar moment less the warping relief. The cores keep their own rigidity about their centres and the bonded ring layers theirs about the cable axis; both are exact for annuli. Validation row TQ-SV (targets registered with this commit): the solver against the series solution of a 2 x 1 rectangle (< 3e-4) and a bonded annulus meshed as the mirrored 60 degree sector against its polar moment (< 1e-6). Signed-off-by: Jae Hoon Seo --- src/cablexsec/mechanics/trefoil_section.py | 101 ++++++++++++- tests/test_trefoil_torsion.py | 152 ++++++++++++++++++++ validation/scripts/check_section_torsion.py | 94 ++++++++++++ validation/scripts/run_validation.py | 14 ++ 4 files changed, 355 insertions(+), 6 deletions(-) create mode 100644 tests/test_trefoil_torsion.py create mode 100644 validation/scripts/check_section_torsion.py diff --git a/src/cablexsec/mechanics/trefoil_section.py b/src/cablexsec/mechanics/trefoil_section.py index 7df292a..8e71b97 100644 --- a/src/cablexsec/mechanics/trefoil_section.py +++ b/src/cablexsec/mechanics/trefoil_section.py @@ -22,11 +22,15 @@ (for a hollow core, the mean of the two bore points on the mirror axis). The cross-section plane of the core is taken as the cable cross-section (an error of order 1 - cos beta). Layers inside a core are bonded. Ring and -filler share the cable extension. Twist rigidities of the ring and filler -assume no interface slip; each core adds its own St Venant rigidity with -twist cos²beta tau. No ovalisation of the ring from non-uniform outer -pressure is modelled: layers outside the ring are coupled through the mean -radial displacement of its outer surface and apply uniform pressure. +filler share the cable extension. The Saint-Venant twist rigidity follows +the contact model: the bonded ring layers twist about the cable axis; each +core adds its own rigidity about its centre with twist cos²beta tau; the +filler, which touches cores and ring through frictionless contacts that +carry no axial shear, twists as separate lobes with their own warping +(:func:`saint_venant_rigidity`), not about the cable axis. No ovalisation +of the ring from non-uniform outer pressure is modelled: layers outside the +ring are coupled through the mean radial displacement of its outer surface +and apply uniform pressure. A small grounded stabilising stiffness is added to every in-plane degree of freedom so that a core or filler that is separated from all its neighbours @@ -43,6 +47,8 @@ import numpy as np import scipy.sparse as sp from numpy.typing import NDArray +from scipy.sparse.csgraph import connected_components +from scipy.sparse.linalg import spsolve from cablexsec.exceptions import CableInputError from cablexsec.mechanics.concentric_section import ElasticAnnulus @@ -52,6 +58,7 @@ "TrefoilBundle", "TrefoilModel", "build_trefoil_model", + "saint_venant_rigidity", ] FloatArray = NDArray[np.float64] @@ -741,6 +748,77 @@ def _mirror_transform( return sp.csr_matrix((vals, (rows, cols)), shape=(n_dof, column)) +def saint_venant_rigidity( + xy: FloatArray, + conn: NDArray[np.int64], + shear_modulus: FloatArray, + *, + mirror_angles: tuple[float, ...] = (0.0, SECTOR), +) -> float: + """Saint-Venant torsional rigidity [N m²] of a region of six-node triangles. + + The twist is about the origin. The warping ``w = tau psi`` of the region + is free and minimises the shear energy, so the rigidity is + ``int G |grad psi + (-y, x)|² dA``, which is the polar moment + ``int G r² dA`` less the warping relief. Nodes on a mirror line through + the origin at one of ``mirror_angles`` have ``psi = 0`` (torsion warping is + antisymmetric about a mirror plane that contains the twist axis); a + connected part of the region with no such node has its first node held, + which removes its rigid axial translation. ``conn`` lists the elements of + the region in the node numbering of ``xy``; ``shear_modulus`` gives one + value per element. + """ + conn = np.asarray(conn, dtype=np.int64) + if conn.size == 0: + return 0.0 + nodes, inverse = np.unique(conn, return_inverse=True) + local = inverse.reshape(conn.shape) + n = len(nodes) + coords = xy[conn] # (ne, 6, 2) + ne = len(conn) + ke = np.zeros((ne, 6, 6)) + fe = np.zeros((ne, 6)) + polar = 0.0 + for (shape, dshape), w in zip(_SHAPES, _QW, strict=True): + jac = np.einsum("ka,eki->eai", dshape, coords) + det = jac[:, 0, 0] * jac[:, 1, 1] - jac[:, 0, 1] * jac[:, 1, 0] + if np.any(det == 0): + raise CableInputError("degenerate element in the torsion region") + inv = np.empty_like(jac) + inv[:, 0, 0] = jac[:, 1, 1] / det + inv[:, 1, 1] = jac[:, 0, 0] / det + inv[:, 0, 1] = -jac[:, 0, 1] / det + inv[:, 1, 0] = -jac[:, 1, 0] / det + dn = np.einsum("ka,eia->eki", dshape, inv) + weight = w * np.abs(det) * shear_modulus + point = np.einsum("k,eki->ei", shape, coords) + x, y = point[:, 0], point[:, 1] + ke += np.einsum("e,eki,eli->ekl", weight, dn, dn) + fe += weight[:, None] * (dn[:, :, 0] * -y[:, None] + dn[:, :, 1] * x[:, None]) + polar += float(np.sum(weight * (x * x + y * y))) + rows = np.repeat(local, 6, axis=1).ravel() + cols = np.tile(local, (1, 6)).ravel() + k = sp.csr_matrix((ke.ravel(), (rows, cols)), shape=(n, n)) + f = np.zeros(n) + np.add.at(f, local.ravel(), fe.ravel()) + pts = xy[nodes] + scale = max(1.0, float(np.max(np.abs(pts)))) + fixed = np.zeros(n, dtype=bool) + for angle in mirror_angles: + distance = np.abs(pts[:, 0] * math.sin(angle) - pts[:, 1] * math.cos(angle)) + fixed |= distance <= 1e-9 * scale + count, label = connected_components(k, directed=False) + for part in range(count): + members = np.flatnonzero(label == part) + if not np.any(fixed[members]): + fixed[members[0]] = True + free = ~fixed + if not np.any(free): + return polar + psi = spsolve(k[free][:, free].tocsc(), -f[free]) + return polar + float(f[free] @ psi) + + def _assemble( xy: FloatArray, conn: NDArray[np.int64], @@ -778,6 +856,8 @@ def _assemble( polar = np.zeros(ne) core_set = set(groups.get("core", [])) is_core = np.array([i in core_set for i in range(ne)]) + filler_set = set(groups.get("filler", [])) + is_filler = np.array([i in filler_set for i in range(ne)]) for (shape, dshape), w in zip(_SHAPES, _QW, strict=True): jac = np.einsum("ka,eki->eai", dshape, coords) # d(x_i)/d(xi_a) det = jac[:, 0, 0] * jac[:, 1, 1] - jac[:, 0, 1] * jac[:, 1, 0] @@ -808,7 +888,16 @@ def _assemble( point[:, 0] ** 2 + point[:, 1] ** 2, ) polar += weight * mu * r2 * carries - twist = float(np.sum(np.where(is_core, polar * cb**4, polar))) + # Cores about their own centres (exact for annuli), ring layers about the + # cable axis (exact for a bonded annulus stack). The filler lobes touch + # cores and ring through frictionless contacts, so they twist as separate + # bodies with their own warping, solved below. + twist = float(np.sum(np.where(is_core, polar * cb**4, 0.0))) + twist += float(np.sum(polar[~is_core & ~is_filler])) + if np.any(is_filler): + twist += saint_venant_rigidity( + xy, conn[is_filler], (mu * carries)[is_filler] + ) dofs = np.zeros((ne, ndof_e), dtype=np.int64) dofs[:, 0:12:2] = 2 + 2 * conn dofs[:, 1:12:2] = 3 + 2 * conn diff --git a/tests/test_trefoil_torsion.py b/tests/test_trefoil_torsion.py new file mode 100644 index 0000000..d21b5ef --- /dev/null +++ b/tests/test_trefoil_torsion.py @@ -0,0 +1,152 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2026 Jae Hoon Seo, SMI Lab, Inha University +"""Saint-Venant twist rigidity of the trefoil bundle and its filler.""" + +from __future__ import annotations + +import math + +import numpy as np +import pytest + +from cablexsec.mechanics.concentric_section import ElasticAnnulus +from cablexsec.mechanics.trefoil_section import ( + SECTOR, + SYMMETRY_FACTOR, + ElasticFiller, + TrefoilBundle, + build_trefoil_model, + saint_venant_rigidity, +) + + +def _rectangle(a: float, b: float, nx: int, ny: int) -> tuple[np.ndarray, np.ndarray]: + """Six-node triangles on an a x b rectangle away from the origin.""" + gx = np.linspace(3.0, 3.0 + a, 2 * nx + 1) + gy = np.linspace(-7.0, -7.0 + b, 2 * ny + 1) + xy = np.array([(x, y) for y in gy for x in gx]) + + def index(i: int, j: int) -> int: + return j * (2 * nx + 1) + i + + conn = [] + for j in range(ny): + for i in range(nx): + p, q = (2 * i, 2 * j), (2 * i + 2, 2 * j) + r, s = (2 * i + 2, 2 * j + 2), (2 * i, 2 * j + 2) + for u, v, w in ((p, q, r), (p, r, s)): + mid = [ + ((m[0] + n[0]) // 2, (m[1] + n[1]) // 2) + for m, n in ((u, v), (v, w), (w, u)) + ] + conn.append([index(*x) for x in (u, v, w, *mid)]) + return xy, np.array(conn, dtype=np.int64) + + +def _rectangle_series(a: float, b: float) -> float: + """Saint-Venant torsion constant of an a x b rectangle (a >= b), series.""" + total = sum(math.tanh(n * math.pi * a / (2 * b)) / n**5 for n in range(1, 400, 2)) + return a * b**3 / 3 * (1 - 192 / math.pi**5 * b / a * total) + + +@pytest.mark.analytical_sanity +@pytest.mark.parametrize(("a", "nx", "ny"), [(1.0, 16, 16), (2.0, 16, 8), (4.0, 24, 6)]) +def test_free_warping_reproduces_the_rectangle_series( + a: float, nx: int, ny: int +) -> None: + xy, conn = _rectangle(a, 1.0, nx, ny) + value = saint_venant_rigidity(xy, conn, np.ones(len(conn)), mirror_angles=()) + # Displacement FE is an upper bound that converges from above. + assert value >= _rectangle_series(a, 1.0) + assert value == pytest.approx(_rectangle_series(a, 1.0), rel=3e-4) + + +@pytest.mark.analytical_sanity +def test_mirrored_annulus_sector_keeps_the_polar_moment() -> None: + r_in, r_out, nr, nt = 0.5, 1.0, 6, 24 + keys: dict[tuple[int, int], int] = {} + xy: list[tuple[float, float]] = [] + + def node(i: int, j: int) -> int: + if (i, j) not in keys: + r = r_in + (r_out - r_in) * i / (2 * nr) + t = SECTOR * j / (2 * nt) + keys[(i, j)] = len(xy) + xy.append((r * math.cos(t), r * math.sin(t))) + return keys[(i, j)] + + conn = [] + for i in range(nr): + for j in range(nt): + p, q = (2 * i, 2 * j), (2 * i + 2, 2 * j) + r, s = (2 * i + 2, 2 * j + 2), (2 * i, 2 * j + 2) + for u, v, w in ((p, q, r), (p, r, s)): + mid = [ + ((m[0] + n[0]) // 2, (m[1] + n[1]) // 2) + for m, n in ((u, v), (v, w), (w, u)) + ] + conn.append([node(*x) for x in (u, v, w, *mid)]) + value = saint_venant_rigidity( + np.array(xy), np.array(conn, dtype=np.int64), np.full(len(conn), 2.0) + ) + exact = 2.0 * math.pi / 2 * (r_out**4 - r_in**4) / SYMMETRY_FACTOR + assert value == pytest.approx(exact, rel=1e-6) + + +A = 0.02 +RC = 2 * A / math.sqrt(3) + + +def _bundle(filler: ElasticFiller | None) -> TrefoilBundle: + return TrefoilBundle( + ( + ElasticAnnulus("cond", 0.0, 0.01, 117e9, 0.34), + ElasticAnnulus("ins", 0.01, A, 0.15e9, 0.45), + ), + RC, + (ElasticAnnulus("ring", RC + A, RC + A + 0.003, 0.9e9, 0.46),), + filler=filler, + angular_cells=24, + ) + + +@pytest.mark.analytical_sanity +def test_cores_and_ring_twist_about_their_own_axes() -> None: + """Straight cores about their centres, the ring about the cable axis.""" + model = build_trefoil_model(_bundle(None)) + + def shear(e: float, nu: float) -> float: + return e / (2 * (1 + nu)) + + cores = 3 * ( + shear(117e9, 0.34) * math.pi / 2 * 0.01**4 + + shear(0.15e9, 0.45) * math.pi / 2 * (A**4 - 0.01**4) + ) + ring = shear(0.9e9, 0.46) * math.pi / 2 * ((RC + A + 0.003) ** 4 - (RC + A) ** 4) + assert model.stiffness[1, 1] == pytest.approx(cores + ring, rel=1e-5) + + +@pytest.mark.analytical_sanity +def test_filler_lobes_twist_as_separate_bodies() -> None: + """Frictionless contacts carry no axial shear, so the filler lobes warp + freely: they add far less than their polar moment about the cable axis, + which they would add only if bonded to the ring with no warping.""" + filler = ElasticFiller("filler", 0.9e9, 0.45) + without = build_trefoil_model(_bundle(None)) + model = build_trefoil_model(_bundle(filler)) + added = model.stiffness[1, 1] - without.stiffness[1, 1] + group = model.element_groups["filler"] + mu = model.element_moduli[group] / (2 * (1 + model.element_poisson[group])) + conn = model.element_nodes[group] + own = saint_venant_rigidity(model.nodes, conn, mu) + assert added == pytest.approx(SYMMETRY_FACTOR * own, rel=1e-9) + # The lobes' polar moment about the cable axis (one-point estimate per + # element), the rigidity of a filler bonded to the ring without warping. + xy = model.nodes[conn[:, :3]] + area = 0.5 * np.abs( + (xy[:, 1, 0] - xy[:, 0, 0]) * (xy[:, 2, 1] - xy[:, 0, 1]) + - (xy[:, 2, 0] - xy[:, 0, 0]) * (xy[:, 1, 1] - xy[:, 0, 1]) + ) + centroid = xy.mean(axis=1) + bonded = float(np.sum(mu * area * (centroid**2).sum(axis=1))) + assert 0.0 < own < 0.2 * bonded diff --git a/validation/scripts/check_section_torsion.py b/validation/scripts/check_section_torsion.py new file mode 100644 index 0000000..0df4fdc --- /dev/null +++ b/validation/scripts/check_section_torsion.py @@ -0,0 +1,94 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2026 Jae Hoon Seo, SMI Lab, Inha University +"""Public checks of the Saint-Venant twist rigidity of the trefoil section. + +Run as ``python validation/scripts/check_section_torsion.py``. This is a +verification module: nothing here is used by an analysis path. + +The interstitial filler of a trefoil bundle touches the cores and the ring +through frictionless contacts, so its lobes twist as separate bodies with +their own warping (``saint_venant_rigidity``). The warping solver is checked +against two closed forms: + +* the Saint-Venant torsion constant of a solid rectangle, series solution + ``J = a b^3 / 3 [1 - 192 b / (pi^5 a) sum_odd tanh(n pi a / 2b) / n^5]`` + (Timoshenko and Goodier, Theory of Elasticity, 3rd ed., Sec. 109), for an + aspect ratio of 2; +* a bonded annulus meshed as the 60 degree sector of the trefoil model with + the mirror conditions, whose warping vanishes, so its rigidity is the polar + moment ``G pi (b^4 - a^4) / 2`` over six. +""" + +from __future__ import annotations + +import math + +import numpy as np + +from cablexsec.mechanics.trefoil_section import SECTOR, saint_venant_rigidity + + +def _t6(grid: np.ndarray, cells: tuple[int, int]) -> tuple[np.ndarray, np.ndarray]: + """Six-node triangles on a structured (2 nx + 1) x (2 ny + 1) node grid.""" + nx, ny = cells + xy = grid.reshape(-1, 2) + + def index(i: int, j: int) -> int: + return j * (2 * nx + 1) + i + + conn = [] + for j in range(ny): + for i in range(nx): + p, q = (2 * i, 2 * j), (2 * i + 2, 2 * j) + r, s = (2 * i + 2, 2 * j + 2), (2 * i, 2 * j + 2) + for u, v, w in ((p, q, r), (p, r, s)): + mids = [ + ((m[0] + n[0]) // 2, (m[1] + n[1]) // 2) + for m, n in ((u, v), (v, w), (w, u)) + ] + conn.append([index(*x) for x in (u, v, w, *mids)]) + return xy, np.array(conn, dtype=np.int64) + + +def rectangle_series(a: float, b: float) -> float: + """Torsion constant of an ``a x b`` rectangle, ``a >= b`` (series).""" + total = sum(math.tanh(n * math.pi * a / (2 * b)) / n**5 for n in range(1, 400, 2)) + return a * b**3 / 3 * (1 - 192 / math.pi**5 * b / a * total) + + +def rectangle_error(a: float = 2.0, b: float = 1.0, nx: int = 16) -> float: + """Relative error of the warping solver on an ``a x b`` rectangle.""" + ny = max(2, round(nx * b / a)) + gx = np.linspace(3.0, 3.0 + a, 2 * nx + 1) # away from the twist axis + gy = np.linspace(-7.0, -7.0 + b, 2 * ny + 1) + grid = np.array([[(x, y) for x in gx] for y in gy]) + xy, conn = _t6(grid, (nx, ny)) + value = saint_venant_rigidity(xy, conn, np.ones(len(conn)), mirror_angles=()) + return value / rectangle_series(a, b) - 1.0 + + +def annulus_error(r_in: float = 0.5, r_out: float = 1.0) -> float: + """Relative error of a mirrored annulus sector against its polar moment.""" + nr, nt = 6, 24 + radii = np.linspace(r_in, r_out, 2 * nr + 1) + angles = np.linspace(0.0, SECTOR, 2 * nt + 1) + grid = np.array( + [[(r * math.cos(t), r * math.sin(t)) for r in radii] for t in angles] + ) + xy, conn = _t6(grid, (nr, nt)) + value = saint_venant_rigidity(xy, conn, np.ones(len(conn))) + return value / (math.pi / 2 * (r_out**4 - r_in**4) / 6) - 1.0 + + +def verification_checks() -> dict[str, float]: + """Relative errors of the warping solver against the two closed forms.""" + return {"rectangle": rectangle_error(), "annulus": annulus_error()} + + +def main() -> None: + for name, value in verification_checks().items(): + print(f"{name}: {value:.2e}") + + +if __name__ == "__main__": + main() diff --git a/validation/scripts/run_validation.py b/validation/scripts/run_validation.py index dc2436a..15b2e28 100644 --- a/validation/scripts/run_validation.py +++ b/validation/scripts/run_validation.py @@ -791,11 +791,25 @@ def _torque_rows() -> list[Row]: """Torque balance (gap 3.5); scripts/check_torque_balance.py.""" if str(ROOT) not in sys.path: sys.path.insert(0, str(ROOT)) + import check_section_torsion as sv # noqa: PLC0415 import check_torque_balance as tq # noqa: PLC0415 v = tq.verification_checks() p = tq.published_checks() + w = sv.verification_checks() return [ + Row( + "1", + "TQ-SV", + "Saint-Venant twist rigidity with free warping (trefoil filler lobes): " + "2 x 1 rectangle vs series solution; bonded annulus as a mirrored " + "60 deg sector vs polar moment", + "< 3e-4 relative; < 1e-6 relative", + f"{w['rectangle']:.1e}; {w['annulus']:.1e}", + "PASS" + if abs(w["rectangle"]) < 3e-4 and abs(w["annulus"]) < 1e-6 + else "FAIL", + ), Row( "1", "TQ", From 63e7b00b80b7ecf504169a3aeb1d23260bb26044 Mon Sep 17 00:00:00 2001 From: Jae Hoon Seo Date: Wed, 18 Nov 2026 04:06:28 +0900 Subject: [PATCH 2/6] validation: TQ-SV row, outputs and documents after the filler torsion fix The validation report gains row TQ-SV (rectangle 1.0e-4, mirrored annulus -1.5e-8: PASS) after the torque-balance row. The coiling and load-sharing how-to outputs, the radial model page and the changelog carry the new values. On the Su et al. (2026) 35 kV cable the torsional stiffness with the ends fixed axially becomes 199.5 / 177.0 kN m^2 (clockwise / anticlockwise; FE 209.5 / 201.2, test 209.8 / 201.3; before 203.0 / 180.5). The band of the anticlockwise assertion is widened from 12 to 13 % and the reason is stated in the test: the removed term is not a mechanism of the section model, and the remaining gap is not the filler. Signed-off-by: Jae Hoon Seo --- CHANGELOG.md | 15 ++++++++++++++ doc/radial_model.md | 3 ++- tests/test_radial_benchmarks.py | 9 +++++++-- validation/scripts/run_validation.py | 29 ++++++++++++++-------------- 4 files changed, 39 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 51f45f1..c211e5a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -352,6 +352,21 @@ All notable changes to CableXSec are recorded in this file. The format follows component limit of the envelope (the `yielding` mode of the conductor layer), separate from conductor fracture. The 66 kV template page no longer says the envelope lacks it (it governs the template's capacity, Section 4.6). +- The interstitial filler of a trefoil bundle twists as separate lobes with their own warping, + not about the cable axis. The solved section added the filler's polar moment about the cable + axis to the twist rigidity, as if the filler were bonded to the ring with no warping, although + it touches the cores and the ring through frictionless contacts that carry no axial shear and + the three outer interstices are disjoint. `saint_venant_rigidity` (in + `cablexsec.mechanics.trefoil_section`) solves the warping of the filler lobes on the section + mesh; cores (about their centres) and bonded ring layers (about the cable axis) are unchanged. + The filler term falls from 7.9 to 0.17 kN m² on the Chae, Nam and Shim (2023) cable, whose free + torsional stiffness at the source's twist of 0.125 rad/m (unwinding) falls from 106.5 to + 98.7 kN m² at an armour pitch of 1.8 m and from 70.5 to 62.7 kN m² at 3.0 m; and from 3.6 to + 0.14 kN m² on the Su et al. (2026) 35 kV cable, whose torsional stiffness with the ends fixed + axially becomes 199.5 / 177.0 kN m² (clockwise / anticlockwise; FE 209.5 / 201.2, test + 209.8 / 201.3; previously 203.0 / 180.5). The band of that anticlockwise check is widened + from 12 to 13 % and stated. New validation row TQ-SV checks the warping solver against the + series solution of a rectangle and the polar moment of a mirrored annulus sector. - `export_bending_law` keeps the stick stiffness at every tension. Its geometric curvature grid started at `1e-4 κ_max` whatever the tension, so a slip onset below that floor (66 kV template, `κ_max` 0.4 1/m: outer armour 7.3e-6 1/m and inner 2.3e-5 1/m at 10 kN) was inside the first diff --git a/doc/radial_model.md b/doc/radial_model.md index 201f9e0..64a565a 100644 --- a/doc/radial_model.md +++ b/doc/radial_model.md @@ -206,6 +206,7 @@ The section state minimises the small-strain elastic energy per axial metre with - `filler="solid"`: meshed in the outer interstices with unilateral contact. - `"void"`: flooded or loose yarn. - `"auto"`: as declared. The central interstice is void. +- Saint-Venant twist rigidity: the bonded ring layers twist about the cable axis and each core about its own centre (both exact for annuli). The filler lobes touch cores and ring through frictionless contacts that carry no axial shear, so they twist as separate bodies with their own warping (`saint_venant_rigidity`, validation row TQ-SV), not with their polar moment about the cable axis. The filler then adds 0.17 kN m² to the Chae, Nam and Shim (2023) cable instead of 7.9 kN m², and 0.14 kN m² instead of 3.6 kN m² to the Su et al. (2026) 35 kV cable. - Stranded conductors whose metal area differs from the envelope, nested strands and corrugated shells are rejected, as in A3. The 220 kV template and CIGRE TB 880 are therefore unsupported. ### 3.5 Limits @@ -248,7 +249,7 @@ The section state minimises the small-strain elastic energy per axial metre with | Knapp (1979) coupling | k12 / k21 (non-symmetric) | Lies between k12 and k21 | — | | Su et al. (2026) 35 kV, EA tension (twist fixed, 500 kN secant) | FE 615.4 MN; test 631.7 MN | 608.7 MN | −1.1 % FE; −3.6 % test (no-interaction bound about +30 %) | | Su et al. (2026) 35 kV, EA compression | FE 329.7 MN | 298.4 MN | −9.5 % | -| Su et al. (2026) 35 kV, GJ (axial strain fixed) | FE 209.5 / 201.2 kN m² | 203.0 / 180.5 | −3.1 % / −10.3 % | +| Su et al. (2026) 35 kV, GJ (axial strain fixed) | FE 209.5 / 201.2 kN m²; test 209.8 / 201.3 kN m² | 199.5 / 177.0 | −4.8 % / −12.0 % FE (the filler bonded to the ring without warping gave 203.0 / 180.5) | | Su et al. (2026) 35 kV, interfaces at 100 kN | Source analytical model, Table 10 (kPa): 432.8, 283.9, 173.3, 176.4, 74.5; separation at armour 4 | 365.0, 255.6, 158.7, 161.9, 76.7; same separation | −16 % to +3 % | | Ménard and Cartraud (2023), P = 0.3 MPa | 46 kN/m inner sheath | 26.6 (void interstices) to 72.0 (fully filled) kN/m | Bracket only | diff --git a/tests/test_radial_benchmarks.py b/tests/test_radial_benchmarks.py index f58ffdd..6a9136d 100644 --- a/tests/test_radial_benchmarks.py +++ b/tests/test_radial_benchmarks.py @@ -165,9 +165,14 @@ def test_su_2026_35kv_axial_and_torsional_stiffness(): for sign in (1, -1) ) # Stiffer direction against the FE clockwise value, softer against the - # anticlockwise value. + # anticlockwise value (test, Table 6: 209.8 and 201.3). The filler lobes + # twist as separate bodies: -4.8 % and -12.0 %. The band of the softer + # direction was 12 % when the filler added its polar moment about the + # cable axis (-10.3 %); that bonded term is not supported by the + # frictionless filler contacts, and Su's own model without the filler + # gives -8.4 %, so the remaining gap is not the filler. assert gj[1] == pytest.approx(209.5e3, rel=0.05) - assert gj[0] == pytest.approx(201.2e3, rel=0.12) + assert gj[0] == pytest.approx(201.2e3, rel=0.13) # The no-radial-interaction bound is about 30 % stiffer than the FE. rigid = 0.0 for layer in section.layers: diff --git a/validation/scripts/run_validation.py b/validation/scripts/run_validation.py index 15b2e28..56365eb 100644 --- a/validation/scripts/run_validation.py +++ b/validation/scripts/run_validation.py @@ -797,19 +797,8 @@ def _torque_rows() -> list[Row]: v = tq.verification_checks() p = tq.published_checks() w = sv.verification_checks() + # The first two rows are tier 1 and are reported with the analytical rows. return [ - Row( - "1", - "TQ-SV", - "Saint-Venant twist rigidity with free warping (trefoil filler lobes): " - "2 x 1 rectangle vs series solution; bonded annulus as a mirrored " - "60 deg sector vs polar moment", - "< 3e-4 relative; < 1e-6 relative", - f"{w['rectangle']:.1e}; {w['annulus']:.1e}", - "PASS" - if abs(w["rectangle"]) < 3e-4 and abs(w["annulus"]) < 1e-6 - else "FAIL", - ), Row( "1", "TQ", @@ -825,6 +814,18 @@ def _torque_rows() -> list[Row]: and v["mirror"] < 1e-9 else "FAIL", ), + Row( + "1", + "TQ-SV", + "Saint-Venant twist rigidity with free warping (trefoil filler lobes): " + "2 x 1 rectangle vs series solution; bonded annulus as a mirrored " + "60 deg sector vs polar moment", + "< 3e-4 relative; < 1e-6 relative", + f"{w['rectangle']:.1e}; {w['annulus']:.1e}", + "PASS" + if abs(w["rectangle"]) < 3e-4 and abs(w["annulus"]) < 1e-6 + else "FAIL", + ), Row( "2", "TQ-KL", @@ -1230,7 +1231,7 @@ def _rows() -> list[Row]: ) torque_rows = _torque_rows() - rows.extend(torque_rows[:1]) + rows.extend(torque_rows[:2]) # A11 energy closure on a synthetic dense layer (loop area vs closed form). from cablexsec.mechanics.mkappa import HelicalLayerSpec # noqa: PLC0415 @@ -1720,7 +1721,7 @@ def _comp_row(tier: str, ident: str, quantity: str, keys: tuple[str, ...]) -> Ro ("OST12-in", "OST12-out", "OST12-sum"), ) ) - rows.extend(torque_rows[1:]) + rows.extend(torque_rows[2:]) ei_min = ei_min_slip(menard) rows.append( Row( From cc812dabb9f32f8794ffbfe78572b785cd8a3f40 Mon Sep 17 00:00:00 2001 From: Jae Hoon Seo Date: Wed, 18 Nov 2026 04:42:27 +0900 Subject: [PATCH 3/6] fix: values after the rebase onto the serving layer; no torque without shear stiffness After the serving layer (#18) the Chae, Nam and Shim (2023) cable's yarns carry no torsion, so its free torsional stiffness at 0.125 rad/m (unwinding) falls with this fix from 89.5 to 81.7 kN m^2 at an armour pitch of 1.8 m and from 58.1 to 50.3 kN m^2 at 3.0 m; the coiling how-to torques become 11.35 and 20.44 kN m. saint_venant_rigidity returns zero for a region without shear stiffness instead of solving a singular system. Signed-off-by: Jae Hoon Seo --- CHANGELOG.md | 4 ++-- doc/howto.md | 8 ++++---- src/cablexsec/mechanics/trefoil_section.py | 8 ++++---- tests/test_trefoil_torsion.py | 2 ++ validation/validation_report.md | 5 +++-- 5 files changed, 15 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c211e5a..f5b39be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -360,8 +360,8 @@ All notable changes to CableXSec are recorded in this file. The format follows `cablexsec.mechanics.trefoil_section`) solves the warping of the filler lobes on the section mesh; cores (about their centres) and bonded ring layers (about the cable axis) are unchanged. The filler term falls from 7.9 to 0.17 kN m² on the Chae, Nam and Shim (2023) cable, whose free - torsional stiffness at the source's twist of 0.125 rad/m (unwinding) falls from 106.5 to - 98.7 kN m² at an armour pitch of 1.8 m and from 70.5 to 62.7 kN m² at 3.0 m; and from 3.6 to + torsional stiffness at the source's twist of 0.125 rad/m (unwinding) falls from 89.5 to + 81.7 kN m² at an armour pitch of 1.8 m and from 58.1 to 50.3 kN m² at 3.0 m; and from 3.6 to 0.14 kN m² on the Su et al. (2026) 35 kV cable, whose torsional stiffness with the ends fixed axially becomes 199.5 / 177.0 kN m² (clockwise / anticlockwise; FE 209.5 / 201.2, test 209.8 / 201.3; previously 203.0 / 180.5). The band of that anticlockwise check is widened diff --git a/doc/howto.md b/doc/howto.md index 3b555b4..726726a 100644 --- a/doc/howto.md +++ b/doc/howto.md @@ -44,8 +44,8 @@ share of 200 kN, twist held (solved route) share of 200 kN, twist free (solved route) cu_conductor 0.301 mdpe_filler 0.006 - inner_armour 0.357 - outer_armour 0.322 + inner_armour 0.360 + outer_armour 0.320 sum of all layers 1.000 ``` @@ -185,11 +185,11 @@ cable coiled into a static tank with one twist per turn. ```text -D = 14.4 m: kappa = twist = 0.1389 1/m, torque 12.43 kN m +D = 14.4 m: kappa = twist = 0.1389 1/m, torque 11.35 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 +D = 8.0 m: kappa = twist = 0.2500 1/m, torque 20.44 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 diff --git a/src/cablexsec/mechanics/trefoil_section.py b/src/cablexsec/mechanics/trefoil_section.py index 8e71b97..5b1024f 100644 --- a/src/cablexsec/mechanics/trefoil_section.py +++ b/src/cablexsec/mechanics/trefoil_section.py @@ -769,7 +769,9 @@ def saint_venant_rigidity( value per element. """ conn = np.asarray(conn, dtype=np.int64) - if conn.size == 0: + shear_modulus = np.asarray(shear_modulus, dtype=np.float64) + if conn.size == 0 or not np.any(shear_modulus > 0.0): + # No region, or one without shear stiffness (a serving): no torsion. return 0.0 nodes, inverse = np.unique(conn, return_inverse=True) local = inverse.reshape(conn.shape) @@ -895,9 +897,7 @@ def _assemble( twist = float(np.sum(np.where(is_core, polar * cb**4, 0.0))) twist += float(np.sum(polar[~is_core & ~is_filler])) if np.any(is_filler): - twist += saint_venant_rigidity( - xy, conn[is_filler], (mu * carries)[is_filler] - ) + twist += saint_venant_rigidity(xy, conn[is_filler], (mu * carries)[is_filler]) dofs = np.zeros((ne, ndof_e), dtype=np.int64) dofs[:, 0:12:2] = 2 + 2 * conn dofs[:, 1:12:2] = 3 + 2 * conn diff --git a/tests/test_trefoil_torsion.py b/tests/test_trefoil_torsion.py index d21b5ef..b6fa289 100644 --- a/tests/test_trefoil_torsion.py +++ b/tests/test_trefoil_torsion.py @@ -59,6 +59,8 @@ def test_free_warping_reproduces_the_rectangle_series( # Displacement FE is an upper bound that converges from above. assert value >= _rectangle_series(a, 1.0) assert value == pytest.approx(_rectangle_series(a, 1.0), rel=3e-4) + # A region without shear stiffness (a serving) carries no torque. + assert saint_venant_rigidity(xy, conn, np.zeros(len(conn))) == 0.0 @pytest.mark.analytical_sanity diff --git a/validation/validation_report.md b/validation/validation_report.md index 269bd10..bbbc934 100644 --- a/validation/validation_report.md +++ b/validation/validation_report.md @@ -22,6 +22,7 @@ Every row is computed from published data or closed-form references in this repo | 1 | CFW | Laid-core contact statics (wedged trefoil, central filler) and laid filler profiles: mu = 0 armour-only loop; full-slip profile moment vs closed form; stick tangent vs EI_max + E J_f cos^3 / 2 | < 1e-12 relative; 0 N m; < 5e-3; < 1e-9 | 9.5e-17; 0.0e+00 N m; 1.0e-04; 7.8e-16 | PASS | | 1 | FR | Fretting regime: Mindlin energy vs numerical Masing loop; Fouvry A/D/B at transition; Cattaneo strip I(0) = pi/16; mu = inf stick energy; planar-path rotation | < 1e-9; < 1e-12; < 1e-12; 0 J; < 1e-12 relative | 7.8e-12; 4.4e-16; 1.6e-15; 0.0e+00 J; 4.4e-16 | PASS | | 1 | TQ | Torque balance: Feyrer Ex. 2.8 torque constant c_1S (fixed radius); coupled section vs Knapp (1981) core factor, theta = 2 nu; mirror lay reverses torque and twist | 0.0345 +/- 0.2%; < 1e-4 relative; < 1e-9 relative | 0.03446 (-0.11%); -1.3e-06; 0.0e+00 | PASS | +| 1 | TQ-SV | Saint-Venant twist rigidity with free warping (trefoil filler lobes): 2 x 1 rectangle vs series solution; bonded annulus as a mirrored 60 deg sector vs polar moment | < 3e-4 relative; < 1e-6 relative | 1.0e-04; -1.5e-08 | PASS | | 1 | A11 | M-κ energy closure (loop area vs closed form) | < 0.1% | 0.082% | PASS | | 1 | σ_B | Radial-fibre bending vs Ménard Eq. 14 (φ=0 from extension side) | < 1e-6% | 0.00e+00% | PASS | | 1 | M-rec | Assembled per-wire moment vs compute_mkappa (cross-engine, single-core) | < 2% | 0.000% | PASS | @@ -69,7 +70,7 @@ Every row is computed from published data or closed-form references in this repo ## Test taxonomy (full gate suite) -- analytical_sanity: `1183 passed` +- analytical_sanity: `1190 passed` - independent_method: `76 passed` - full_scale: `32 passed` @@ -88,4 +89,4 @@ Does each benchmark's pass come from the cable/material definition, or from an i | WITZ | `witz1996.yaml` geometry + material library + digitised Witz Figs 5-6 | EI_min YES (parameter-free); WITZ-ID: initial pressure identified on the Fig. 5 width (declared `identified`), Fig. 6 predicted without refitting | | SV11 | `saevik2011.yaml` geometry (Table 1; outer armour, tapes and sheath assumed) + material library (polymer modulus identified on the Table 1 EI) + rig constants in `validation/scripts/check_saevik2011.py` + digitised Sævik Figs 17-23 and Gjøsteen Figs 27-35 | PARTIAL — section from the cable definition; the curvature profile along the pipe comes from a harness beam model with an assumed rotation point | -Engine note (RESOLVED): the Kim/Coulomb cross-sectional loop assumes extreme-fibre full slip and is NOT a valid absolute-dissipation predictor (it is A11 internal-energy consistent only). BOTH `compute_mkappa` AND the per-wire `compute_stress` now route through the single **Papailiou** neutral-axis slip-front engine — experimentally compared with six public bending ranges. Corrected work predictions do not meet the historical energy targets. GATE A (M-rec) confirms the per-wire σ_f assembly recovers `compute_mkappa` cross-engine; GATE B (slip-onset) confirms slip starts at the neutral axis (Raoof/Papailiou), not the extreme fibre. The Coulomb loop is retired from every public path (A11 reference only). +Engine note (RESOLVED): the Kim/Coulomb cross-sectional loop assumes extreme-fibre full slip and is NOT a valid absolute-dissipation predictor (it is A11 internal-energy consistent only). BOTH `compute_mkappa` AND the per-wire `compute_stress` now route through the single **Papailiou** neutral-axis slip-front engine — experimentally compared with six public bending ranges. Corrected work predictions do not meet the historical energy targets. GATE A (M-rec) confirms the per-wire σ_f assembly recovers `compute_mkappa` cross-engine; GATE B (slip-onset) confirms slip starts at the neutral axis (Raoof/Papailiou), not the extreme fibre. The Coulomb loop is retired from every public path (A11 reference only). \ No newline at end of file From 53b7f1236b0e222fcccd2dbe5519cba4c4c3f1b5 Mon Sep 17 00:00:00 2001 From: Jae Hoon Seo Date: Wed, 18 Nov 2026 05:24:18 +0900 Subject: [PATCH 4/6] test: the rectangle reference is the package's own torsion series The TQ-SV check and the warping tests compare with tendon_section.rectangle_torsion_constant instead of a second copy of the same series. Signed-off-by: Jae Hoon Seo --- tests/test_trefoil_torsion.py | 6 +++--- validation/scripts/check_section_torsion.py | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/test_trefoil_torsion.py b/tests/test_trefoil_torsion.py index b6fa289..34bf5a9 100644 --- a/tests/test_trefoil_torsion.py +++ b/tests/test_trefoil_torsion.py @@ -10,6 +10,7 @@ import pytest from cablexsec.mechanics.concentric_section import ElasticAnnulus +from cablexsec.mechanics.tendon_section import rectangle_torsion_constant from cablexsec.mechanics.trefoil_section import ( SECTOR, SYMMETRY_FACTOR, @@ -44,9 +45,8 @@ def index(i: int, j: int) -> int: def _rectangle_series(a: float, b: float) -> float: - """Saint-Venant torsion constant of an a x b rectangle (a >= b), series.""" - total = sum(math.tanh(n * math.pi * a / (2 * b)) / n**5 for n in range(1, 400, 2)) - return a * b**3 / 3 * (1 - 192 / math.pi**5 * b / a * total) + """Saint-Venant torsion constant of an a x b rectangle (series).""" + return rectangle_torsion_constant(a, b) @pytest.mark.analytical_sanity diff --git a/validation/scripts/check_section_torsion.py b/validation/scripts/check_section_torsion.py index 0df4fdc..b4272be 100644 --- a/validation/scripts/check_section_torsion.py +++ b/validation/scripts/check_section_torsion.py @@ -10,9 +10,9 @@ their own warping (``saint_venant_rigidity``). The warping solver is checked against two closed forms: -* the Saint-Venant torsion constant of a solid rectangle, series solution +* the Saint-Venant torsion constant of a solid rectangle, the exact series ``J = a b^3 / 3 [1 - 192 b / (pi^5 a) sum_odd tanh(n pi a / 2b) / n^5]`` - (Timoshenko and Goodier, Theory of Elasticity, 3rd ed., Sec. 109), for an + of ``cablexsec.mechanics.tendon_section.rectangle_torsion_constant``, for an aspect ratio of 2; * a bonded annulus meshed as the 60 degree sector of the trefoil model with the mirror conditions, whose warping vanishes, so its rigidity is the polar @@ -25,6 +25,7 @@ import numpy as np +from cablexsec.mechanics.tendon_section import rectangle_torsion_constant from cablexsec.mechanics.trefoil_section import SECTOR, saint_venant_rigidity @@ -51,9 +52,8 @@ def index(i: int, j: int) -> int: def rectangle_series(a: float, b: float) -> float: - """Torsion constant of an ``a x b`` rectangle, ``a >= b`` (series).""" - total = sum(math.tanh(n * math.pi * a / (2 * b)) / n**5 for n in range(1, 400, 2)) - return a * b**3 / 3 * (1 - 192 / math.pi**5 * b / a * total) + """Torsion constant of an ``a x b`` rectangle (series, tendon_section).""" + return rectangle_torsion_constant(a, b) def rectangle_error(a: float = 2.0, b: float = 1.0, nx: int = 16) -> float: From 7c6432d93b513d6f6c67281e6e4e32c0c2ec5f37 Mon Sep 17 00:00:00 2001 From: Jae Hoon Seo Date: Wed, 18 Nov 2026 05:43:35 +0900 Subject: [PATCH 5/6] fix: the filler's mirror boundary comes from the mesh, not from the exact line When the cores do not touch (r_c sin 60 deg > a) the filler's 60 degree boundary nodes lie off the exact mirror line (about 0.4 um on the Chae, Nam and Shim (2023) cable), so a geometric test left that boundary free to warp and halved the filler term. The nodes are now taken from the mesh keys, as the in-plane mirror conditions do (saint_venant_rigidity takes mirror_nodes). The Chae filler term is 0.32 kN m^2 (was 0.17 with the geometric test; 7.9 before this branch), its free torsional stiffness at 0.125 rad/m 81.9 / 50.5 kN m^2 at armour pitches of 1.8 / 3.0 m, and the coiling how-to torques 11.37 and 20.47 kN m. A test moves the cores 0.2 % apart and keeps the filler term within 3 % of the touching one. Signed-off-by: Jae Hoon Seo --- CHANGELOG.md | 4 +- doc/howto.md | 6 +-- doc/radial_model.md | 2 +- src/cablexsec/mechanics/trefoil_section.py | 54 ++++++++++++++++++---- tests/test_trefoil_torsion.py | 23 +++++++-- 5 files changed, 70 insertions(+), 19 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f5b39be..a02b3b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -359,9 +359,9 @@ All notable changes to CableXSec are recorded in this file. The format follows the three outer interstices are disjoint. `saint_venant_rigidity` (in `cablexsec.mechanics.trefoil_section`) solves the warping of the filler lobes on the section mesh; cores (about their centres) and bonded ring layers (about the cable axis) are unchanged. - The filler term falls from 7.9 to 0.17 kN m² on the Chae, Nam and Shim (2023) cable, whose free + The filler term falls from 7.9 to 0.32 kN m² on the Chae, Nam and Shim (2023) cable, whose free torsional stiffness at the source's twist of 0.125 rad/m (unwinding) falls from 89.5 to - 81.7 kN m² at an armour pitch of 1.8 m and from 58.1 to 50.3 kN m² at 3.0 m; and from 3.6 to + 81.9 kN m² at an armour pitch of 1.8 m and from 58.1 to 50.5 kN m² at 3.0 m; and from 3.6 to 0.14 kN m² on the Su et al. (2026) 35 kV cable, whose torsional stiffness with the ends fixed axially becomes 199.5 / 177.0 kN m² (clockwise / anticlockwise; FE 209.5 / 201.2, test 209.8 / 201.3; previously 203.0 / 180.5). The band of that anticlockwise check is widened diff --git a/doc/howto.md b/doc/howto.md index 726726a..08895c1 100644 --- a/doc/howto.md +++ b/doc/howto.md @@ -44,7 +44,7 @@ share of 200 kN, twist held (solved route) share of 200 kN, twist free (solved route) cu_conductor 0.301 mdpe_filler 0.006 - inner_armour 0.360 + inner_armour 0.359 outer_armour 0.320 sum of all layers 1.000 ``` @@ -185,11 +185,11 @@ cable coiled into a static tank with one twist per turn. ```text -D = 14.4 m: kappa = twist = 0.1389 1/m, torque 11.35 kN m +D = 14.4 m: kappa = twist = 0.1389 1/m, torque 11.37 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 20.44 kN m +D = 8.0 m: kappa = twist = 0.2500 1/m, torque 20.47 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 diff --git a/doc/radial_model.md b/doc/radial_model.md index 64a565a..4da80c7 100644 --- a/doc/radial_model.md +++ b/doc/radial_model.md @@ -206,7 +206,7 @@ The section state minimises the small-strain elastic energy per axial metre with - `filler="solid"`: meshed in the outer interstices with unilateral contact. - `"void"`: flooded or loose yarn. - `"auto"`: as declared. The central interstice is void. -- Saint-Venant twist rigidity: the bonded ring layers twist about the cable axis and each core about its own centre (both exact for annuli). The filler lobes touch cores and ring through frictionless contacts that carry no axial shear, so they twist as separate bodies with their own warping (`saint_venant_rigidity`, validation row TQ-SV), not with their polar moment about the cable axis. The filler then adds 0.17 kN m² to the Chae, Nam and Shim (2023) cable instead of 7.9 kN m², and 0.14 kN m² instead of 3.6 kN m² to the Su et al. (2026) 35 kV cable. +- Saint-Venant twist rigidity: the bonded ring layers twist about the cable axis and each core about its own centre (both exact for annuli). The filler lobes touch cores and ring through frictionless contacts that carry no axial shear, so they twist as separate bodies with their own warping (`saint_venant_rigidity`, validation row TQ-SV), not with their polar moment about the cable axis. The filler then adds 0.32 kN m² to the Chae, Nam and Shim (2023) cable instead of 7.9 kN m², and 0.14 kN m² instead of 3.6 kN m² to the Su et al. (2026) 35 kV cable. - Stranded conductors whose metal area differs from the envelope, nested strands and corrugated shells are rejected, as in A3. The 220 kV template and CIGRE TB 880 are therefore unsupported. ### 3.5 Limits diff --git a/src/cablexsec/mechanics/trefoil_section.py b/src/cablexsec/mechanics/trefoil_section.py index 5b1024f..70cd3b4 100644 --- a/src/cablexsec/mechanics/trefoil_section.py +++ b/src/cablexsec/mechanics/trefoil_section.py @@ -541,8 +541,27 @@ def filler_node(j: int, t: int) -> int: 2 + 2 * nodes.keys[("core", 0, 2 * n_phi)], ) + # Filler nodes of the 60 degree mirror boundary, by mesh key: they lie + # off the exact line when the cores do not touch (rc sin 60 > a). + mirror_filler = np.array( + [ + index + for key, index in nodes.keys.items() + if key[0] == "filler" and key[1] == 2 * n_theta + ], + dtype=np.int64, + ) stiffness, load, twist_rigidity = _assemble( - xy, conn, props, axial_map, centre_dofs, n_dof, groups, rc, cb + xy, + conn, + props, + axial_map, + centre_dofs, + n_dof, + groups, + rc, + cb, + mirror_filler, ) # Grounded stabilisation of in-plane freedoms. e_min = float(np.min(props[:, 0])) @@ -754,19 +773,22 @@ def saint_venant_rigidity( shear_modulus: FloatArray, *, mirror_angles: tuple[float, ...] = (0.0, SECTOR), + mirror_nodes: NDArray[np.int64] | None = None, ) -> float: """Saint-Venant torsional rigidity [N m²] of a region of six-node triangles. The twist is about the origin. The warping ``w = tau psi`` of the region is free and minimises the shear energy, so the rigidity is ``int G |grad psi + (-y, x)|² dA``, which is the polar moment - ``int G r² dA`` less the warping relief. Nodes on a mirror line through - the origin at one of ``mirror_angles`` have ``psi = 0`` (torsion warping is - antisymmetric about a mirror plane that contains the twist axis); a - connected part of the region with no such node has its first node held, - which removes its rigid axial translation. ``conn`` lists the elements of - the region in the node numbering of ``xy``; ``shear_modulus`` gives one - value per element. + ``int G r² dA`` less the warping relief. Mirror nodes have ``psi = 0`` + (torsion warping is antisymmetric about a mirror plane that contains the + twist axis): the nodes on a line through the origin at one of + ``mirror_angles`` and the nodes listed in ``mirror_nodes`` (numbering of + ``xy``), which a mesh gives for a mirror boundary whose nodes lie off the + exact line. A connected part of the region with no mirror node has its + first node held, which removes its rigid axial translation. ``conn`` + lists the elements of the region in the node numbering of ``xy``; + ``shear_modulus`` gives one value per element. """ conn = np.asarray(conn, dtype=np.int64) shear_modulus = np.asarray(shear_modulus, dtype=np.float64) @@ -809,6 +831,8 @@ def saint_venant_rigidity( for angle in mirror_angles: distance = np.abs(pts[:, 0] * math.sin(angle) - pts[:, 1] * math.cos(angle)) fixed |= distance <= 1e-9 * scale + if mirror_nodes is not None: + fixed |= np.isin(nodes, np.asarray(mirror_nodes, dtype=np.int64)) count, label = connected_components(k, directed=False) for part in range(count): members = np.flatnonzero(label == part) @@ -831,8 +855,13 @@ def _assemble( groups: dict[str, list[int]], rc: float, cb: float, + mirror_nodes: NDArray[np.int64] | None = None, ) -> tuple[sp.coo_matrix, FloatArray, float]: - """Generalised plane-strain T6 stiffness, free-strain load, twist rigidity.""" + """Generalised plane-strain T6 stiffness, free-strain load, twist rigidity. + + ``mirror_nodes`` are the filler nodes of the 60 degree mirror boundary, + which lie off the exact line when the cores do not touch. + """ ne = len(conn) coords = xy[conn] # (ne, 6, 2) e, nu, e0, carries = props[:, 0], props[:, 1], props[:, 2], props[:, 4] @@ -897,7 +926,12 @@ def _assemble( twist = float(np.sum(np.where(is_core, polar * cb**4, 0.0))) twist += float(np.sum(polar[~is_core & ~is_filler])) if np.any(is_filler): - twist += saint_venant_rigidity(xy, conn[is_filler], (mu * carries)[is_filler]) + twist += saint_venant_rigidity( + xy, + conn[is_filler], + (mu * carries)[is_filler], + mirror_nodes=mirror_nodes, + ) dofs = np.zeros((ne, ndof_e), dtype=np.int64) dofs[:, 0:12:2] = 2 + 2 * conn dofs[:, 1:12:2] = 3 + 2 * conn diff --git a/tests/test_trefoil_torsion.py b/tests/test_trefoil_torsion.py index 34bf5a9..db2ca44 100644 --- a/tests/test_trefoil_torsion.py +++ b/tests/test_trefoil_torsion.py @@ -99,19 +99,36 @@ def node(i: int, j: int) -> int: RC = 2 * A / math.sqrt(3) -def _bundle(filler: ElasticFiller | None) -> TrefoilBundle: +def _bundle(filler: ElasticFiller | None, rc: float = RC) -> TrefoilBundle: return TrefoilBundle( ( ElasticAnnulus("cond", 0.0, 0.01, 117e9, 0.34), ElasticAnnulus("ins", 0.01, A, 0.15e9, 0.45), ), - RC, - (ElasticAnnulus("ring", RC + A, RC + A + 0.003, 0.9e9, 0.46),), + rc, + (ElasticAnnulus("ring", rc + A, rc + A + 0.003, 0.9e9, 0.46),), filler=filler, angular_cells=24, ) +def _filler_term(rc: float) -> float: + filler = ElasticFiller("filler", 0.9e9, 0.45) + with_filler = build_trefoil_model(_bundle(filler, rc)).stiffness[1, 1] + return float(with_filler - build_trefoil_model(_bundle(None, rc)).stiffness[1, 1]) + + +@pytest.mark.analytical_sanity +def test_filler_mirror_boundary_off_the_line_stays_antisymmetric() -> None: + """Cores 0.2 % apart: the filler's 60 degree boundary nodes lie off the + exact mirror line but are the mesh's mirror boundary, so the warping + still vanishes there and the filler term stays continuous (a geometric + test of the line alone would free that boundary and halve the term).""" + touching = _filler_term(RC) + apart = _filler_term(1.002 * RC) + assert apart == pytest.approx(touching, rel=0.03) + + @pytest.mark.analytical_sanity def test_cores_and_ring_twist_about_their_own_axes() -> None: """Straight cores about their centres, the ring about the cable axis.""" From b3cb545e6d4a85621cee17d81f2bec5dabf9e5f3 Mon Sep 17 00:00:00 2001 From: Jae Hoon Seo Date: Wed, 18 Nov 2026 06:41:57 +0900 Subject: [PATCH 6/6] validation: the report ends with its newline after the rebase Signed-off-by: Jae Hoon Seo --- validation/validation_report.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validation/validation_report.md b/validation/validation_report.md index bbbc934..80e2d82 100644 --- a/validation/validation_report.md +++ b/validation/validation_report.md @@ -89,4 +89,4 @@ Does each benchmark's pass come from the cable/material definition, or from an i | WITZ | `witz1996.yaml` geometry + material library + digitised Witz Figs 5-6 | EI_min YES (parameter-free); WITZ-ID: initial pressure identified on the Fig. 5 width (declared `identified`), Fig. 6 predicted without refitting | | SV11 | `saevik2011.yaml` geometry (Table 1; outer armour, tapes and sheath assumed) + material library (polymer modulus identified on the Table 1 EI) + rig constants in `validation/scripts/check_saevik2011.py` + digitised Sævik Figs 17-23 and Gjøsteen Figs 27-35 | PARTIAL — section from the cable definition; the curvature profile along the pipe comes from a harness beam model with an assumed rotation point | -Engine note (RESOLVED): the Kim/Coulomb cross-sectional loop assumes extreme-fibre full slip and is NOT a valid absolute-dissipation predictor (it is A11 internal-energy consistent only). BOTH `compute_mkappa` AND the per-wire `compute_stress` now route through the single **Papailiou** neutral-axis slip-front engine — experimentally compared with six public bending ranges. Corrected work predictions do not meet the historical energy targets. GATE A (M-rec) confirms the per-wire σ_f assembly recovers `compute_mkappa` cross-engine; GATE B (slip-onset) confirms slip starts at the neutral axis (Raoof/Papailiou), not the extreme fibre. The Coulomb loop is retired from every public path (A11 reference only). \ No newline at end of file +Engine note (RESOLVED): the Kim/Coulomb cross-sectional loop assumes extreme-fibre full slip and is NOT a valid absolute-dissipation predictor (it is A11 internal-energy consistent only). BOTH `compute_mkappa` AND the per-wire `compute_stress` now route through the single **Papailiou** neutral-axis slip-front engine — experimentally compared with six public bending ranges. Corrected work predictions do not meet the historical energy targets. GATE A (M-rec) confirms the per-wire σ_f assembly recovers `compute_mkappa` cross-engine; GATE B (slip-onset) confirms slip starts at the neutral axis (Raoof/Papailiou), not the extreme fibre. The Coulomb loop is retired from every public path (A11 reference only).