Skip to content

feat: rig tension phase lag, block programmes, TB 862 lengths - #67

Merged
SMI-Lab-Inha merged 3 commits into
devfrom
feat/rig-protocols-tb862
Nov 28, 2026
Merged

SMI-Lab-Inha merged 3 commits into
devfrom
feat/rig-protocols-tb862

Conversation

@SMI-Lab-Inha

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

Copy link
Copy Markdown
Owner

Summary

Three additions to the rig-test module for full-scale dynamic-cable test programmes per CIGRE TB 862 (2022):

  1. Phase-lagged tension: RigProtocol.cyclic could cycle the tension only in phase with the bending.
  2. Block programmes: RigProtocol.blocks builds constant-tension blocks, as in a full-scale fatigue test.
  3. Specimen-length checks: tb862_specimen_checks tests the lengths of a specimen against the cable's own lay pitches.

Tension phase lag

RigProtocol.cyclic(..., tension_phase_lag_deg=0.0) takes any lag between the tension and the bending cycle (quadrature, antiphase or other). The ramp ends at the tension of the first cycle, so there is no step at the start of cycling.

Block programmes (TB 862 6.3.4.1)

blocks = [
    cx.RigBlock(tension_N=200e3, amplitude=0.05, n_cycles=3),
    cx.RigBlock(tension_N=300e3, amplitude=0.08, n_cycles=3),
]
protocol = cx.RigProtocol.blocks(blocks, quantity="curvature", temperature_C=20.0)
protocol.block_times_s  # cycling interval of each block
  • Each RigBlock holds a constant tension, a bending amplitude, a number of simulated cycles and a mean.
  • Successive blocks are joined by linear transitions.
  • block_times_s records each block's cycling interval, so the ranges of a block can be counted alone.

Specimen lengths

$P_a$ is the pitch of the outer armour wires (the outermost structural helical layer). $P_{max}$ is the longest pitch of any component (component_pitches: armour, core lay, strand rings, stranded sub-conductors and tape windings). A conductor given by one strand_lay_angle_deg without resolved strand_layers is listed at its outer radius, $2\pi r_{outer}/\tan|\alpha|$, an upper bound of its strand pitch. A check whose pitch is unknown is refused, not passed: a withheld core_lay pitch, a helical layer without its radius or lay angle, or a stranded conductor without its outer radius blocks the $P_{max}$ checks, and a withheld armour blocks the $P_a$ checks.

test TB 862 clause Check
fatigue_template 6.3.2 loaded section $\ge P_{max}$; $\ge P_a$ to each end fitting (recommended)
fatigue_bend_stiffener 6.3.2 $\ge P_a$ from the top fitting to the stiffener flange ("shall"); $\ge P_a$ from the tip to the bottom fitting (recommended)
bending_stiffness 6.4.2.2 sample $\ge P_a$
compression_bending 6.6.1.2 sample $\ge 2 P_{max}$
compression 6.6.1.2 $\ge P_{max}$ between the end fittings ("must")

With a setup of the uniform profile, the template-fatigue lengths default to its free length and its clamp set-back.

Each SpecimenCheck holds the requirement and its clause, the required and the given length, and whether TB 862 makes it mandatory ("shall", "must") or recommends it. passed gives the result.

The optional block-programme designer (TB 862 Tables D.1 to D.3) is not part of this PR.

Tests

  • tests/test_rig_tb862.py (21 tests):
    • phase lag: 0° equals the old in-phase record; 90° and 180° against the closed form; the tension at the bending peak; the ramp end;
    • blocks: each block holds its tension; block_times_s lies in the record; a block programme runs through the rig simulation;
    • component_pitches of the 66 kV template against $2\pi r / \tan\alpha$ of its outer armour and its 1.4542 m core lay;
    • each specimen check on that template, passing and failing;
    • the pitch of a tape winding, and a tape that sets $P_{max}$;
    • a single-angle strand lay (either sign) that sets $P_{max}$;
    • refusal of a withheld core-lay, armour or strand pitch;
    • input errors.
  • Full suite passes locally (-n 7), as do ruff check, ruff format --check, mypy and sphinx-build -W.
  • Validation report taxonomy: analytical_sanity 1347 (+21).

Checklist

  • pre-commit run --all-files passes (ruff check and format on the CI trees)
  • python -m pytest -q passes
  • python -m mypy passes
  • validation/validation_report.md updated (taxonomy)
  • CHANGELOG.md updated under [Unreleased]
  • Documentation in doc/ updated (rig_test_guide.md)
  • Every new constant or reference value states its source
  • Conventional Commit title
  • Commits are signed off

RigProtocol.cyclic could cycle the tension only in phase with the
bending. It now takes tension_phase_lag_deg (quadrature, antiphase or
any lag), and the ramp ends at the tension of the first cycle.

RigProtocol.blocks builds a programme of constant-tension blocks
(RigBlock: tension, amplitude, simulated cycles, mean) with linear
transitions, as in the block programme of a full-scale fatigue test
(CIGRE TB 862, 2022, 6.3.4.1); block_times_s records each block's
cycling interval so that its ranges can be taken alone.

tb862_specimen_checks compares specimen lengths with TB 862: 6.3.2 for
the template and bend-stiffener fatigue set-ups, 6.4.2.2 for the
bending-stiffness sample and 6.6.1.2 for the compression tests, using
the lay pitches of the cable's helical components (component_pitches).

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 28, 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-28T18:11:13.089716Z 8d044ec 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 28, 2026 •

Copy link
Copy Markdown

Documentation build overview

📚 CableXSec | 🛠️ Build #36233435 | 📁 Comparing 8d044ec against latest (2af48a4)

  🔍 Preview build  

16 files changed · ± 16 modified

± Modified

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bfdcde83a6

ℹ️ 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".

Comment thread src/cablexsec/analysis/rig_test.py Resolved
Comment thread src/cablexsec/analysis/rig_test.py Resolved
component_pitches left out tape windings, which are cylindrical layers
with a tape descriptor: a tape with the longest pitch gave a P_max too
short, so an undersized fatigue or compression specimen could pass. The
tape pitch is now 2 pi rho / tan(beta) at the layer's mid radius, as
tape_geometry computes it.

A withheld core_lay pitch, or a helical layer without its radius or lay
angle, was skipped, so P_max or P_a could be too short and a mandatory
check pass. tb862_specimen_checks now raises when the pitch it needs is
unknown: any withheld component for the P_max checks, a withheld armour
for the P_a checks.

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 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 29a4a705ee

ℹ️ 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".

Comment thread src/cablexsec/analysis/rig_test.py Resolved
A conductor given by one strand_lay_angle_deg, without resolved
strand_layers, was left out of component_pitches and not flagged as
withheld, so its strand pitch could exceed P_max and a compression check
pass. It is now listed at its outer radius, 2 pi r_outer / tan|alpha|, an
upper bound of its strand pitch at that angle (the strands lie inside
r_outer). Without r_outer_m the pitch is withheld and the P_max checks
refuse it.

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. Keep them coming!

Reviewed commit: 8d044ec4f0

ℹ️ 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 4a408b2 into dev Nov 28, 2026
14 checks passed
@SMI-Lab-Inha
SMI-Lab-Inha deleted the feat/rig-protocols-tb862 branch November 30, 2026 00:38
SMI-Lab-Inha added a commit that referenced this pull request Nov 30, 2026
Three additions to the rig-test module for full-scale dynamic-cable test
programmes per CIGRE TB 862 (2022):

- RigProtocol.cyclic takes tension_phase_lag_deg, any lag between the
  tension and the bending cycle; the ramp ends at the first-cycle tension.
- RigProtocol.blocks builds constant-tension block programmes (TB 862
  6.3.4.1) from RigBlock entries joined by linear transitions;
  block_times_s records each block's cycling interval.
- tb862_specimen_checks tests specimen lengths against the cable's lay
  pitches (6.3.2 fatigue, 6.4.2.2 bending stiffness, 6.6.1.2 compression).
  component_pitches lists armour, core lay, strand rings, stranded
  sub-conductors, tape windings and single-angle strand lays (at the outer
  radius, an upper bound). A check whose pitch is withheld is refused, not
  passed.

Tests: tests/test_rig_tb862.py (21); analytical_sanity 1347.

Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
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