Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 3 additions & 3 deletions ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ src/cablexsec/
materials/ material property library, S-N/SWT curve registry
mechanics/ section, contact, helix and thermal kernels
analysis/ stress, fatigue, long-term, capacity, components, life
io/ load histories, CSV/RIFLEX/CableDyn readers, synthetic seas
io/ load histories, CSV/ASCII-column/CableDyn readers, synthetic seas
plotting/ publication figures and an HTML result viewer
```

Expand Down Expand Up @@ -193,7 +193,7 @@ Functional kernels operating on arrays; most are not called directly by users.
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.
- `ascii_columns_reader.py`: whitespace-column ASCII time histories.
- `synthetic.py`: self-contained JONSWAP-style load-series generator.

### `plotting`
Expand Down Expand Up @@ -277,7 +277,7 @@ Key invariants:
bit.
4. Imported true-force histories drive both axial stress and contact by
default, matching the direct API.
5. Every global reader (time-history CSV, CableDyn, RIFLEX rotation input) converts
5. Every global reader (time-history CSV, CableDyn, ASCII-column rotation input) converts
rotation curvature through the one function
`section_conventions.rotation_to_strain_curvature`, so a fibre angle `φ`
(from local x towards y) names the same physical fibre whichever code
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ All notable changes to CableXSec are recorded in this file. The format follows

### Changed

- `read_riflex_ascii` is renamed `read_ascii_columns` (module `cablexsec.io.ascii_columns_reader`,
breaking). It reads whitespace-separated columns by position and was never checked against
output of the program it was named after, so the docs, the how-to and the provenance no longer
name one. Its arguments and results are unchanged.

- The thermal ladder follows IEC 60287-1-1:2023 and IEC 60287-2-1:2023, and the loss terms
are computed from the cable unless given (they defaulted to zero, which put the conductor
loss of a 630 mm² three-core cable about 9 % low, and more with its sheath loss):
Expand Down Expand Up @@ -97,6 +102,11 @@ All notable changes to CableXSec are recorded in this file. The format follows

### Documentation

- The thermal docs state the accuracy limit of the IEC single-core-equivalent ladder for
three-core cables: against 2-D finite-element models, Chatzipetros and Pilgrim (2018) found
it reads the conductor temperature up to 8 °C low for SL-type lead sheaths and 4.9 to 5.9 °C
low for foil screens.

- The thermal modules and guides cite the 2023 editions of IEC 60287-1-1, IEC 60287-2-1 and
IEC 60228 by clause and drop the notes that the standards were not held. They state that a
three-core cable with spaced-wire core screens is treated as belted by IEC 60287-2-1
Expand Down
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ abstract: >-
hysteretic moment-curvature response of helical armour with frictional slip,
wire and component stresses, contact pressures and slip, temperatures, and
fatigue damage at fixed material points of every wire. It reads global
results of CableDyn, RIFLEX and CSV exports and turns them into fatigue damage
results of CableDyn and CSV exports and turns them into fatigue damage
of the armour, the conductor and the sheaths.
authors:
- family-names: Seo
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ moment–curvature response that follows, the stress of every wire and component
material points, the contact pressures that set the friction, the temperatures, and the fatigue
damage of the armour, the conductor and the metallic sheaths.

It reads the results of global analyses (CableDyn, RIFLEX, and time-history CSV exports such as
those of OrcaFlex) and turns them into local stresses and damage, and it exports a hysteretic
It reads the results of global analyses (CableDyn runs and time-history CSV exports such
as those of OrcaFlex) and turns them into local stresses and damage, and it exports a hysteretic
bending law for use in global analysis. The
current release is `v0.2.1`; interfaces are versioned and may change before `1.0.0`.

Expand Down
2 changes: 1 addition & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ Suggested description:
> Component-resolved local cross-section mechanics of dynamic power cables:
> stiffness, hysteretic bending with armour slip, wire and component stresses,
> contact, thermal response and fatigue at fixed material points, with readers for
> CableDyn, RIFLEX and CSV time-history results.
> CableDyn and CSV time-history results.

Suggested topics: `dynamic-power-cable`, `submarine-cable`, `cross-section-analysis`,
`helical-armour`, `fatigue`, `fretting`, `floating-offshore-wind`, `offshore-wind`,
Expand Down
2 changes: 1 addition & 1 deletion doc/api_python.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Global results

.. autofunction:: cablexsec.read_series_csv
.. autofunction:: cablexsec.read_time_history_csv
.. autofunction:: cablexsec.read_riflex_ascii
.. autofunction:: cablexsec.read_ascii_columns
.. autofunction:: cablexsec.read_cabledyn_sections
.. autofunction:: cablexsec.read_cabledyn_range_graph
.. autofunction:: cablexsec.read_cabledyn_lift
Expand Down
2 changes: 1 addition & 1 deletion doc/concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ The usual workflow runs in one direction:

1. Run the global analysis and write the history at the sections of interest.
2. Read each section into a `LoadCaseSeries` with `cx.read_time_history_csv`,
`cx.read_riflex_ascii`, or `cx.read_cabledyn_sections` followed by
`cx.read_ascii_columns`, or `cx.read_cabledyn_sections` followed by
`.histories[name].to_load_case_series(area)`.
3. Compute the stress and damage at the fixed material points with
`cx.fatigue_from_series` or `cx.compute_fatigue`.
Expand Down
8 changes: 4 additions & 4 deletions doc/file_formats.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ and the rules it is checked against.
| Geometry override | `load_cable(..., geometry_override=)` | (by hand) | YAML |
| Time-history CSV export of a global analysis | `read_time_history_csv` | global analysis program | CSV, named columns |
| CableXSec exchange CSV | `read_series_csv` | `write_series_csv` | CSV, fixed columns |
| RIFLEX ASCII time history | `read_riflex_ascii` | RIFLEX | whitespace-separated columns |
| Whitespace-column ASCII time history | `read_ascii_columns` | any program | whitespace-separated columns |
| CableDyn run (driver or OpenFAST module) | `read_cabledyn_sections` | CableDyn | CableDyn output files and deck |
| CableDyn range graph (`.Line<L>.range.out`) | `read_cabledyn_range_graph` | CableDyn | TAB-separated, units row |
| CableDyn VIV lift (`.Line<L>.V.out`) | `read_cabledyn_lift` | CableDyn | TAB-separated |
Expand All @@ -28,7 +28,7 @@ and the rules it is checked against.
`_Pa`, `_N`, `_s`, `_1_m` (1/m), `_deg`. Angles in a cable file are in
degrees; the loaded layers also give them in radians.

**Text is UTF-8.** YAML, JSON and project files are UTF-8. The CSV and RIFLEX
**Text is UTF-8.** YAML, JSON and project files are UTF-8. The CSV and ASCII-column
readers accept UTF-8, with or without a byte-order mark, and Windows-1252.

**A bad file stops with a named error.** A file that cannot be read as
Expand Down Expand Up @@ -512,9 +512,9 @@ are written with full precision, so a series survives the round trip
unchanged. The bundled demonstration history
`validation/paper_data/global_demo/global_history_si.csv` is in this format.

### RIFLEX ASCII time history
### Whitespace-column ASCII time history

`cx.read_riflex_ascii(path, ...)` reads whitespace-separated columns, one row
`cx.read_ascii_columns(path, ...)` reads whitespace-separated columns, one row
per sample. Lines starting with `#`, `%` or `!` and blank lines are skipped.
Columns are selected by their 1-based position, not by name:

Expand Down
2 changes: 1 addition & 1 deletion doc/global_local_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ bend moments are `M = (Σf·y, −Σf·x)`, mapped to the gradient frame as
sag (`(0, −0.136)`) at `θ = 0°`, as the concavity of each line requires. Earlier
versions of `rotation_to_strain_curvature` returned `(k_y, −k_x)`, the negative,
which put the tensile fibre half a turn from its physical place in the
time-history CSV, CableDyn and RIFLEX-rotation paths. The probe numbers are in
time-history CSV, CableDyn and ASCII-column rotation paths. The probe numbers are in
`tests/data/curvature_sign_probe.json`
(`tests/test_curvature_sign_probe.py`; no global solver is needed to run it),
and the CableDyn gates in `tests/test_cabledyn_reader.py` check that the
Expand Down
5 changes: 0 additions & 5 deletions doc/glossary.rst
Original file line number Diff line number Diff line change
Expand Up @@ -942,11 +942,6 @@ Terms and abbreviations
A clamping basis or cable label for a value chosen to be typical, not taken from a
particular cable, for example the 2.0 MPa ``P0`` of the 33 kV templates.

RIFLEX
A global analysis program for slender marine structures. :func:`~cablexsec.read_riflex_ascii`
reads its ASCII time histories, with positional columns and a declared tension kind and
curvature convention.

rig test
A combined tension and cyclic bending test of a specimen clamped at both ends.
:func:`~cablexsec.simulate_rig_test` predicts the armour strain-gauge readings, including
Expand Down
10 changes: 5 additions & 5 deletions doc/howto.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,10 +303,10 @@ exceeds one even at the reference temperature.

## Global analysis results

### Reading CableDyn and RIFLEX results
### Reading CableDyn results and ASCII column files

**Goal:** load series at named sections of a CableDyn run and from a RIFLEX
ASCII time history.
**Goal:** load series at named sections of a CableDyn run and from a
whitespace-column ASCII time history.

```{literalinclude} howto/scripts/howto_10_read_global_results.py
:language: python
Expand All @@ -318,12 +318,12 @@ ASCII time history.
curvature from tangent channels
hangoff 201 samples, dt 0.1 s, Te mean 9.28 kN, true mean 6.40 kN, |kappa| max 0.0084 1/m
sag 201 samples, dt 0.1 s, Te mean 1.33 kN, true mean -11.61 kN, |kappa| max 0.0990 1/m
riflex 240 samples, 59.8 s, effective tension 65.25 kN mean, kappa_x -0.0155 to 0.0156 1/m
columns 240 samples, 59.8 s, effective tension 65.25 kN mean, kappa_x -0.0155 to 0.0156 1/m
```

The true wall force is the {term}`effective tension` less the hydrostatic pressure
times the outer area. At the sag bend it is compressive while the effective
tension is positive. RIFLEX columns are positional, so declare the tension
tension is positive. ASCII columns are positional, so declare the tension
kind and the curvature convention, and convert effective tension with
`with_true_tension` before fatigue. The
[global–local guide](global_local_guide.md) covers both readers.
10 changes: 5 additions & 5 deletions doc/howto/scripts/howto_10_read_global_results.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2026 Jae Hoon Seo, SMI Lab, Inha University
"""How-to 10: read CableDyn and RIFLEX ASCII results into load series.
"""How-to 10: read CableDyn results and an ASCII column file into load series.

Uses the files under ``tests/data`` of a source checkout:

Expand Down Expand Up @@ -36,9 +36,9 @@
f"|kappa| max {np.hypot(kx, ky).max():.4f} 1/m"
)

# RIFLEX ASCII: positional columns; declare the tension and curvature basis.
series = cx.read_riflex_ascii(
DATA / "histories" / "synthetic_riflex.asc",
# Whitespace-column ASCII: positional columns; declare the tension and curvature basis.
series = cx.read_ascii_columns(
DATA / "histories" / "synthetic_columns.asc",
time_col=1,
curvature_x_col=2,
tension_col=3,
Expand All @@ -47,7 +47,7 @@
curvature_convention="strain_gradient",
)
print(
f"riflex {series.time_s.size} samples, {series.time_s[-1]:.1f} s, "
f"columns {series.time_s.size} samples, {series.time_s[-1]:.1f} s, "
f"{series.tension_kind} tension {series.tension_N.mean() / 1e3:.2f} kN mean, "
f"kappa_x {series.curvature_x_1_m.min():.4f} to "
f"{series.curvature_x_1_m.max():.4f} 1/m"
Expand Down
4 changes: 2 additions & 2 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Python library for the local (cross-section) mechanics of dynamic power cables.
definition and a section load history it computes the axial, torsional and bending stiffness,
the hysteretic moment–curvature response of helical armour with frictional slip, the stresses
of every wire and component at fixed material points, contact pressures and slip, temperatures,
and fatigue damage. It reads the results of global analyses (CableDyn, RIFLEX, CSV exports) and
and fatigue damage. It reads the results of global analyses (CableDyn, CSV and whitespace-column exports) and
turns them into the fatigue damage of the armour, the conductor and the metallic sheaths.

.. admonition:: Release status
Expand Down Expand Up @@ -60,7 +60,7 @@ What CableXSec computes
through SWT, steel with a user-registered slip-amplitude curve); long-term damage over a scatter of sea states;
termination-adjusted fatigue
* - Global to local
- readers for CableDyn, RIFLEX and CSV time-history results; the ``cablexsec-batch`` command;
- readers for CableDyn, CSV and whitespace-column time-history results; the ``cablexsec-batch`` command;
hysteretic bending-law export for global analysis

Learning path
Expand Down
20 changes: 15 additions & 5 deletions doc/local_analysis_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,14 @@ verification gates and active limitations. Read it.
screens, which 4.1.2.2.4 treats as belted. (The SL-type route, with the
filler geometric factor, and transient heat transfer through the IEC 60287
ladder are available, Section 7.3.)
- Accuracy of the single-core-equivalent ladder for three-core cables. IEC
60287 treats a three-core cable as one radial (1-D) ladder with isothermal
sheaths. Against 2-D finite-element models at constant losses,
Chatzipetros and Pilgrim (2018, IEEE Trans. Power Delivery 33(4),
doi:10.1109/TPWRD.2017.2770321) found that it underestimates the conductor temperature by up to 8 °C for
SL-type lead-sheathed cables (Table I) and by 4.9 to 5.9 °C for cables with
aluminium or copper foil screens (Table II). The ladder here follows IEC and
inherits this error; their modified geometric factors are not implemented.
- The slip-branch bending stiffness of a compact, solid-filler three-core
cable (known limitation, gap G8; [benchmarks.md](benchmarks.md), "Known
limitation: slip-branch stiffness of compact sections").
Expand Down Expand Up @@ -369,7 +377,7 @@ read-only snapshots; edit with `dataclasses.replace`.
curvature (k_x, k_y), fibre strain `k_x*y - k_y*x` (checked against a
global line model: a hogging cantilever root, (0, +k), is in tension at
φ = 180°, a sag bend, (0, −k), at φ = 0). The readers (`read_time_history_csv`,
CableDyn `strain_gradient()`, RIFLEX
CableDyn `strain_gradient()`, `read_ascii_columns`
`curvature_convention="rotation"`) convert it to the gradient
`(-y curvature, x curvature)`; bend moments map to `(-M_y, M_x)`
(`cablexsec.mechanics.section_conventions`). `curvature_map="paper_r2"`
Expand Down Expand Up @@ -399,7 +407,7 @@ Readers:
| Function | Source | Notes |
| --- | --- | --- |
| `read_time_history_csv(path, ...)` | Time-history CSV export | Whole words of the heading, case-insensitive, exact heading first; must match one column; magnitude headings refused for curvature; row length checked. Defaults: `x curvature`, `y curvature`, `Wall tension` (kN, scale 1e3), strain in percent (scale 0.01) |
| `read_riflex_ascii(path, ...)` | RIFLEX ASCII | Positional columns; declare `tension_kind` and `curvature_convention` |
| `read_ascii_columns(path, ...)` | Whitespace-column ASCII | Positional columns; declare `tension_kind` and `curvature_convention` |
| `read_cabledyn_sections(out_root, deck, sections, ...)` | CableDyn driver or OpenFAST module files | Returns `CableDynSectionHistory` per section; curvature vector reconstructed from tangent channels or positions; `.to_load_case_series(A_o)` gives the true-force series |
| `read_series_csv` / `write_series_csv` | Canonical CSV | Round trip preserves kinds |
| `jonswap_series(...)` | Synthetic | For demonstrations and tests only |
Expand Down Expand Up @@ -1300,8 +1308,10 @@ in IEC), and the dielectric loss from the `U0` of the insulation's
as CIGRE TB 880 does; a metal tape over the wires is left out (TB 880
Guidance Point 29). A single-core cable gets no proximity or sheath loss (they
depend on the circuit): pass `y_p` and `lambda1`. `result.losses` holds the
values used and the provenance their basis. The section state applies each layer's free
thermal strain and the registered polymer E(T) laws within their source
values used and the provenance their basis. The ladder is the IEC
single-core-equivalent model, which can read a three-core cable's conductor
temperature up to 8 °C low (Chatzipetros and Pilgrim 2018; Section 2). The
section state applies each layer's free thermal strain and the registered polymer E(T) laws within their source
ranges, with one temperature per annulus; `temperature_C=` (a value or a
mapping covering every layer) replaces the profile. On this path `sigma_A_Pa`
already contains the thermal stress and `sigma_T_Pa` is zero. Do not combine it
Expand Down Expand Up @@ -1543,7 +1553,7 @@ strain-life route (`method="strain_life"`, Section 13.3) accepts it.

### 8.1 Capacity check of global time series

A global history (time-history CSV, RIFLEX or CableDyn) is placed sample by sample on
A global history (time-history CSV, ASCII columns or CableDyn) is placed sample by sample on
the tension–curvature envelope: a utilisation time series against the capacity
curve and its statistical extreme (utilisation levels as in Skeie et al. 2012,
Fig. 11).
Expand Down
3 changes: 2 additions & 1 deletion doc/user_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ section. The readers are:

- `cx.read_time_history_csv` for a {term}`time-history CSV` export, columns
selected by header;
- `cx.read_riflex_ascii` for a {term}`RIFLEX` ASCII time history;
- `cx.read_ascii_columns` for a whitespace-column ASCII time history, columns
selected by position;
- `cx.read_cabledyn_sections` for a CableDyn run
([global–local guide](global_local_guide.md));
- `cx.read_series_csv` for a CableXSec series CSV.
Expand Down
4 changes: 2 additions & 2 deletions src/cablexsec/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,10 @@
LoadCaseSeries,
fatigue_from_series,
jonswap_series,
read_ascii_columns,
read_cabledyn_lift,
read_cabledyn_range_graph,
read_cabledyn_sections,
read_riflex_ascii,
read_series_csv,
read_time_history_csv,
write_series_csv,
Expand Down Expand Up @@ -557,7 +557,7 @@
"LoadCaseSeries",
"jonswap_series",
"read_time_history_csv",
"read_riflex_ascii",
"read_ascii_columns",
"read_series_csv",
"write_series_csv",
"fatigue_from_series",
Expand Down
4 changes: 2 additions & 2 deletions src/cablexsec/analysis/capacity_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Copyright (c) 2026 Jae Hoon Seo, SMI Lab, Inha University
r"""Capacity check of global tension-curvature time series.

A global analysis (CableDyn, RIFLEX or another program) gives the tension and the
A global analysis (CableDyn or another program) gives the tension and the
curvature at a cable section. Each sample is placed on the cross-section
capacity envelope and given a design utilisation; the history of that
utilisation, its maximum and the time it occurs, the exceedance counts and
Expand Down Expand Up @@ -1339,7 +1339,7 @@ def check_capacity_series(
""":func:`check_capacity` of a reader output.

Accepts a :class:`~cablexsec.io.series.LoadCaseSeries` (time-history CSV,
RIFLEX, canonical CSV; its ``tension_kind`` must be declared)
whitespace columns, canonical CSV; its ``tension_kind`` must be declared)
or a :class:`~cablexsec.io.cabledyn.CableDynSectionHistory` (effective
tension, or the true tension with ``external_area_m2``; its torque is
reported).
Expand Down
2 changes: 1 addition & 1 deletion src/cablexsec/analysis/neutral_axis.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
(:mod:`cablexsec.mechanics.section_conventions`): the curvature is the
axial-strain gradient ``b = (kx, ky)`` [1/m], so that a section point
``p = (x, y)`` has the axial strain ``eps0 + kx x + ky y``; angles are
measured from the section x axis towards y. Global-model, CableDyn and RIFLEX
measured from the section x axis towards y. Global-model and CableDyn
rotation curvatures are converted to ``b`` by the readers.

1. **Bending direction** ``theta = atan2(ky, kx)``: the direction of the
Expand Down
Loading
Loading