Repository navigation
feat: TB 862 block programme of a full-scale fatigue test - #70
Merged
Merged
Conversation
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>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Nov 30, 2026
Closed
Merged
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
FatigueTestBlockdamageBlockProgrammetotalscheck()test_sequence()max_fraction(50 %) of a block before switchingto_rig_blocks()RigBlocks of amplituderange/2for the rig simulationOrdering 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 givesbigA, 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
CableInputErrorinstead 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 partceil(n/parts)cycles, as Table D.3 does (1,500,472 cycles against 1,500,464).Findings in TB 862 Appendix D
Docs correction for #69
ThermalResult.resistances, the CHANGELOG entry anddoc/local_analysis_guide.mdstill described theTests
tests/test_block_programme.py(9):rounding="up": labels, cycles, 6.05e-5, 1,500,472 cycles, 4.68e-4.to_rig_blocksthroughRigProtocol.blocks.ruff check,ruff format --checkandmypy(changed modules) pass.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 ondev; the code it covers is untouched here.analytical_sanity1347 → 1356.Checklist
ruff checkandruff format --checkpasspython -m pytest -qpassesvalidation/validation_report.mdupdated (taxonomy)[Unreleased]doc/updated (rig_test_guide.md,local_analysis_guide.md)