Skip to content

Commit c66918c

Browse files
authored
fix(dynamics): stop EI=0 tension spikes at slack/taut switching (#20)
Tension-only (EI = 0) lines produced silent tension spikes of 5x to 360x when parts of a line went slack, at the default rhoInf = 0.4 and every dtM from 0.002 to 0.2 s: a light, axially stiff cable in 3 m heave reported 4.2 MN at the fairlead against about 0.1 MN, the same cable in an Hs 8 m sea 0.41 MN at the anchor against 0.043 MN, and a semi-taut chain-polyester leg 9.5 MN against 4.6 MN. Two mechanisms: the axial force was evaluated at the blended configuration q_alpha, so a segment slack at the start of a step ended it over-stretched; and a segment released from taut to slack within a step returned more work than its strain energy. - The step now blends forces, (1 - af) r(q_{n+1}, v_{n+1}) + af r(q_n, v_n), as the finite-EI path does, for the axial force and every dynamic load (added mass stays at q_alpha). The step-start force is recomputed at the committed state, so no state is added and restarts stay exact. False alpha_force_blend selects the former scheme. - A segment that releases within a step keeps at most the step-start force that its stored energy W_n = T_n e_n / 2 can do over the projected chord shortening l_n - t_n . d_{n+1}, crediting the end share, with a consistent tangent; the bound covers rotating releases, the kept axial-damping share and the viscoelastic and Syrope law tensions (their end tension estimated with the law stiffness). Taut lines that do not turn are never capped. - modified_newton rebuilds the tangent when an iterate reduces the residual by less than a factor four, as the manual states. - The standalone driver audits EI = 0 lines from t = 0: a warning at the first non-physical tension spike of a line, and notes for taut segments turning more than 1 deg per step, for snaps whose axial wave crosses a segment more than once per step, and for rhoInf above 0.95. At the default rhoInf the reproducers now match their fine-step references. Taut lines keep their accuracy: every MoorDyn-C, OrcaFlex, analytic and experimental comparison that runs locally still passes (the snap-load peak at 20 ms improves from 2.76 % to 1.5 %; the Bergdahl record is rerun, RMSE 1.58 N); the OpenFAST and FAST.Farm records using EI = 0 dynamics are unchanged within their recorded figures. Every EI = 0 dynamic output changes; over the shipped examples tension statistics move by at most 0.23 % (mean) and 0.9 % (maximum), except the two line-break decks. Static runs and finite-EI lines are unchanged; EI = 0 dynamic decks cost up to 6 % more time. Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
1 parent 4dfbc7a commit c66918c

22 files changed

Lines changed: 2966 additions & 164 deletions

‎CHANGELOG.md‎

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,19 @@ All notable changes to CableDyn are recorded in this file. The format follows
9393
Coupling a host (CFD) solver, that compares the call sequence step by step with MoorDyn's C
9494
API: initialisation, vector layout, end-of-step motion, outer correctors, load summation,
9595
the fixed step of the aggregate route, and units.
96+
- Run audit of tension-only (`EI = 0`) lines in the standalone driver. On the initial state and
97+
at every output step it tracks the largest turn of a taut segment's chord, the segments that
98+
snap from slack to taut, and non-physical tension spikes: a segment whose tension (the elastic
99+
tension, or that of its viscoelastic or Syrope law) at one step exceeds four times its own one
100+
step before and after, ten times the largest tension anywhere on the line one step before and
101+
after, and the largest tension of the initial state. The first spike of a line is reported as
102+
a warning, once per line, and the run summary counts them. The run ends with a note when a
103+
taut segment turned by more than 1° in one step (the mean and standard deviation of the
104+
tension err by about 1 % and more above it; 1.3 % at 2.9° on a heaving chain), and when
105+
segments snapped taut while the axial wave crosses a segment more than once per step, so the
106+
snap peaks are not resolved in time. The standalone driver also prints a note for a dynamic
107+
deck with `rhoInf` above 0.95, on the missing numerical dissipation. See the manual's
108+
troubleshooting page.
96109

97110
### Changed
98111

@@ -153,6 +166,62 @@ All notable changes to CableDyn are recorded in this file. The format follows
153166

154167
### Fixed
155168

169+
- Tension spikes of tension-only (`EI = 0`) lines that go slack. The generalised-α step evaluated
170+
the axial force and the dynamic loads at the blended configuration
171+
`q_α = (1 − α_f) q_{n+1} + α_f q_n`. A segment that was slack at the start of a step and
172+
carries tension at `q_α` then ends the step stretched beyond it,
173+
`q_{n+1} = (q_α − α_f q_n)/(1 − α_f)`, and a segment going slack within a step returned more
174+
work to the motion than its strain energy. Both happened silently at the default
175+
`rhoInf = 0.4`, at every `dtM` from 0.002 to 0.2 s, on realistic input: a light, axially stiff
176+
cable (80 kg/m, EA 8e8 N) under 3 m heave reported 4.2 MN at the fairlead and 3.4 MN at the
177+
anchor (`dtM` 0.0025 s) and 20 MN at the anchor (`dtM` 0.1 s), against 0.1 to 0.18 MN at
178+
`rhoInf = 0`, at `dtM` down to 0.25 ms and with a finite-EI model; the same cable in an `Hs`
179+
8 m JONSWAP sea 0.41 MN at the anchor against 0.043 MN; the shipped viscoelastic polyester in
180+
15 m surge 2.69 MN against 1.80 MN; a semi-taut chain–polyester leg 9.5 MN at the anchor
181+
against 4.6 MN; and a line on a stiff seabed failed the plausibility guard. The step now blends
182+
forces, `(1 − α_f) r(q_{n+1}, v_{n+1}) + α_f r(q_n, v_n)`, as the finite-EI path does, for the
183+
axial force and every dynamic load (damping, viscoelastic and Syrope laws, seabed, drag,
184+
Froude–Krylov, buoyancy; added mass stays at `q_α`). The step-start force is evaluated afresh
185+
at the committed state, so no state is added and restarts stay exact. An element that
186+
releases within a step returns at most its strain energy over the step, so a release can no
187+
longer create energy. Its step-start force acts along its step-start chord for the whole step,
188+
so the cap takes the shortening projected on that chord, which a segment that turns as it goes
189+
slack exceeds by far (a nearly unstretched segment turning by 90° would otherwise return
190+
hundreds of times its strain energy), and it fades out continuously as the end state crosses
191+
the rest length. The viscoelastic and Syrope segments are capped the same way with the tension
192+
of their law, their end tension estimated with a secant stiffness bounded by the law's axial
193+
stiffness, so that damping carried at a vanishing stretch does not make the cap switch
194+
abruptly (the same cable made lightly damped viscoelastic peaks at 0.085 MN at the anchor at
195+
`dtM` 0.1 s, a snap that step does not resolve, against 0.145 MN without the cap on its
196+
segments and 0.082 to 0.095 MN at 0.5 to 2.5 ms). An elastic segment with axial damping
197+
keeps the step-start dashpot force along its old chord too; where its end state is slack, or
198+
taut by less than `α_f/(1 − α_f)` of its stretch, the cap covers that force as well, crediting
199+
the dashpot's end share, so that the whole blend of a segment ending slack returns at most its
200+
strain energy unless that end share alone returns more (in the test chain it returned up to
201+
2750 times that with only the elastic share capped); a damped segment that ends taut beyond
202+
that band keeps the plain force blend. The seabed contact of
203+
a node that lifts off within a step is not capped (see the manual's theory page). At the
204+
default `rhoInf` the reproducers now give 0.10 / 0.09 MN, 0.092 / 0.106 MN, 0.075 / 0.043 MN
205+
and 1.80 MN, as their references, and the stiff-seabed line runs to completion; the
206+
chain–polyester anchor snap peaks at 5.7 MN at `dtM` 0.05 s, a single-step peak (4.6 MN at
207+
0.0025 s) that the new snap note reports. On a linear element the scheme is unchanged, so taut
208+
lines keep their accuracy: every MoorDyn-C, OrcaFlex, analytic and experimental comparison that
209+
runs locally still passes, and its reported error moves by at most 0.35 percentage points (the
210+
minimum fairlead tension of the one-hour VolturnUS-S record, 0.15 % to 0.50 %; the snap-load
211+
peak at 20 ms improves from 2.76 %, published as 2.7 %, to 1.5 %; see VALIDATION.md). Every
212+
`EI = 0` dynamic output changes. Over the shipped examples the statistics of the tensions
213+
change by at most 0.23 % (mean) and 0.9 % (maximum), except the two `als_volturnus` decks,
214+
whose pre-failure anchor snap at 250 s is resolved by one or two samples and peaks 10 % lower.
215+
Static runs and finite-EI lines are unchanged. The step costs up to 6 % more wall time on
216+
`EI = 0` dynamic decks (one more force evaluation per step and about 4 % more Newton
217+
iterations). `False alpha_force_blend`, which until now applied to finite-EI lines only,
218+
selects the former scheme for `EI = 0` lines as well. Lines that the C API builds without a
219+
deck (`CableDyn_InitLine`, `CableDyn_InitLines`) always take the force blend.
220+
- `modified_newton` on `EI = 0` lines (with or without the force blend, so also under
221+
`False alpha_force_blend`) rebuilds the tangent when an iterate reduces the residual by less
222+
than a factor four, as the manual states; it had kept the first tangent for the whole step,
223+
which a slow linear contraction could exhaust (30 iterations at the start of the 5 m heave
224+
cells of the L2-2 parity test with the force blend).
156225
- The development environment (`environment.yml`) excludes OpenBLAS 0.3.34, which caused the
157226
access violation in the modal analysis tests listed under Known issues for 0.1.1. On AMD
158227
Zen 4 and Zen 5 CPUs that expose AVX-512, OpenBLAS 0.3.34 enlarges the GEMM blocking,

‎CMakeLists.txt‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1781,6 +1781,12 @@ add_executable(test_dynamics_regressions tests/test_dynamics_regressions.f90)
17811781
target_link_libraries(test_dynamics_regressions PRIVATE cabledyn_core)
17821782
add_test(NAME dynamics_regressions COMMAND test_dynamics_regressions)
17831783
set_tests_properties(dynamics_regressions PROPERTIES LABELS "fortran;driver;integration;dynamic")
1784+
# Tension-only lines going slack and snapping taut at the default rhoInf: force blend, release
1785+
# cap and the driver's run audit (the driver executable is passed for its stdout).
1786+
add_executable(test_ei0_slack_dynamics tests/test_ei0_slack_dynamics.f90)
1787+
target_link_libraries(test_ei0_slack_dynamics PRIVATE cabledyn_core)
1788+
add_test(NAME ei0_slack_dynamics COMMAND test_ei0_slack_dynamics $<TARGET_FILE:cabledyn>)
1789+
set_tests_properties(ei0_slack_dynamics PROPERTIES LABELS "fortran;driver;integration;dynamic")
17841790

17851791
add_executable(test_deck_reader_io tests/test_deck_reader_io.f90)
17861792
target_link_libraries(test_deck_reader_io PRIVATE cabledyn_core)

‎VALIDATION.md‎

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,15 @@ article's methods, are compared in
7474
| **L3-6c** | Irregular-sea (JONSWAP) dynamic lazy-wave | OrcaFlex 11.6d (same 80-component sea) | curv 0.21%; tension 0.20/0.19/0.23%; wave-driven curv rise 1.0%, tension range 2.1% | curv <2%, tension <1%; rise <15%, range <10% | Pass |
7575
| **L3-6d** | Moving-touchdown dynamic contact | OrcaFlex 11.6d installed | curv 0.48/0.58%, tension 0.74/0.90/0.80%, TDP 0.08 m, migration 2–3 m/cycle | curv <3–5%, tension <2–3%, TDP excursion bounds <1.5 m | Pass |
7676
| **L3-6e** | Out-of-plane / 3D whirl response | OrcaFlex 11.6d | 3D curv 0.52%, interior Y env ≤1.0 mm, sag ≤22 mm, tension 0.14/0.17/0.12% | curv <3%, env <5 cm, tension <2–3% | Pass |
77-
| **L3-7** | 1-hour VolturnUS-S mooring dynamic | OrcaFlex 11.6d | `FairTen` mean 0.28%, std 0.25%, min/max 0.15/0.43%, Fourier 0.27/1.13% | ≤5% | Pass |
77+
| **L3-7** | 1-hour VolturnUS-S mooring dynamic | OrcaFlex 11.6d | `FairTen` mean 0.27%, std 0.26%, min/max 0.50/0.43%, Fourier 0.27/1.14% | ≤5% | Pass |
7878
| **L3-H** | Holcombe static lazy-wave experiment | measured marker geometry | position RMSE 1.07–1.89% of suspended length; peak marker-curvature error 0.34–5.54% | end-restraint bracket | Pass |
79-
| **L3-B** | Bergdahl chain experiment, 30 orbit conditions | measured upper-end force | RMSE 1.58 N; MAPE 3.11%; Pearson 0.993; Lin concordance 0.989 | full published matrix | Pass |
79+
| **L3-B** | Bergdahl chain experiment, 30 orbit conditions | measured upper-end force | RMSE 1.58 N; MAPE 3.13%; Pearson 0.993; Lin concordance 0.989 | full published matrix | Pass |
8080
| **L-fig** | Along-arc curvature overlay (CableDyn / OrcaFlex / MoorDyn-F ±4×) | 3-code committed record | CableDyn peak 0.11% from OrcaFlex | <0.5% | Pass |
8181
| **L4-1** | Coupled platform + mooring | synthetic reference | bit-for-bit | — | Pass |
8282
| **L4-1b** | VolturnUS-S coupled platform + power cable | OpenFAST v5.0.0 (CompMooring 5 vs 3) | platform DOFs <0.6% (3-seed DLC-1.1); fairlead and anchor <0.001% static | <3% platform | Pass |
8383
| **L4-1c** | Lozon lazy-wave cable under coupled FOWT motion, 3 depths | OrcaFlex 11.6d | curv amplification 0.05/0.09/0.01%; dyn curv 0.24/0.35/1.01%; tension <0.7% | ampl <2%, curv <2–3%, tension <1.5–2% | Pass |
8484
| **L4-rot** | Coupled mooring rotational stiffness | held 1° pitch geometry | upwind −16.0 kN, downwind +7.8 kN each; first-order restoring moment | signs + first-order | Pass |
85-
| **L5-stab** | Snap-load Δt-stability | sub-CFL fine-dt (0.5 ms) self-ref | peak 2.7% at dt = 20 ms (explicit limit 3.2 ms) | — | Pass |
85+
| **L5-stab** | Snap-load Δt-stability | sub-CFL fine-dt (0.5 ms) self-ref | peak 1.5% at dt = 20 ms (explicit limit 3.2 ms) | — | Pass |
8686
| **L5-stab** | Snap-load Δt-stability, implicit and explicit steps | MoorDyn-C explicit step limit | 20 ms implicit; ~1 ms explicit | — | Pass |
8787
| **L5-V** | VolturnUS-S 1-hr mooring wall-clock | measured, matched protocol | CableDyn 18.1–32 s across repeated runs (full Newton) vs OrcaFlex 14.5 s; heave-only config 10.3 s | — | Pass (response at L3-7) |
8888
| **L5-wc** | Wall-clock vs explicit C solver | external-C RK2 (WD chain) | L2 0.967 s vs external-C 0.541 s; traces validated | matched comparison reported | Pass measured |
@@ -178,7 +178,7 @@ initialisation.
178178
- **L3-1 WD0050 static** (`l3_orcaflex_static`): fairlead/anchor **0.154% /
179179
0.848%**. The OrcaFlex reference is within 0.657/0.731% of MoorDyn-C.
180180
- **L3-2 regular-wave dynamic** (`l3_orcaflex_wave_dynamic`): mean fairlead
181-
tension **0.298%** (2% acceptance), swing **8.405%** (15% acceptance) against an
181+
tension **0.298%** (2% acceptance), swing **8.411%** (15% acceptance) against an
182182
OrcaFlex reference with implicit dt 0.005 s. Wave stretching changes the OrcaFlex
183183
swing by only 0.18%, and the unpinned OrcaFlex dt=0.1 s is not converged
184184
(refinement moves it toward CableDyn). The residual comes from surface-piercing
@@ -255,10 +255,11 @@ initialisation.
255255
**0.14 / 0.17 / 0.12%**.
256256
- **L3-7 1-hour mooring dynamic** (`l3_longduration_mooring`): VolturnUS-S
257257
all-chain line driven for one hour by 5 m/90 s surge + 2 m/12 s heave. Over the
258-
steady 3400 s window the `FairTen` channel differs from OrcaFlex by **0.28% in
259-
mean, 0.25% in std, 0.15 / 0.43% in minimum / maximum, and 0.27% (90 s) / 1.13%
258+
steady 3400 s window the `FairTen` channel differs from OrcaFlex by **0.27% in
259+
mean, 0.26% in std, 0.50 / 0.43% in minimum / maximum, and 0.27% (90 s) / 1.14%
260260
(12 s) in Fourier amplitude**. The end-element tension carries the 1.28% static
261-
offset of L2-V in its mean and extremes.
261+
offset of L2-V in its mean and extremes. The force-blended `EI = 0` step moved the
262+
minimum by +7 kN (0.15% before) and the other statistics by at most 0.01%.
262263
- **L-fig curvature overlay**: `l3_lazywave_dynamic` writes each site's along-arc
263264
curvature profile.
264265
[`validation/scripts/curvature_profile_overlay.py`](https://github.com/SMI-Lab-Inha/CableDyn/blob/main/validation/scripts/curvature_profile_overlay.py)
@@ -287,10 +288,13 @@ scripts, results, and source provenance are in
287288
- **L3-B Bergdahl dynamic chain test**
288289
([Bergdahl et al., 2016](https://cabledyn.readthedocs.io/en/latest/references.html#ref-bergdahl2016)):
289290
over the full 30-condition period-radius matrix, cycle-maximum upper-end force
290-
has RMSE 1.58 N, mean absolute percentage error 3.11%, Pearson correlation
291+
has RMSE 1.58 N, mean absolute percentage error 3.13%, Pearson correlation
291292
0.993, and Lin concordance 0.989. Two phase-averaged measured histories have
292-
waveform RMSEs of 5.95% and 2.54% of their force ranges. Halving the mesh length
293-
and the time step changes the mean cycle maximum by at most 0.49% and 0.28%. The
293+
waveform RMSEs of 5.95% and 2.54% of their force ranges; these two were computed with the
294+
executable of the 2026-10-09 record (the configuration-blended `EI = 0` step), because the
295+
article supplement's `expData.dat` they need was not available for the rerun (see the
296+
experiment's README and `provenance.json`). Halving the mesh length
297+
and the time step changes the mean cycle maximum by at most 0.52% and 0.19%. The
294298
0.3125 ms step resolves the segment axial modes that the snap loads excite; at
295299
1.25 ms the maxima are 2–15% higher and vary from cycle to cycle.
296300

@@ -373,7 +377,9 @@ scripts, results, and source provenance are in
373377
- **Snap load** (`snap_load`): a grounded tension-only line goes slack, then snaps
374378
to ~10 MN. Implicit generalised-α integrates it at **dt = 20 ms, above the
375379
explicit CFL limit of about 3.2 ms**, with every step converged (stable up to about
376-
30 ms in a sweep); the peak is within **2.7%** of the 0.5 ms sub-CFL reference.
380+
30 ms in a sweep); the peak is within **1.5%** of the 0.5 ms sub-CFL reference
381+
(1.1% at 10 ms, 0.05% at 5 ms). Before the force-blended `EI = 0` step these were
382+
2.76 / 0.62 / 0.16%; the 2.76% at 20 ms is the value published as 2.7% (truncated).
377383
- **Implicit and explicit steps**: on the matched near-taut snap, MoorDyn-C's
378384
explicit RK2 needs `dtM ≲ 1 ms`, as expected of an explicit scheme at this line
379385
stiffness; CableDyn's implicit step remains stable at **20 ms**.

‎doc/capi.rst‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,10 @@ solve returns ``CD_C_SOLVE_FAIL``.
10441044

10451045
The Newton settings are fixed at their
10461046
defaults: relative residual tolerance :math:`10^{-8}`, at most 30 iterations per step, and at
1047-
most 12 line-search backtracks.
1047+
most 12 line-search backtracks. So is the generalised-α scheme: these lines always take the
1048+
force-blended step (``alpha_force_blend`` ``True``, with the release cap on a tension-only line,
1049+
:doc:`theory`). They cannot select the configuration blend of 0.1.1 and earlier
1050+
(``False alpha_force_blend``), which only a deck sets, through ``CableDyn_InitDeck``.
10481051

10491052
``CableDyn_InitLines``
10501053
~~~~~~~~~~~~~~~~~~~~~~

‎doc/driver_format.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1006,7 +1006,7 @@ syntax form. The most frequently edited keywords are:
10061006
| `cable_load_feedback` | coupled finite-EI cable reaction switch. `True` returns cable force and moment to the host. `False` marches the cable with the same moving boundary and host fluid field and keeps its output channels, but returns zero force and moment; use it for a one-way comparison, not as a physical model | `True` |
10071007
| `adaptive_mesh` | `True`/`False`; allow finite-EI mesh refinement when the static resolution check is fragile | `False` |
10081008
| `cable_statics` | `continuation` or `sequenced`: which finite-EI static route runs first (the other is its fallback); both results are audited | `continuation` |
1009-
| `alpha_force_blend` | `True`/`False`; generalised-α blend of the finite-EI dynamics: forces (`True`) or the configuration `q_αf` (`False`), which biases the mean tension of a rotating line at large `dtM` | `True` |
1009+
| `alpha_force_blend` | `True`/`False`; generalised-α blend of the finite-EI and `EI = 0` dynamics: forces (`True`) or the configuration `q_αf` (`False`), which biases the mean tension of a rotating finite-EI line at large `dtM` and lets `EI = 0` segments that go slack report spurious tension spikes | `True` |
10101010
| `tensile_safety` | `False`, `warn`, or `True`; audits the element-mean axial force (three-point Gauss mean of the signed axial resultant, averaged over an element and its two neighbours). `True` rejects. `warn` commits the state, counts accepted-step events, and reports the worst force, threshold, element and time (the printed `xi` is always 0.5, the element centre) | `False` |
10111011
| `tensile_strain_tolerance` | non-negative strain band for the dynamic tensile audit | `2e-6` |
10121012
| `recovery_max_substeps` | integer from 4 to 65536; maximum step subdivision for dynamic-step recovery on tension-only and bending lines. Internal prescribed states lie on one C2 quintic trajectory and land on the nominal coupling endpoint. The standalone summary reports recovered intervals and the largest subdivision used | `1024` |

0 commit comments

Comments
 (0)