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
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,20 @@ All notable changes to CableDyn are recorded in this file. The format follows
until its grid is enlarged as the tutorial describes. Runs that pass the checks give the same results,
bit for bit.

- In OpenFAST, the lines on the SeaState grid route take the wave and current kinematics at their
positions at the sample time (the end of the CableDyn step): their committed positions advanced by
their velocity, taken from their last two committed positions. Before, they took them at the
committed positions of the step's start, one CableDyn step behind (a phase error of k v dtM).
Grid-route results change at that level, by design: on the r-test chain mooring of the OpenFAST
tutorial (Hs 6 m, Tp 12 s, 60 s, dtM 0.025 s) the fairlead-tension standard deviations move by less
than 0.001 % and the tensions by at most 200 N (0.002 standard deviations); on a chain and lazy-wave
cable mooring at dtM 0.0125 s over 300 s the standard deviations of tension, curvature and twist
move by less than 0.001 % and the largest differences are at the last printed digit. The wave-grid
guard and the provenance record check and report the positions sampled, so a node that a step's
motion carries out of the grid is found at that step. A checkpoint carries the position history, so
a restarted run continues bit for bit. The node-wise route (`SEASTATE_SPECTRAL`) has advanced its
nodes this way from the start.

### Fixed

- A Syrope rope at its running maximum had a band of slow strains, up to 9e-7 wide on the shipped table,
Expand Down
4 changes: 3 additions & 1 deletion doc/openfast.rst
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ Fluid source
~~~~~~~~~~~~

With no WaterKin policy (``0 WaterKin``, the default), CableDyn samples the complete enabled
SeaState wave and current field at its line nodes and refreshes it every CableDyn step. A
SeaState wave and current field at its line nodes and refreshes it every CableDyn step, at the
end of the step and at the nodes' positions then: their positions at the last committed step
advanced by their velocity (from their last two committed positions). A
WaterKin file can select file waves, a file depth-dependent current, host waves, or host
current independently where the field is separable. Unsupported or double-counted combinations
fail during initialisation. The selector matrix is in :doc:`options` and :doc:`driver_format`.
Expand Down
16 changes: 15 additions & 1 deletion src/CableDyn_WaveGrid.f90
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ MODULE CableDyn_WaveGrid
IMPLICIT NONE
PRIVATE

PUBLIC :: CD_WaveGrid_Along_Axis, CD_WaveGrid_Coarse_Axes, CD_WaveGrid_Field_Varies
PUBLIC :: CD_WaveGrid_Along_Axis, CD_WaveGrid_Coarse_Axes, CD_WaveGrid_Field_Varies, CD_WaveGrid_Advance

!> the tolerance on a wave direction taken as along a grid axis (deg)
REAL(wp), PARAMETER, PUBLIC :: CD_WAVEGRID_DIR_TOL = 1.0E-4_wp
Expand Down Expand Up @@ -140,4 +140,18 @@ PURE LOGICAL FUNCTION CD_WaveGrid_Field_Varies(f, axis, rtol) RESULT(varies)
END DO
END FUNCTION CD_WaveGrid_Field_Varies

PURE FUNCTION CD_WaveGrid_Advance(x, x_last, t, t_last, t_target) RESULT(xs)
!! The positions x of time t advanced to t_target by the velocity (x - x_last)/(t - t_last) of
!! the positions x_last of the earlier time t_last: where the wave field is sampled for a
!! sample time other than the time of the positions. x itself without a history (t_last not
!! before t) or at its own time.
REAL(wp), INTENT(IN) :: x(:, :), x_last(:, :), t, t_last, t_target
REAL(wp) :: xs(SIZE(x, 1), SIZE(x, 2))
IF (t > t_last .AND. ABS(t_target - t) > 0.0_wp) THEN
xs = x + (x - x_last)/(t - t_last)*(t_target - t)
ELSE
xs = x
END IF
END FUNCTION CD_WaveGrid_Advance

END MODULE CableDyn_WaveGrid
Loading
Loading