Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
4a68df5
fix: frictional heat of rotating curvature from the distributed frict…
SMI-Lab-Inha Nov 15, 2026
f58246f
fix: armour friction bound with the signed capstan term of Papailiou …
SMI-Lab-Inha Nov 15, 2026
910962c
feat: contact pressure that follows the bending history in compute_mk…
SMI-Lab-Inha Nov 15, 2026
6a907cf
feat: slip scaling variable of the exported bending law (#4)
SMI-Lab-Inha Nov 16, 2026
1c17bfc
fix: pre-commit ruff hooks check the package source (#5)
SMI-Lab-Inha Nov 16, 2026
efef92a
feat: elastic anchor of an anchored armour wire (end-fitting complian…
SMI-Lab-Inha Nov 16, 2026
77c66bf
feat: static/dynamic and rate-dependent armour friction law (#7)
SMI-Lab-Inha Nov 16, 2026
28e9250
validation: anchored wire at uniform curvature against published FE (#8)
SMI-Lab-Inha Nov 16, 2026
0883036
feat: contact-pressure friction factor; measured wire-on-tape frictio…
SMI-Lab-Inha Nov 16, 2026
501fe3a
feat: auto armour friction model for non-planar curvature and a defau…
SMI-Lab-Inha Nov 16, 2026
3b5f715
fix: the slip of a full-slip increment of the distributed friction mo…
SMI-Lab-Inha Nov 17, 2026
f4fc3c7
perf: a faster compiled kernel for the distributed helix friction mod…
SMI-Lab-Inha Nov 17, 2026
d4fabcd
fix: the exported bending law keeps the stick stiffness at every tens…
SMI-Lab-Inha Nov 17, 2026
aca0948
ci: a stale validation report fails fast and only on a real change (#16)
SMI-Lab-Inha Nov 17, 2026
8ee4b4b
feat: trefoil wedge in the core contact loads and laid filler profile…
SMI-Lab-Inha Nov 17, 2026
6749bcf
fix: friction-model routing of the batch and of 'auto' (#14)
SMI-Lab-Inha Nov 17, 2026
0d3b1d6
feat: frozen extrusion shrinkage and calibration scope of the clampin…
SMI-Lab-Inha Nov 17, 2026
ec27d09
validation: full-accounting core friction comparisons; Fig. 12b retir…
SMI-Lab-Inha Nov 17, 2026
c7ede39
feat: a serving layer with radial and hoop stiffness only (#18)
SMI-Lab-Inha Nov 17, 2026
6f7b73b
perf: selected-position fatigue evaluation (#20)
SMI-Lab-Inha Nov 17, 2026
9042f37
fix: CableDyn reader files and OPTIONS, early cable_source check; Cab…
SMI-Lab-Inha Nov 17, 2026
c2148dd
feat: a cylindrical layer defined by its section stiffness (#22)
SMI-Lab-Inha Nov 17, 2026
e518821
feat: an umbilical utilisation basis of the capacity envelope (#23)
SMI-Lab-Inha Nov 17, 2026
a9fed2a
fix: CableDyn reader places finite-EI node tangents at their nodes (#25)
SMI-Lab-Inha Nov 17, 2026
2e0d409
fix: the trefoil filler twists as separate lobes, not about the cable…
SMI-Lab-Inha Nov 17, 2026
20fc71f
fix: CableDyn reader reads meshes the static solve refined (#26)
SMI-Lab-Inha Nov 17, 2026
ff3eeac
validation: CH-GJ, the torsional stiffness of the coiling cable again…
SMI-Lab-Inha Nov 18, 2026
173a612
fix: CableDyn deck reader takes the 0.4.x LINE TYPES grammar (#28)
SMI-Lab-Inha Nov 18, 2026
411d795
docs: decompose the Su 35 kV anticlockwise torsion gap against the so…
SMI-Lab-Inha Nov 18, 2026
67c580a
fix: CableDyn reader closes the remaining deck and torsion gaps (#30)
SMI-Lab-Inha Nov 18, 2026
84f12ac
ci: validation report counts both new full-scale tests (#31)
SMI-Lab-Inha Nov 18, 2026
eae426e
feat: core friction in the biaxial section moment of compute_neutral_…
SMI-Lab-Inha Nov 18, 2026
f3bfd9f
fix: the 66 kV template's screens follow the source's section model (…
SMI-Lab-Inha Nov 18, 2026
0cea5ee
validation: anchored-wire FE comparisons as scorecard rows (AW-DONG25…
SMI-Lab-Inha Nov 18, 2026
4b7f5c4
test: TQ6 pins the documented deviation instead of a 2 % band (#37)
SMI-Lab-Inha Nov 18, 2026
13dfcf0
validation: Zeidan (2025) four-point loops (Z-EI, Z-ID); Ménard loop …
SMI-Lab-Inha Nov 18, 2026
56b8d1e
validation: where the SV11 termination increment comes from (SV11-SPL…
SMI-Lab-Inha Nov 18, 2026
4a6541b
validation: Dai et al. (2020) bellmouth curvature and tube Coulomb ro…
SMI-Lab-Inha Nov 18, 2026
cd3b657
ci: run the tests, the coverage passes and the validation check in pa…
SMI-Lab-Inha Nov 19, 2026
02bc61f
ci: give each test worker and validation pool worker its own numba ca…
SMI-Lab-Inha Nov 19, 2026
7e14481
fix: the Yun shear stack of an armour layer stops at its support (#39)
SMI-Lab-Inha Nov 19, 2026
694331f
fix: sea-state batch workers write their own numba cache (#48)
SMI-Lab-Inha Nov 19, 2026
0ffb0f1
feat: one exported bending law per friction group, each with its own …
SMI-Lab-Inha Nov 19, 2026
bb50112
fix: an interface is open when its contact carries no line force (#49)
SMI-Lab-Inha Nov 19, 2026
3a37d3d
feat: distributed laid-core law and core contact loads that follow th…
SMI-Lab-Inha Nov 19, 2026
12be20f
fix: CableDyn reader gaps: range and lift files, hang-off rotation, s…
SMI-Lab-Inha Nov 19, 2026
caca014
fix: fallbacks and skipped checks are an error or a warning, never si…
SMI-Lab-Inha Nov 19, 2026
e74e01f
fix: adversarial inputs of the public API are refused early or answer…
SMI-Lab-Inha Nov 20, 2026
f0753a3
perf: fused fixed-fibre counting and one-pass stress field in compute…
SMI-Lab-Inha Nov 20, 2026
49050a7
fix: a repeated sample keeps the distributed state; capstan bounds ov…
SMI-Lab-Inha Nov 20, 2026
1a595af
fix: a CableDyn section on a deck node reads that node's channels alo…
SMI-Lab-Inha Nov 20, 2026
8d4bc5e
validation: Ménard rows gated with an identified clamping; CH-GJ remo…
SMI-Lab-Inha Nov 20, 2026
7edd02b
feat: torsional wire stress in the fatigue path from the cable twist …
SMI-Lab-Inha Nov 20, 2026
e10cc14
fix: the coiling provenance names only its existing gate, CH-CR (#54)
SMI-Lab-Inha Nov 20, 2026
bdf2fa1
docs: gap G8 as a known limitation; opt-in annulus stick support (#55)
SMI-Lab-Inha Nov 20, 2026
c8d8fd8
Release 0.2.0
SMI-Lab-Inha Nov 20, 2026
a29acf4
The exported law's slip transitions and slip-scale laws take its stic…
SMI-Lab-Inha Nov 20, 2026
e9b3f8f
Release record: the review fix, both validation checks and the instal…
SMI-Lab-Inha Nov 21, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 56 additions & 13 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ permissions:
contents: read

env:
# One thread per process: the suite is numerically heavy and runs serially.
# One thread per process: the suite is numerically heavy and runs on one pytest-xdist
# worker per core, so a worker must not start threads of its own.
OMP_NUM_THREADS: "1"
MKL_NUM_THREADS: "1"
OPENBLAS_NUM_THREADS: "1"
Expand Down Expand Up @@ -72,7 +73,7 @@ jobs:
- name: Install the package and test dependencies
run: python -m pip install --upgrade pip ".[dev,fast,contact]"
- name: Run the test suite
run: python -m pytest -q -p no:cacheprovider
run: python -m pytest -q -p no:cacheprovider -n auto --dist worksteal --durations=25

reference-path:
name: Tests without the compiled kernels
Expand All @@ -92,10 +93,12 @@ jobs:
- name: Install the package without numba
run: python -m pip install --upgrade pip ".[dev,contact]"
- name: Run the test suite on the NumPy reference path
run: python -m pytest -q -p no:cacheprovider
run: python -m pytest -q -p no:cacheprovider -n auto --dist worksteal --durations=25

coverage:
name: Coverage and validation report
coverage-suite:
# Not a required check itself: the required check "Coverage and validation report"
# passes only if this job and validation-report both pass.
name: Coverage of the whole suite
runs-on: ubuntu-latest
timeout-minutes: 150
steps:
Expand All @@ -112,23 +115,63 @@ jobs:
- name: Run the whole suite with line and branch coverage, kernels traced
# Functions compiled by numba run outside the coverage tracer, so the kernel
# tests run a second time with NUMBA_DISABLE_JIT=1 and are appended.
run: python release/check_coverage.py --fail-under 95
run: python release/check_coverage.py --fail-under 95 --numprocesses auto
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
if: always()
with:
name: cablexsec-coverage
path: coverage.xml
if-no-files-found: ignore

validation-report:
# Not a required check itself; see coverage-suite.
name: Validation report is current
runs-on: ubuntu-latest
timeout-minutes: 150
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: '3.11'
cache: pip
cache-dependency-path: pyproject.toml
- name: Install the package and test dependencies
run: python -m pip install --upgrade pip ".[dev,fast,contact]"
- name: The committed validation report is current
# The script exits non-zero while registered benchmark rows fail; the step
# fails only if the committed report differs from the live calculation.
# --jobs=auto evaluates the independent row groups and the taxonomy groups
# concurrently; the rows and the report are those of the serial run.
shell: bash
run: |
set +e
python validation/scripts/run_validation.py --check 2>&1 | tee validation-check.txt
python validation/scripts/run_validation.py --check --jobs=auto 2>&1 | tee validation-check.txt
status=${PIPESTATUS[0]}
if grep -q "validation artefacts are stale" validation-check.txt; then exit 1; fi
echo "run_validation exit status ${status} (registered FAIL rows are expected)"
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
if: always()
with:
name: cablexsec-coverage
path: coverage.xml
if-no-files-found: ignore

coverage:
# The required check. The coverage run and the validation report check run side by
# side in the two jobs above; this job fails unless both succeeded, and it also
# runs (and fails) when either of them failed, was cancelled or was skipped.
name: Coverage and validation report
needs: [coverage-suite, validation-report]
if: always()
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: The coverage gate and the validation report check passed
shell: bash
env:
COVERAGE_RESULT: ${{ needs.coverage-suite.result }}
VALIDATION_RESULT: ${{ needs.validation-report.result }}
run: |
echo "Coverage of the whole suite: ${COVERAGE_RESULT}"
echo "Validation report is current: ${VALIDATION_RESULT}"
test "${COVERAGE_RESULT}" = success
test "${VALIDATION_RESULT}" = success

distribution:
name: Build Python distributions
Expand Down
7 changes: 4 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@ repos:
args: [--maxkb=2000]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.11
rev: v0.15.22
hooks:
# The same trees as the CI lint job (python.yml); the package is under src/.
- id: ruff-check
files: ^(cablexsec|tests|examples|validation|release)/.*\.py$
files: ^(src|tests|examples|validation|release|doc)/.*\.py$
- id: ruff-format
files: ^(cablexsec|tests|examples|validation|release)/.*\.py$
files: ^(src|tests|examples|validation|release|doc)/.*\.py$

- repo: local
hooks:
Expand Down
44 changes: 30 additions & 14 deletions ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ Functional kernels operating on arrays; most are not called directly by users.
| `sn_assessment.py` | `ComponentSCF` (axial, friction, normal and lateral bending factors, mean and dynamic) and the corrected Miner sum (`corrected_damage`, `corrected_damage_rows`): stress factor, mean-stress correction and thickness factor per rainflow cycle; used by the armour, conductor, sheath and tape routes |
| `termination.py` | `TerminationSpec` and `termination_friction_increment`: anchored-wire clamp increment of the friction stress for a section near an end fitting or clamped stiffener root (`clamp_layer` solver along the principal, optionally also the minor, curvature direction, or `solver="along_wire"` with `stick`, `capstan` and `lateral_relief`; `curvature_field=` for a non-proportional field; far-field reference from the same discrete solver, so the sectional result is recovered away from the anchor) |
| `fast_rainflow.py` | Compiled rainflow counting and Miner damage for many histories (see below) |
| `fast_field.py` | Compiled one-pass assembly of the fixed-fibre wire stress field of `wire_stress_field` (see below) |
| `long_term.py` | `compute_long_term_fatigue`: probability- and duration-weighted damage at fixed fibres before hotspot selection |
| `sea_state_batch.py` | `run_sea_state_batch`: CableDyn runs with probabilities to weighted annual damage and life per section (reader, `compute_fatigue` with optional clamp, thermal, fretting and user S-N options, `compute_long_term_fatigue`), optional capacity check of every section and run (`CapacityBatchCheck`); spawned workers with one thread each, JSON specification, manifest with input digests; console command `cablexsec-batch` ([doc/global_local_guide.md](doc/global_local_guide.md), stage 1) |
| `critical_plane.py` | `compute_swt_cycle`: sampled SWT critical planes for one closed cycle at one point |
Expand All @@ -167,7 +168,7 @@ Functional kernels operating on arrays; most are not called directly by users.
| `conductor_fatigue.py` | `assess_conductor_fatigue` behind `compute_conductor_fatigue`: ring-by-ring strand-slip strain, bulk Miner sums (optional user S-N options), opt-in trellis SWT fretting (not validated) and strain life above yield |
| `compression.py` | `compression_screen`, `compute_compression_capacity`: armour in compression; lateral buckling lower bound (Sævik–Thorsen Eq. 19) and round-wire limit with cyclic-curvature knock-down (Li–Vaz), friction first-slip gate, radial (bird-cage) buckling of the armour stack on the outboard sheath and tape foundation with hoop-capacity and yield interaction (Eq. 35), DNV-RP-F401 utilisation factors, combined tension/compression–curvature curve ([doc/uls_guide.md](doc/uls_guide.md)) |
| `coiling.py` | `compute_coiling`: a cable coiled into a static tank (curvature 2/D with one twist per winding, Chae, Nam and Shim 2023); the twisted section solved first (radial, axial and torsional), then the bending turned through each winding on fixed fibres; per armour layer the extreme wire stresses, the friction stress, the contact pressure, the radial-buckling (bird-caging) capacity in wire stress and the first-yield check (beyond first yield the result says the elastic stresses are not valid); the friction-free lateral bound is reported, not used; unbonded flexible pipes are refused and counter-helical (non-coilable) armour is flagged |
| `bending_law.py` | `export_bending_law`, `IwanBendingLaw`, `BendingLawExport`: the section moment–curvature backbone at several tensions decomposed into an exact Iwan law (parallel elastic–perfectly plastic elements) for global solvers; tension interpolation; JSON, CSV and kN–m table writers ([doc/global_local_guide.md](doc/global_local_guide.md) Section 8) |
| `bending_law.py` | `export_bending_law`, `IwanBendingLaw`, `BendingLawExport`, `SlipScaleTable`: the section moment–curvature backbone at several tensions decomposed into an Iwan law (parallel elastic–perfectly plastic elements) for global solvers; tension interpolation or the slip scaling variable (per-group yield curvatures scaled by the friction caps over tension and external pressure); JSON, CSV and kN–m table writers ([doc/global_local_guide.md](doc/global_local_guide.md) Section 8) |
| `sheave.py` | `compute_sheave`: a cable pulled over a sheave; groove line and global pressure, cosine groove distribution and run-on contact (Feyrer 2015), wire stresses, capacity utilisation and per-passage damage from the section analyses |
| `electrical_life.py` | `compute_electrical_life`: coaxial field and relative water-tree ageing factor |
| `curve_comparison.py` | Sequence-preserving comparison of measured cyclic curves (benchmark support) |
Expand All @@ -184,12 +185,14 @@ Functional kernels operating on arrays; most are not called directly by users.
read-only storage on construction. CSV read/write; `fatigue_from_series`.
- `time_history_csv.py`: time-history CSV exports, columns selected by header.
- `cabledyn.py`: CableDyn deck and output files (standalone driver and
OpenFAST module). CableDyn writes curvature magnitudes only; the reader
reconstructs the curvature vector from the node tangent channels or
positions, projects it on a twist-free section frame (material twist added
on lines restrained in torsion), interpolates tension, forms hydrostatic
pressure, and checks every file, channel and unit against the deck
([doc/global_local_guide.md](doc/global_local_guide.md)).
OpenFAST module). The reader reconstructs the curvature vector from the
node tangent channels or positions (the `Curv` magnitudes serve as a
check), projects it on a twist-free section frame (material twist added
where `Twist` channels are written), interpolates tension, forms
hydrostatic pressure, and checks every file, channel and unit against the
deck ([doc/global_local_guide.md](doc/global_local_guide.md)).
- `cabledyn_components.py`: station histories from the signed section-frame
curvature components `CurvX`/`CurvY` that CableDyn writes since 0.4.0.
- `riflex_reader.py`: RIFLEX ASCII results.
- `synthetic.py`: self-contained JONSWAP-style load-series generator.

Expand Down Expand Up @@ -301,8 +304,17 @@ kernels of their own, each with a reference path:
`miner_rows` applies the same counter to the bulk Miner sums of
`compute_fatigue` (including a termination stress-range factor) when
`numba` is active; rows where the reference `miner_damage` would raise are
rerun on the reference path. `rainflow_counter="reference"` keeps the
rerun on the reference path. `fibre_miner_damage`, which `compute_fatigue`
uses, gives the same sums at every fixed fibre of a wire stress field
without forming the fibre histories: each history is reduced to its turning
points while it is formed (without branches), the reversal scan feeds the
three-point stack directly, and one count serves the unit and the
termination stress-range factor. `rainflow_counter="reference"` keeps the
reference counter available.
- `analysis/fast_field.py` (`assemble_wire_field`) forms the mean, radial and
edge components of the wire stress field in one pass, with the operations
of the NumPy expressions it replaces in the same order (the trigonometric
factors are evaluated by NumPy and passed in), so the field is unchanged.

`fast_rainflow.rainflow_table` returns the same cycles with their sample
indices (range, mean, count, start, end) for the fretting module, which also
Expand Down Expand Up @@ -330,12 +342,16 @@ selected with `friction_model="distributed"` in `wire_stress_field`,
default `"direction_tied"` path is unchanged bit for bit. For each layer it
solves one wire over one pitch of its helix (uniform curvature, axial slip
only) as the elastic–Coulomb problem `n = e + u′`, `n′ = t`,
`t = k̂ (u − p)`, `|t| ≤ ρ(t) g(φ) + λ|n|`, with `k̂ = ξ/(1 − ξ)` from the
layer's Yun coefficient, the capstan bound `λ = μ |sin α|` and the clamping
ratio `ρ = P(t)/P_ref`. The normalisation is that of the reference solver:
below slip the field is the ξ-reduced stick stress of the default law, slip starts at the same
curvature `κ_on`, and planar monotonic loading to full slip gives the
package cap `σ0 expm1(μ |sin α| ψ)`. Each wire samples the field by phase.
`t = k̂ (u − p)`, `|t| ≤ max(ρ(t) g(φ) + λn, 0)`, with `k̂ = ξ/(1 − ξ)` from
the layer's Yun coefficient, the capstan bound `λ = μ |sin α|` on the signed
wire force and the clamping ratio `ρ = P(t)/P_ref`. The normalisation is that
of the reference solver: below slip the field is the ξ-reduced stick stress of
the default law and slip starts near the same curvature `κ_on`. Planar
monotonic loading to full slip gives `σ0 (C exp(λx) − 1)`,
`C = λπ/(2 sinh(λπ/2))`, `x` from the geometric neutral axis toward tension:
the neutral axis moves toward the tension side (zero pitch mean of the force)
and the extreme-fibre range is the linear value `σ0 λπ`. Each wire samples the
field by phase.
There is no held bending direction.

The kernel is `numba`-compiled. Each increment is backward Euler: a
Expand Down
Loading
Loading