Skip to content

feat: TB 862 block programme of a full-scale fatigue test - #70

Merged
SMI-Lab-Inha merged 1 commit into
devfrom
feat/tb862-block-programme
Nov 30, 2026
Merged

SMI-Lab-Inha merged 1 commit into
devfrom
feat/tb862-block-programme

Conversation

@SMI-Lab-Inha

Copy link
Copy Markdown
Owner

Summary

The block programme of a full-scale fatigue test per CIGRE TB 862 (2022) 6.3.4, with TB 862 Appendix D Tables D.1 to D.3 as regression cases. This is the optional designer of follow-up B14, after the rig additions of #67.

blocks = (
    cx.FatigueTestBlock(973_459, 80e3, 0.029, 4.58e-12, label="1"),
    cx.FatigueTestBlock(122_231, 80e3, 0.085, 9.90e-10, label="3"),
    cx.FatigueTestBlock(61, 110e3, 0.341, 1.11e-6, label="8"),
)
programme = cx.BlockProgramme(blocks)
programme.total_damage, programme.damage_shares, programme.accumulated_damage
programme.check(2.85e-4, service_mean_tension_N=10e3)   # Table 6-4
programme.test_sequence()                               # 6.3.4.3: 1A 3A 8A 1B 3B 8B
cx.RigProtocol.blocks(programme.to_rig_blocks(simulated_cycles=2))
Piece TB 862 What it does
FatigueTestBlock Tables 6-1, 6-2, D.1 cycles, constant tension, curvature range, damage per cycle (from the service fatigue calculation, 6.3.4.1); damage
BlockProgramme totals Tables 6-1, 6-2 total cycles and damage, accumulated damage, damage shares (Fig. D.12)
check() 6.3.4.1, Table 6-4 test damage ≥ service damage; lowest block tension ≥ service mean tension
test_sequence() 6.3.4.3, D.4, Table D.3 blocks over 1 % of all cycles not run in one row; at most max_fraction (50 %) of a block before switching
to_rig_blocks() — RigBlocks of amplitude range/2 for the rig simulation

Ordering of the parts

Each block is cut into $\lceil 1/f_{\max} \rceil$ parts. The parts are ordered so that no two parts of one block follow each other: each step runs the next part of the block with the most parts left, other than the block just run, ties going to programme order. With equal part counts this gives the rounds of Table D.3 (1A … 8A, then 1B … 8B).

A plain round order is not enough. With a three-part block and two single-part blocks it gives bigA, tiny, tiny2, bigB, bigC, which runs two thirds of the big block in a row. The greedy order gives bigA, tiny, bigB, tiny2, bigC.

When the largest block has more parts than the others can separate (a single block, or three parts against one other part), no sequence meets 6.3.4.3. The method then raises CableInputError instead of returning a sequence that breaks the rule.

rounding="exact" (default) keeps every block's cycles, so a part of an odd block can be one cycle over half. rounding="up" gives every part ceil(n/parts) cycles, as Table D.3 does (1,500,472 cycles against 1,500,464).

Findings in TB 862 Appendix D

  • Table D.3 prints 6.05e-4 for the damage of blocks 3A and 3B; 61,116 × 9.90e-10 = 6.05e-5, which its total 4.68e-4 uses.
  • Appendix D.3 gives a service mean tension of 82 kN at the bend stiffener (1.75 m) and requires the block tension to be at least that, but Table D.2 runs at 80 kN: the strict Table 6-4 tension check fails on its own example (recorded in a test, not hidden).

Docs correction for #69

ThermalResult.resistances, the CHANGELOG entry and doc/local_analysis_guide.md still described the $T_2$/$T_3$ split "at the innermost armour". Since the #69 fix, an annulus outside $k$ of $m$ armour layers goes $(1 - k/m)$ to $T_2$ and $k/m$ to $T_3$. With one armour layer the two descriptions agree; with two they do not.

Tests

  • tests/test_block_programme.py (9):
    • Tables D.1 and D.2: block damages within 0.5 %, the precision of three printed figures; totals 2.85e-4 and 4.67e-4; cycles 1,500,403 and 1,500,464.
    • The Table D.3 sequence with rounding="up": labels, cycles, 6.05e-5, 1,500,472 cycles, 4.68e-4.
    • The exact split.
    • A three-part block separated by two small blocks.
    • The impossible cases (three parts against one part; a single block) raise.
    • A float cycle count is stored as an int.
    • to_rig_blocks through RigProtocol.blocks.
    • Input errors.
  • ruff check, ruff format --check and mypy (changed modules) pass.
  • Full local suite on a loaded machine (8 solver jobs running): one failure, test_sea_state_batch_workers.py::test_slots_are_kept_and_a_second_batch_reuses_them. It is a bit-identity check of a two-worker batch against one worker, off by 1.4e-12 relative. The file passes in isolation, 2/2 runs on this branch and 1/1 on dev; the code it covers is untouched here.
  • Validation report taxonomy: analytical_sanity 1347 → 1356.

Checklist

  • ruff check and ruff format --check pass
  • python -m pytest -q passes
  • validation/validation_report.md updated (taxonomy)
  • CHANGELOG.md updated under [Unreleased]
  • Documentation in doc/ updated (rig_test_guide.md, local_analysis_guide.md)
  • Every new constant or reference value states its source
  • Conventional Commit title
  • Commits are signed off

BlockProgramme and FatigueTestBlock hold the blocks of a full-scale
fatigue test (CIGRE TB 862 6.3.4): cycles, constant tension, curvature
range and damage per cycle from the service fatigue calculation. The
programme gives block and accumulated damage and damage shares, checks the
Table 6-4 requirements it can check by itself (test damage and block
tension against the service values), builds the test sequence with the
switching of 6.3.4.3 and converts the blocks to RigBlocks.

The sequence cuts each block into ceil(1/max_fraction) parts and orders
them so that no two parts of one block follow each other (the next part of
the block with the most parts left, other than the block just run; with
equal part counts this is the 1A..8A, 1B..8B rounds of Table D.3). A
programme whose largest block cannot be separated by the others (one block
alone, or three parts against a single other part) raises CableInputError,
since no sequence meets 6.3.4.3.

TB 862 Tables D.1 to D.3 are regression cases. Table D.3 prints 6.05e-4 for
blocks 3A and 3B; 61 116 cycles at 9.90e-10 give 6.05e-5, which its total
uses. Its Appendix D.3 gives a service mean tension of 82 kN but runs the
Table D.2 blocks at 80 kN, so the strict tension check fails on its own
example (recorded in a test).

Docs: ThermalResult.resistances, the CHANGELOG and the local analysis guide
still described the T2/T3 split at the innermost armour; since #69 each
annulus is split by its armour-loss share k/m.

Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 30, 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-30T10:15:02.789292Z 9bace1d PR opened
ℹ️ 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

Copy link
Copy Markdown

Documentation build overview

📚 CableXSec | 🛠️ Build #36260157 | 📁 Comparing 9bace1d against latest (2af48a4)

  🔍 Preview build  

19 files changed · ± 19 modified

± Modified

@SMI-Lab-Inha
SMI-Lab-Inha merged commit 70f91d7 into dev Nov 30, 2026
14 checks passed
This was referenced Nov 30, 2026
SMI-Lab-Inha added a commit that referenced this pull request Nov 30, 2026
BlockProgramme and FatigueTestBlock hold the blocks of a full-scale
fatigue test (CIGRE TB 862 6.3.4): cycles, constant tension, curvature
range and damage per cycle from the service fatigue calculation. The
programme gives block and accumulated damage and damage shares, checks the
Table 6-4 requirements it can check by itself (test damage and block
tension against the service values), builds the test sequence with the
switching of 6.3.4.3 and converts the blocks to RigBlocks.

The sequence cuts each block into ceil(1/max_fraction) parts and orders
them so that no two parts of one block follow each other (the next part of
the block with the most parts left, other than the block just run; with
equal part counts this is the 1A..8A, 1B..8B rounds of Table D.3). A
programme whose largest block cannot be separated by the others (one block
alone, or three parts against a single other part) raises CableInputError,
since no sequence meets 6.3.4.3.

TB 862 Tables D.1 to D.3 are regression cases. Table D.3 prints 6.05e-4 for
blocks 3A and 3B; 61 116 cycles at 9.90e-10 give 6.05e-5, which its total
uses. Its Appendix D.3 gives a service mean tension of 82 kN but runs the
Table D.2 blocks at 80 kN, so the strict tension check fails on its own
example (recorded in a test).

Docs: ThermalResult.resistances, the CHANGELOG and the local analysis guide
still described the T2/T3 split at the innermost armour; since #69 each
annulus is split by its armour-loss share k/m.

Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
@SMI-Lab-Inha
SMI-Lab-Inha deleted the feat/tb862-block-programme branch November 30, 2026 23:52
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