Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
eb37c41
feat: evaluate SeaState's wave components at the line nodes
SMI-Lab-Inha Dec 2, 2026
d13acf6
feat: write a provenance record of the sea and the wave route
SMI-Lab-Inha Dec 2, 2026
37e3f36
feat: check OpenFAST cases against the SeaState grid before and after
SMI-Lab-Inha Dec 2, 2026
22e56a8
docs: answer why a coupled run stops where MoorDyn ran, and hull shie…
SMI-Lab-Inha Dec 2, 2026
16399e9
docs: state what the node-wise wave route costs at the reference size
SMI-Lab-Inha Dec 2, 2026
521198c
test: compare a node-wise wave run with a converged-grid run
SMI-Lab-Inha Dec 2, 2026
b9c91e4
fix(openfast): mark a FAST.Farm run's shared moorings complete at the…
SMI-Lab-Inha Dec 2, 2026
d8eafd8
docs: offer the node-wise wave route in the OpenFAST tutorial
SMI-Lab-Inha Dec 2, 2026
0fefbbc
fix: report an aliasing grid spacing as keeping nothing in the pre-fl…
SMI-Lab-Inha Dec 2, 2026
7ad72f4
fix: read FAST.Farm and restarted-run logs in the log scanner
SMI-Lab-Inha Dec 2, 2026
79b55d6
fix(openfast): mark a provenance record stopped when the guard stops …
SMI-Lab-Inha Dec 2, 2026
d1647ae
test: check the record of a run the wave-grid guard stops at initiali…
SMI-Lab-Inha Dec 2, 2026
553c1e1
test: size and prepare the converged-grid reference for the node-wise…
SMI-Lab-Inha Dec 2, 2026
4efca7d
fix: bound the dropped wave variance at each node's own depth, defaul…
SMI-Lab-Inha Dec 2, 2026
4c2747e
fix: read only the provenance record of a log's own run in the log sc…
SMI-Lab-Inha Dec 2, 2026
7be0482
fix: match SeaState's step count, quoted paths and hull tables in the…
SMI-Lab-Inha Dec 2, 2026
f852696
fix(openfast): node-wise positions in time, restart record and Init m…
SMI-Lab-Inha Dec 2, 2026
4c303d6
fix: leave no temporary record behind and write SeaState's wave step …
SMI-Lab-Inha Dec 2, 2026
b1eca6b
docs: state what truncation does to the node-wise sums and elevation
SMI-Lab-Inha Dec 2, 2026
b19b79b
test: size the reference grid per axis for an oblique sea
SMI-Lab-Inha Dec 2, 2026
a8d0baa
perf: keep the node-wise depth factors on the vector path, limit the …
SMI-Lab-Inha Dec 2, 2026
ad0421d
feat: report the weighted velocity ratio where a line leaves the SeaS…
SMI-Lab-Inha Dec 2, 2026
5ceb8a2
docs: restate the node-wise cost for the depth-relative truncation
SMI-Lab-Inha Dec 2, 2026
53a869f
fix: pre-flight warn mode for coverage, hull grid at the shallowest j…
SMI-Lab-Inha Dec 2, 2026
fe9b5b3
fix: flag a run-level guard finding, skip the depth check in still water
SMI-Lab-Inha Dec 2, 2026
9d3bf18
fix: signed values and the guard option's alias in the pre-flight tools
SMI-Lab-Inha Dec 2, 2026
b1b8e19
fix: read stock LINES rows in the pre-flight check, indented dtM rows
SMI-Lab-Inha Dec 2, 2026
aa00705
fix: read cases in the pre-flight tools as CableDyn and OpenFAST read…
SMI-Lab-Inha Dec 2, 2026
97af832
fix(release): match the smoke case's grid warning across its line breaks
SMI-Lab-Inha Dec 2, 2026
a1dc89c
fix: judge the shortest wavelength on SeaState's kept band; size a gr…
SMI-Lab-Inha Dec 2, 2026
cec76e7
fix: size the grid for the hull, refine two-point axes along the wave…
SMI-Lab-Inha Dec 2, 2026
fbf3d49
fix: judge WaveMod 7 directions on SeaState's kept band
SMI-Lab-Inha Dec 3, 2026
2e03b49
fix: start the spectral route in the current profile; keep a current'…
SMI-Lab-Inha Dec 3, 2026
83970a0
fix: replace a quoted WaterKin file name whole in the converged-grid …
SMI-Lab-Inha Dec 3, 2026
bbe4213
fix: keep the short waves in the Wheeler elevation of a truncated node
SMI-Lab-Inha Dec 3, 2026
fe6ebf9
fix: halve the axes the waves vary along by default, refuse a halving…
SMI-Lab-Inha Dec 3, 2026
62f5255
fix: judge WaveMod 7 headings modulo 180 deg in the pre-flight checker
SMI-Lab-Inha Dec 3, 2026
9d1a927
fix: keep the whole depth only for a current that reaches the seabed
SMI-Lab-Inha Dec 3, 2026
ccfe139
fix: refuse an output folder that overlaps the case before prepare de…
SMI-Lab-Inha Dec 3, 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
39 changes: 39 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,45 @@ All notable changes to CableDyn are recorded in this file. The format follows

## [Unreleased]

### Added

- `OPTIONS SEASTATE_SPECTRAL WaterKin` (OpenFAST): the lines take SeaState's first-order waves from its
own wave components, evaluated at the line nodes, instead of interpolating its grid. At a grid vertex
and a wave step the values equal SeaState's grid to the round-off of its single-precision FFT; between
the vertices they are the sums of the components, not an interpolation, so a sea at any heading, long- or short-crested, needs no grid over the
lines and SeaState's grid can shrink to the hull. Each node evaluates the components once per wave
step at its position advanced to the middle of the step and interpolates by cubic Hermite polynomials
with the exact time derivatives; `OPTIONS waveKinTol` (default `1e-6`) lets each node drop the
components whose velocity and acceleration variances stay within that fraction of the totals at
every depth the node reaches, reported per node in `<root>.CD.wavekin.out`; under Wheeler stretching
the elevation that maps a node's depth keeps, by the same bound, the short waves its kinematics
drop. Every SeaState stretching mode is reproduced;
second-order kinematics, `WaveMod = 6`, `WvCrntMod` 1 or 2, `CurrMod = 2` and a `WaveTimeShift` stop
the run with a message naming `SEASTATE_GRID`, which, like `SEASTATE` and a deck without a WaterKin
row, keeps the grid. A `CurrMod = 1` current is taken at each node's depth, in the static start as in
the steps, so neither depends on SeaState's vertical grid. `cabledyn_wavekin_check` (built in the
OpenFAST tree) compares the two routes at SeaState's grid vertices.

- Every OpenFAST, FAST.Farm and standalone run writes a provenance record, `<RootName>.CD.provenance.json`
(`<FarmRoot>.FarmCD.provenance.json`, `<out_root>.CD.provenance.json`): JSON of schema
`cabledyn.provenance/1` with the host, the wave route, the sea (SeaState's `WaveMod`, direction,
wave step and period, depth, and a fingerprint of its components that identifies the sea exactly),
the SeaState grid and `waveGridCheck` mode on the grid route, and per deck line the wave-grid guard's
findings (with the weighted velocity ratio: the rms wave velocity at the line's shallowest node
outside the grid over that at the surface, from SeaState's components, also given in the guard's
message) and the variances the node-wise route drops. It is written at the start and replaced, in one
step, at the end (`complete`, or `stopped` after an error); a checkpoint carries its findings, so a
restarted run writes the same record but for `restarted_from`. Unknown values are `null`. Under
`waveGridCheck warn` the coverage check now goes on silently after its one warning, for the record, and
a restart no longer repeats the warning.

- `integration/openfast/cabledyn_preflight.py` checks an OpenFAST case before it runs: line ends and hull
joints against the SeaState grid with a margin for the platform motion, `NX` or `NY` = 2 under a sea
that varies along that axis, the amplitude the grid keeps at the shortest wavelength that matters,
SeaState's stored memory and start-up peak (about 3 times the stored arrays), and whether
`SEASTATE_SPECTRAL` takes the case, with a hull-only grid for it. `integration/openfast/cabledyn_logscan.py`
reads the logs (and provenance records) of many runs and lists per line what the wave-grid guard found.

### Changed

- In OpenFAST, a coupled run whose lines take their wave or current kinematics from the SeaState grid now
Expand Down
39 changes: 39 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,7 @@ add_library(cabledyn_obj OBJECT
src/CableDyn_LoadPredictor.f90
src/CableDyn_WaveGrid.f90
src/CableDyn_PathIO.f90
src/CableDyn_Provenance.f90
src/CableDyn_Banner.f90
src/CableDyn_Linalg.f90
src/CableDyn_AD.f90
Expand All @@ -447,6 +448,7 @@ add_library(cabledyn_obj OBJECT
src/CableDyn_Loads.f90
src/CableDyn_Bathymetry.f90
src/CableDyn_WaveMath.f90
src/CableDyn_WaveNodewise.f90
src/CableDyn_Hydro.f90
src/CableDyn_WaveSpectra.f90
src/CableDyn_StreamWave.f90
Expand Down Expand Up @@ -1305,6 +1307,23 @@ add_test(NAME wave_grid COMMAND test_wave_grid ${CMAKE_SOURCE_DIR}/examples/iea1
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/wave_grid)
set_tests_properties(wave_grid PROPERTIES LABELS "fortran;unit;openfast")

# Node-wise first-order wave kinematics (WaterKin SEASTATE_SPECTRAL): Airy theory in SeaState's
# convention, exact time derivatives, the stretching modes, Hermite time interpolation, truncation.
add_executable(test_wave_nodewise tests/test_wave_nodewise.f90)
target_link_libraries(test_wave_nodewise PRIVATE cabledyn_core)
add_test(NAME wave_nodewise COMMAND test_wave_nodewise)
set_tests_properties(wave_nodewise PROPERTIES LABELS "fortran;unit;openfast")

# The provenance record <root>[.CD].provenance.json: the FNV-1a component fingerprint against
# reference values, nulls, seeds, line entries and the one-step replacement.
add_executable(test_provenance tests/test_provenance.f90)
target_link_libraries(test_provenance PRIVATE cabledyn_core)
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/provenance)
# a directory where the test writes a record: the replacement fails and must leave no .tmp
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/provenance/blocked.json)
add_test(NAME provenance COMMAND test_provenance WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/provenance)
set_tests_properties(provenance PROPERTIES LABELS "fortran;unit")

# The same deck initialises without a static compression/mesh note: the touchdown
# contact kink is element-local, the smoothed element-mean axial force is tensile.
add_executable(test_flagship_compression_note tests/test_flagship_compression_note.f90)
Expand Down Expand Up @@ -2162,6 +2181,26 @@ if(Python3_Interpreter_FOUND)
TIMEOUT 600
ENVIRONMENT "${_cabledyn_python_test_environment}")

# The standalone provenance record: valid JSON of schema 1 for a still-water deck, a JONSWAP deck
# and a run that fails after parsing.
add_test(NAME provenance_sidecar
COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/test_provenance_sidecar.py
--exe $<TARGET_FILE:cabledyn>
--output ${CMAKE_BINARY_DIR}/provenance_sidecar)
set_tests_properties(provenance_sidecar PROPERTIES
LABELS "python;driver;integration"
TIMEOUT 600
ENVIRONMENT "${_cabledyn_python_test_environment}")

# The OpenFAST pre-flight checker and log scanner (integration/openfast) on synthetic cases.
add_test(NAME openfast_preflight_logscan
COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/test_openfast_preflight_logscan.py
--output ${CMAKE_BINARY_DIR}/openfast_preflight_logscan)
set_tests_properties(openfast_preflight_logscan PROPERTIES
LABELS "python;openfast"
TIMEOUT 600
ENVIRONMENT "${_cabledyn_python_test_environment}")

# Anchor uplift channels (AnchFz/AnchFH, TDP<L>Grd): the analytic laid and suspended elastic
# catenaries, the Point<P>F identity on every standalone route, and a surge that lifts the
# anchor of a catenary (needs numpy).
Expand Down
3 changes: 3 additions & 0 deletions doc/driver_format.md
Original file line number Diff line number Diff line change
Expand Up @@ -1830,6 +1830,9 @@ aggregate route and in a mixed `EI = 0` + finite-EI standalone deck.
**Host modes** (`WaveKinMod 2`/`SEASTATE`, `CurrentMod 2`) require aggregate/OpenFAST
initialisation with a SeaState field; the standalone driver rejects them with
`WaterKin WaveKinMod 2/SEASTATE is coupled-only`.
The deck OPTION itself may also read `SEASTATE_GRID` (the same as `SEASTATE`) or
`SEASTATE_SPECTRAL`, which evaluates the SeaState wave components at the nodes instead of its grid
(OpenFAST only; see the [OPTIONS reference](options.rst) and [OpenFAST](openfast.rst)).

- Host waves may be combined with a file `CurrentMod 1` profile.
- Current-only host mode removes host wave velocity and acceleration and uses still-water wetting.
Expand Down
37 changes: 37 additions & 0 deletions doc/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,40 @@ OpenFAST coupling
final failure reports the simulated interval, ceiling, and maximum prescribed displacement
increment. The profiler reports the recovery count. Use a checkpoint (``ChkptTime`` in the
``.fst`` file) to replay any event without rerunning the full transient.

.. admonition:: Why does my coupled run stop over the SeaState grid when MoorDyn ran the same case?
:class: note

The two differ in their defaults. A CableDyn deck without a WaterKin row takes SeaState's whole
wave and current field at its line nodes; MoorDyn without a ``WaterKin`` option keeps its lines
in still water, so its run never reads the grid at the lines. With ``SeaState WaterKin`` both
interpolate the same grid, but MoorDyn gives a node outside it the kinematics of the nearest
grid boundary and interpolates a grid with ``NX = 2`` or ``NY = 2`` across an oblique sea
without a word, while CableDyn stops (:ref:`openfast:SeaState grid`). The SeaState files of
many OpenFAST models are written for the platform alone: the r-test ``MD_Shared`` grid reaches
100 m from the platform, the anchors lie 838 m away. There are three ways on:

* ``SEASTATE_SPECTRAL WaterKin`` evaluates SeaState's wave components at the nodes; the lines
need no grid and the grid can stay at the hull
(:ref:`openfast:Wave kinematics at the nodes (SEASTATE_SPECTRAL)`).
* A grid over the lines, as :ref:`openfast:SeaState grid` sizes it; run
``integration/openfast/cabledyn_preflight.py`` on the ``.fst`` first for its memory.
* ``SEASTATE_GRID WaterKin`` and ``warn waveGridCheck`` give the lines
the kinematics MoorDyn's lines get with ``SeaState WaterKin`` on the same grid, boundary
kinematics included, for a comparison of the line models alone. The warning comes once; the
provenance record (:ref:`outputs-provenance`) lists every line that left the grid and when.
These kinematics are not physical where the nodes leave the grid, so do not use the results
for design.

.. admonition:: Does the hull shield the lines from the waves?
:class: note

No. Both wave routes give each node the incident sea, SeaState's waves as they would be without
the platform, and SeaState's current; the change of the waves by the hull (diffraction and
radiation) and the hull's wake in the current are not applied to the lines. Away from the hull,
at more than about a column diameter, this is the usual and adequate assumption for moorings.
Closer, for example at the hang-off of a cable under a semi-submersible column, the waves
differ from the incident sea, and the loads there are those of open water. A node inside the
hull, such as on a cable run through an I-tube or a column, also receives the open-water loads:
start the line at the exit of the I-tube, with the restraint of the I-tube as its end
connection, so that no node lies inside the hull.
Loading
Loading