Skip to content

feat: torsional wire stress in the fatigue path from the cable twist rate - #53

Merged
SMI-Lab-Inha merged 2 commits into
devfrom
feat/fatigue-torsion
Nov 20, 2026
Merged

SMI-Lab-Inha merged 2 commits into
devfrom
feat/fatigue-torsion

Conversation

@SMI-Lab-Inha

@SMI-Lab-Inha SMI-Lab-Inha commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Summary

Until now a twist of the cable only turned the section frame. With this change it also stresses the armour and conductor wires. Three entry points take the new optional input twist_rate_per_m [rad/m]:

  • compute_fatigue
  • compute_conductor_fatigue
  • the sea-state batch, through SeaStateBatchOptions(twist_stress=True)

The CableDyn reader forms the input from the Twist<L>N<J> channels. Without the input, every result is unchanged, bit for bit.

Mechanics

With plane sections and fixed layer radii, a wire of lay angle $a$, helix radius $R$ and lay sign $s$ (+1 right hand / Z, −1 left hand / S) strains under the cable strain $\varepsilon$ and twist rate $\tau$ as

$$ \varepsilon_w = \varepsilon\cos^2 a + s,R,\tau,\sin a\cos a . $$

This is Knapp (1981), Eq. 11 with a radially rigid core ($\theta = 0$), with the twist strain $\gamma = R\tau/\tan a$ of its Eq. 2.

Tension route. With a tension history the tension is held. The section law $T = K_{ee}\varepsilon + K_{et}\tau$ then gives $\varepsilon = (T - K_{et}\tau)/K_{ee}$, and the wire stress per unit twist rate is

$$ \frac{\partial\sigma}{\partial\tau} = E\left(s R \sin a\cos a - \cos^2 a,\frac{K_{et}}{K_{ee}}\right) $$

(twist_stress_coefficient). This is the law CableDyn solves with GJ|K ($T = EA,\varepsilon + K\tau$, $M = GJ,\tau + K\varepsilon$). A deck whose EA|GJ|K are the section's $K_{ee}$, $K_{tt}$, $K_{et}$ therefore hands CableXSec the strain CableDyn has.

Prescribed-strain route. With axial_strain the strain is held and only the helix term is added.

Friction. The twist stress is uniform over a layer. It adds to $\sigma_A$ and leaves the bending slip of every friction model unchanged (direction-tied, distributed, progressive).

Conductor. The plane cable section turns as a whole:

  • the conductor axis of a laid core strains by $(r_c\tan b - K_{et}/K_{ee}),\tau$, which is the core's term of $K_{et}$;
  • each ring wire takes $\cos^2 a$ of that plus its own helix strain $s,r\sin a\cos a,\tau$.

Input: twist rate from Twist, not torque

CableDyn's element twist is $\mathrm{Twist}_{k+1} - \mathrm{Twist}k = M L_0/GJ - (K/GJ)(l - L_0)$, the material twist. So $(\mathrm{Twist}{k+1} - \mathrm{Twist}_k)/L_0$ is the kinematic twist rate.

CableDynSectionHistory.twist_rate_per_m is formed as follows:

Section Twist rate Twist channels needed
inside an element that element's rate the two bracketing nodes (already needed for the frame)
on a deck node $J$ mean of the two element rates, as CableDyn defines Torq<L>N<J> $J-1$, $J$, $J+1$
at a line end the end element's rate the end node and its neighbour

The torque is not converted, for three reasons:

  • it includes the Kelvin–Voigt torsional damping;
  • under a stiffener it is the section torque, not the cable's share;
  • converting it would need a torsional law, while the twist rate is the global model's own kinematics, like the curvature.

Torq = GJ τ + K ε serves as a consistency check instead.

Signs. CableDyn's Twist is right-handed about the End A → End B tangent. That is CableXSec's convention (a positive twist tightens a right-hand lay), so no flip is needed.

No silent omission.

  • Where CableDyn writes Twist or Torq at a section but not the channels the rate needs, the reader emits TorsionalStressWarning naming the missing channels.
  • The batch warns when it leaves out a history's twist rate (twist_stress=False, the default). With twist_stress=True it refuses a section of a torsion-solved line that has no twist rate.
  • twist_rate_per_m is refused with section_states, the qp contact model and a solved normal_stress_Pa, whose states carry their own zero twist.
  • section_channels now lists Twist at the node before a section that lies on a deck node.

Verification (row TQ-FT; targets registered before the run)

Check Target Result
66 kV armour, 60 kN and a twist history without bending: recovered stress and per-wire damage against the closed form from the schema data < 1e-12 3.6e-16; 4.5e-15
Feyrer 1×37 rope (only the helical layers carry $K_{et}$, $K_{tt}$): torque $\sum s n A\sigma R\sin a$ and tension of the fatigue wire stresses against $K_{et}\varepsilon + K_{tt}\tau$ and $T$ < 1e-12 2.2e-16; 0
Every lay reversed and the twist negated, with biaxial bending: per-wire damage < 1e-12 0
Zero twist against no twist input, armour fibres and conductor azimuths 0 0

Further checks:

  • Sign: a right-hand (Z) layer takes tension and a left-hand (S) layer compression under a positive twist rate.
  • Existing rows: TQ, TQ-KL and TQ-UJ are unchanged. None of them measures wire strain under torsion, and no measured row does yet. Utting and Jones (1987, Part II, Figs 5–6) is noted as a candidate.
  • Solved radial section of the 66 kV template at 1e-3 rad/m (tension held, 0 and 50 kN): the fixed-radius twist stress is within 6 % on the inner armour (−3.88 against −3.66 / −3.89 MPa) and within 1 % on the outer armour (+2.62 against +2.64 / +2.61 MPa). Stated, not gated.

Limits (documented, recorded in provenance)

The term is the linear fixed-radius helix strain. It does not include:

  • the radial contraction of the layers;
  • contact opening under a twist that unloads a layer;
  • the twist's change of the interlayer contact pressure (the friction caps follow the tension);
  • the bending and twisting of the individual wires.

Gates

CI on 5354c4c, which includes the merge of origin/dev at #51: every check is green.

  • Python 3.11 and 3.12 on Linux, macOS and Windows.
  • The NumPy reference path.
  • Coverage ≥ 95 %.
  • The validation report is current.
  • Lint, mypy (strict), Sphinx and the build.

Local, Miniconda env cablexsec (Python 3.12.16, numpy 2.5.4, numba 0.68.1, scipy 1.18.1):

  • Full suite with numba: 4919 passed, 3 skipped, 1 failed. The failure is test_core_friction.py::test_coupling_and_provenance, an EI_tangent >= EI_min comparison at a relative 6e-15. It fails identically on dev (1a595af) in this env, from numpy 2.5.4 round-off, and is not touched here.
  • ruff check and ruff format --check: clean.
  • mypy: CI's job passes. Under the conda env, numpy 2.5.4's stubs give 40 errors in 14 files, the same 40 as on dev. None of them is on a line this PR changes, and they are left for a separate change.
  • Taxonomy from --collect-only: analytical_sanity 1248 → 1254 (the six new TQ-FT tests); independent_method 77 and full_scale 59 are unchanged.

Docs

  • CHANGELOG.md
  • doc/user_guide.md §2.5
  • doc/global_local_guide.md §2.2 (new: mechanics, input, signs, deck outputs, limits), §3 (batch option), §4 (verification row)
  • doc/benchmarks.md TQ8 (TQ-FT)
  • VALIDATION.md and validation/validation_report.md: row TQ-FT; analytical_sanity 1248 → 1254
  • validation/scripts/run_validation.py, validation/scripts/check_torque_balance.py

…rate

A twist of the cable now stresses the armour and conductor wires, not only
the section frame.

- compute_fatigue and compute_conductor_fatigue take twist_rate_per_m
  [rad/m], positive in the sense that tightens a right-hand (Z) lay.
- Every armour wire gains the axial stress of the helix strain
  s r sin(a) cos(a) tau (Knapp 1981, Eqs. 2 and 11, fixed radii). With a
  tension history the tension is held, so the strain also changes by
  -K_et tau / K_ee, the section law CableDyn solves with GJ|K.
- The stress is uniform over a layer, so the slip state of every friction
  model is unchanged.
- Each conductor ring wire gains the strain of the laid core and of the
  ring twisting with the cable.
- The CableDyn reader forms CableDynSectionHistory.twist_rate_per_m from
  the Twist<L>N<J> channels. Inside an element it is that element's rate;
  on a deck node it is the mean of the two element rates, as CableDyn
  defines Torq<L>N<J>. The torque is not converted: it contains the
  torsional damping and, under a stiffener, the sleeve's share.
- TorsionalStressWarning names the missing Twist channels where CableDyn
  writes twist or torque at a section but the rate cannot be formed.
- section_channels lists the extra node.
- The sea-state batch applies the stress with twist_stress=True and warns
  when it omits it.
- Without the input every result is unchanged, bit for bit.

Verification row TQ-FT (registered before the run):
- closed-form stress and damage: 4.5e-15
- torque and tension carried by the wires against K_et, K_tt: 2.2e-16
- mirror lay with reversed twist: 0
- zero twist against none: 0

Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
@SMI-Lab-Inha

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-20T13:32:13.954396Z 5354c4c Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@read-the-docs-community

read-the-docs-community Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Documentation build overview

📚 CableXSec | 🛠️ Build #36043103 | 📁 Comparing 5354c4c against latest (240bf9c)

  🔍 Preview build  

24 files changed · ± 24 modified

± Modified

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: 8cf558f885

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Brings in #51 (Ménard rows gated with an identified clamping; CH-GJ
removed). No conflicts. Both changelog entries are kept. The taxonomy
from --collect-only is unchanged at 1254 / 77 / 59.

Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
@SMI-Lab-Inha

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: 5354c4c86d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@SMI-Lab-Inha
SMI-Lab-Inha merged commit 7edd02b into dev Nov 20, 2026
14 checks passed
@SMI-Lab-Inha
SMI-Lab-Inha deleted the feat/fatigue-torsion branch November 20, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant