Skip to content

feat: Rayleigh damping of finite-EI cables (EI|-zeta|f1|f2) - #170

Merged
SMI-Lab-Inha merged 1 commit into
devfrom
feat/bending-damping-alpha
Nov 16, 2026
Merged

SMI-Lab-Inha merged 1 commit into
devfrom
feat/bending-damping-alpha

Conversation

@SMI-Lab-Inha

Copy link
Copy Markdown
Owner

Summary

Finite-EI cables get Rayleigh damping: a damping ratio that holds at two frequencies instead of one. The LINE TYPES EI column now takes EI|-zeta|f1|f2.

The bending damping Bb is stiffness-proportional, $\zeta = \omega B_b/(2EI)$. A ratio set at one frequency therefore cannot hold across a VIV band, where the excited mode moves with the current. Riser VIV programs take a structural $\zeta$ in Rayleigh form or per mode, so every VIV comparison needs this baseline.

The form

EI|-zeta|f1|f2 sets two terms:

$$ B_b = \frac{\zeta, EI}{\pi (f_1 + f_2)}, \qquad \alpha = \frac{4\pi \zeta f_1 f_2}{f_1 + f_2}\ \ [\mathrm{1/s}], $$

so that

$$ \zeta(\omega) = \frac{\alpha}{2\omega} + \frac{\omega B_b}{2EI} $$

equals $\zeta$ at $f_1$ and $f_2$ for a mode whose stiffness is all bending.

The mass-proportional force

$$ \mathbf f = \alpha, m, (\mathbf I - \mathbf t \mathbf t^\mathsf{T}), \mathbf v $$

This is $\alpha$ times the line's own mass on the velocity normal to the tangent:

  • on a straight span, $\alpha M v$ in the two transverse directions;
  • zero along the axis (axial damping stays with BA).

Absolute velocity. The velocity is absolute, as in the usual Rayleigh model, so rigid transverse and pendulum motion is damped too, increasingly below $f_1$. The theory page says so. It also explains why the filtered-velocity frame of the VIV FRAME section is not used: that would add a filter state, lag the damping and break the two-frequency ratio.

Implementation:

  • No state is added. The force and both Jacobians are exact.
  • The term joins the structural damping load. The end forces, the node recovery, DampPow, the consistent initial acceleration and the OpenFAST linearisation (central differences of the same equations) therefore all carry it.
  • API: CD_HermiteCable_Dyn_Set_Mass_Damping and CD_HFMF_Set_Mass_Damping.
  • Refusals:
    • EI = 0 lines refuse the form, as they refuse the other damping forms.
    • Both deck readers refuse a positive ratio, a non-positive frequency and a fifth part, naming the item.
  • Python: the builder writes and reads the form.

Tests

Test Check Result
hermite_mass_damping Kernel Jacobians vs central differences 3e-10
Force vs the gradient of an independent dissipation function $\psi$; power $2\psi$ ≤ 1e-12
$\alpha M v$ on a straight element ≤ 1e-13
Axial sliding not damped exactly zero
hermite_mass_damping_dynamic Free decay of modes 1, 2, 3 of a pinned cable: $\alpha$ alone, Bb alone, both, vs the Rayleigh ratio largest error 0.05 %
The two-frequency pair at the target at $f_1$ and $f_3$ 0.02 %
Energy ledger with $\alpha$ and Bb closes to 2.8e-4 of the dissipated work
bending_damping_deck Deck route and refusals pass

Checks

All on the branch rebased on dev 041337e:

  • Example A/B: all 134 example and test-data decks write bit-identical outputs on the old and new driver.
  • Full test suite: 429/429 on the default and on the Prescott OpenBLAS kernel.
  • Fallbacks: the example decks run with no fallback note on both kernels.
  • Python suite: passes against this build's library and driver, including the builder and the deck/native parity tests.
  • pre-commit.
  • Docs: driver_format.md, theory.rst, capabilities.rst, outputs.rst, CHANGELOG.

The bending damping Bb is stiffness-proportional, zeta = omega Bb/(2 EI),
so a ratio set at one frequency cannot hold across a VIV band. The LINE
TYPES EI column now takes EI|-zeta|f1|f2: beside Bb = zeta EI/(pi (f1 +
f2)) it adds a mass-proportional transverse damping alpha = 4 pi zeta f1
f2/(f1 + f2) [1/s], so zeta(omega) = alpha/(2 omega) + omega Bb/(2 EI)
equals zeta at f1 and f2 for a mode whose stiffness is all bending.

The new force is alpha m (I - t t^T) v, alpha times the line's own mass
on the velocity normal to the tangent: alpha M v in the two transverse
directions of a straight span, zero along the axis (axial damping stays
with BA). The velocity is absolute, as in the usual Rayleigh model, so
rigid transverse and pendulum motion is damped too, increasingly below
f1; the theory page says so and why the filtered-velocity frame of the
VIV FRAME section is not used (it would add a filter state, lag the
damping and break the two-frequency ratio). No state is added. Force and
both Jacobians are exact; the term joins the structural damping load, so
the end forces, the node recovery, DampPow, the consistent initial
acceleration and the OpenFAST linearisation (central differences of the
same equations) carry it. The API setter is
CD_HermiteCable_Dyn_Set_Mass_Damping (and CD_HFMF_Set_Mass_Damping).
EI = 0 lines refuse the form, as the other damping forms. Both deck
readers refuse a positive ratio, a non-positive frequency and a fifth
part by name; the Python builder writes and reads the form.

Tests: kernel Jacobians against central differences (3e-10), the force
against an independent dissipation function, alpha M v on a straight
element and no damping of axial sliding; free decays of modes 1, 2 and
3 of a pinned cable for alpha alone, Bb alone and both against the
Rayleigh ratio (largest error 0.05 %), and the two-frequency pair at
the target at f1 and f3 (0.02 %); the energy ledger with alpha and Bb
closes to 2.8e-4 of the dissipated work; the deck route and refusals.
Every example and test-data deck writes bit-identical outputs (226
files over 115 decks).

Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
@SMI-Lab-Inha

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-16T03:33:46.574777Z 1e0d48f Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 CableDyn | 🛠️ Build #35916220 | 📁 Comparing 1e0d48f against latest (789cb6d)

  🔍 Preview build  

14 files changed · ± 14 modified

± Modified

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: 1e0d48fc8d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@SMI-Lab-Inha
SMI-Lab-Inha merged commit 4b94321 into dev Nov 16, 2026
22 checks passed
@SMI-Lab-Inha
SMI-Lab-Inha deleted the feat/bending-damping-alpha branch November 16, 2026 06:10
SMI-Lab-Inha added a commit that referenced this pull request Nov 16, 2026
…tep (#171)

A taut line locked in by the synchronisation model changed its
lock-in frequency by 0.74 %, 0.41 % and 0.27 % per halving of the
step from 25 to 200 steps per cycle (the long-run VIV checks), worse
than first order, while the same phase update under prescribed
motion was second order. The phase sampled the committed
generalised-alpha acceleration a_n for its cross-flow phase (and the
wake oscillator for its forcing). That acceleration is the line's at
t_n + (alpha_m - alpha_f) dt only, a first-order error at rho_inf <
1, and at rho_inf = 1 it carries an undamped alternating mode of the
integrator: on the 20 m line the mid-span a_n alternated by +-11 m/s^2
against a physical acceleration of about 1.3 m/s^2. The lock-in at
rho_inf = 1 therefore converged to a frequency 3.4 % low (3.940 at
3200 steps per cycle against 4.0797 rad/s), and at rho_inf 0.8 and
0.4 it was first order (0.06/n and 0.25/n at n steps per response
period). Prescribed motion imposes the exact acceleration, which is
why it did not show there.

Candidates switched off one at a time on that line, 25 to 3200 steps
per cycle: a second-order running mean square (exact exponential with
trapezoidal samples) changed nothing; a fixed normalisation in place
of the RMS left it first order; a tighter Newton tolerance changed
nothing; the lift at a fixed shedding rate (no phase feedback) was
second order (ratios 3.8 to 4.0); the acceleration recomputed from
the equations of motion after every step moved the limit to 4.0797
rad/s; and the phase on the step's mid-point motion with the
acceleration from the converged velocities restored second order
(ratios 3.6 to 5.0, then 4.01 to 4.04 from 400 steps on) at rho_inf 1
and 0.8 alike. No amplitude table, flow frame or in-line VIV is
involved in that case.

The phase now advances by the implicit mid-point rule, one
fixed-point pass, on the node's cross-flow motion at the step's
mid-point: the mean position, the velocity (q_n+1 - q_n)/dt and the
acceleration (v_n+1 - v_n)/dt, the step means of the velocity and of
its derivative (second order at every rho_inf, free of the committed
acceleration's lag and alternating mode, and keeping the phase of a
harmonic motion exactly). The step's lift takes the phase predicted
with the rate of the previous step's mid-point, a new row of the VIV
motion statistics (two with in-line VIV), so the step recovery,
sub-step slots, snapshots and checkpoints carry it and a restart stays
bit-identical; a newly installed VIV model seeds it from the present
state. The running mean squares advance by the mid-point rule
(1 - exp(-dt/T_w) on the mid-point sample), the in-line phase in the
same way slaved to the mid-point cross-flow rate, the flow frame's and
the wake filter's filtered velocities exactly for the velocity linear
over the step, and the wake oscillator under the mid-point
acceleration (held over the step, its integral exact) at the mean of
the start and end wake frequencies, that acceleration being its
predictor (row 2 of its statistics). The time discretisation of the
VIV phase therefore changes on purpose; this is not a round-off
change.

Measured on the same line from 25 to 3200 steps per cycle (EI = 0
line and rho_inf 0.8 unless noted), the ratio of successive changes
per halving of the step, before and after:

  frequency, rho_inf 1:          limit 3.4 % low;  3.6-4.9
  frequency, rho_inf 0.8 / 0.4:  2.0-3.4 / 1.5-3.2;  3.6-4.8 / 3.8-4.5
  mid-span A/D, in-line VIV:     2.2-2.3;  2.6-4.3
  frequency, flow frame:         1.6-2.0;  3.1-4.5
  frequency, amplitude table:    1.9-2.3;  3.0-4.5
  wake oscillator, frequency:    2.0-2.5;  3.8-4.0
  finite-EI cable, frequency:    1.7-2.3;  3.1-4.1

The Richardson limits at rho_inf 1, 0.8 and 0.4 agree to 1e-9 (4.0797304
rad/s), and the errors are about 2.2/n^2 (rho_inf 1, 0.8) and 3.4/n^2
(0.4) in frequency and 1.6/n^2 and 3.4/n^2 in mid-span A/D at n steps
per response period, 3.5/n^2 on the finite-EI cable. With the cable
seeded at its static stretch, rho_inf 1 reaches the rho_inf 0.8 limit;
from unit tangents the undamped tangent-stretch mode rings and moves
it at fine steps (the seed, not the VIV update). Under prescribed
motion the phase error of the long-run check after 400 cycles at 100
steps per cycle is 0.0167 rad against 0.0334 before, still second
order (3.99). The energy closure of that check at 100 steps per cycle
is 2.0e-4 of the VIV work against 8.3e-5 before, second order (ratio
4.0): the lift's predicted phase now takes the rate of the previous
step's mid-point, half a step behind the old step-start rate.

The two VIV example decks change at their default dtM 0.02 s (about
170 steps per response period, rhoInf 0.4) and move toward their
results at dtM 0.00125 s. viv_taut_line_crossflow, against dtM
0.00125 s: the mid-span RMS 0.31 % high before, 0.02 % low after; the
lock-in frequency 0.15 % low before, 0.018 % after; the fairlead
tension RMS 0.29 % high before, 0.027 % low after. viv_taut_cable_inline:
the quarter-span in-line RMS 1.56 % low before, 0.34 % after; the
cross-flow frequency 0.10 % high before, 0.022 % after; the largest
fairlead tension 0.70 % high before, 0.23 % low after; the mid-span RMS
0.21 % and 0.20 % low. Over the 90 s the phase moves, so the time series
differ pointwise by up to 12 % (crossflow, fairlead tension) and 36 %
(inline, quarter-span y) of the channel's range. Every other example
and test-data deck (132 of 134) gives bit-identical output files and
console logs. The full test suite (430 tests, on dev with #169 and #170) passes on the default
and the Prescott OpenBLAS kernel, and the 66 example decks run with no
fallback note on both.

Test: viv_step_order, the lock-in frequency of the line second order
from 100 to 400 steps per cycle at rho_inf 1 (ratio 3.99) and 0.4
(3.67) and within 1e-4 of each other (4.3e-5), the wake oscillator's
crossing frequency (3.90) and the finite-EI cable from 200 to 800
steps per cycle (4.39); on the previous code every check fails (ratios
2.44, 2.27, 2.18 and 2.76, the two rho_inf 3.1 % apart). The VIV
state layouts in test_model, test_system, test_viv_coupled,
test_hermite_viv_frame and test_hfmf_mirror carry the predictor rows.

With the mid-point VIV update the predictor check of the lifted
taut line fails one cell, rho_inf 1 at 25 steps per cycle (21 per
response period): from the unit-tangent seed z max/D 0.5903 against
the balanced seed's 0.5641 (+4.6 %) and Es max 1.51 times it. Every
step converges (6.15 iterations on average, at most 21).

At rho_inf 1 nothing damps the unit seed's stretch ringing, and at
that resolution it leaves a near-Nyquist velocity in the trajectory:
the mid-node (v_n+1 - v_n)/dt alternates by 4.8 m/s^2 against a VIV
acceleration of 3.2 m/s^2 (a velocity of about 0.09 m/s, 27 % of the
VIV velocity; the committed a_n alternates by 32 against 17, 19
against 10.5 on the old update), 10 to 20 times less at 50 steps per
cycle. The response then depends on how the VIV update treats that
velocity: four equally consistent variants (the last two mid-point
accelerations averaged, a three-point second-order Nyquist-free
acceleration, an averaged predictor rate, both of the latter) give
z max/D 0.623, 0.579, 0.589 and 0.578, +0.8 % to +10 % from the
converged 0.5639 with the old update's +0.8 % among them. That value
is the fine-step one (200 to 800 steps per cycle), the same at
rho_inf 0.8 with either seed and at rho_inf 1 with the balanced seed.
The new update reaches it from 50 steps per cycle with either seed
(unit seed 0.5632 at 50, 0.5641 at 100, 0.5639 from 200 on), while
the old update settled at rho_inf 1 0.23 % high from the unit seed and
0.1 % low from the balanced one. The result is deterministic (Newton
tolerance 1e-6 to 1e-10 and a 1e-7 seed tilt change it by under
0.03 %).

So that cell measures the VIV update's treatment of an unresolved
spurious velocity, not the predictor. It keeps G1 (every step
converges) and G4 (iterations) and skips G2 and G3, and a new gate G7
holds the convergence claim: the unit seed at rho_inf 1 and 50 steps
per cycle within 0.5 % of the converged z max/D 0.5639 (measured
0.5632). The other cells keep G2 and G3 (measured at most 1.07 times
and 0.09 %). doc/theory.rst and the CHANGELOG note that at rho_inf 1
from an unbalanced seed the VIV response is resolution-sensitive below
about 50 steps per cycle: keep rhoInf at or below 0.95 or seed the
tangents at the stretch.

The nine cases and their sensitivity runs (half the time step, 128
elements, 80 s for cases 5, 6, 8 and 9, the 38.1 kN/m top spring) rerun
on the second-order VIV phase update. The counts are unchanged: the
dominant mode right in 5 of 9 and within one in all, the mean in-line
displacement within 17 % in 7 of 9 (-25 % to +34 %). The cross-flow
amplitude is -45 % to +4 % against the maxima (-40 % to +18 % against
the envelopes; within the 12 % measurement scatter in cases 2, 4, 6 and
7), the cross-flow curvature -39 % to +26 %, the in-line curvature
-53 % to +111 %.

Half the time step now changes the peak amplitude of cases 1-4, 7 and 8
by at most 2.7 % (4.5 % before) and their in-line curvature by at most
1.2 % (10 % before). Case 5 keeps its peak amplitude within 0.6 % (it
moved by up to 20 % before) while its in-line curvature moves by up to
25 %. The peak amplitude of case 6 now depends on the step and the mesh:
-11 % at half the time step, kept over an 80 s run, and -13 % with 128
elements, its other metrics within 2 % (in-line curvature 12 %). Case 9
still settles in mode 7 at half the time step. README, provenance.json
(new 80 s runs of cases 6 and 8 at both steps), summary.json,
response_comparison.csv, VALIDATION.md and the changelog entry follow.

The mid-point VIV phase update changes every coupled-VIV result, so
the validation case L3-W and the numbers the documents quote from
coupled VIV runs are recomputed with it, each as its text describes
(deck, options, window, output flag).

L3-W (validation/experiments/wang_scr), rerun as its README says, and
its two sensitivity runs: the largest r.m.s. strain over the measured
largest 1.0729 -> 1.0733, the station mean 1.0362 -> 1.0361, the
r.m.s. log error 0.339 -> 0.338, the dominant frequency 0.992 Hz
(unchanged), 7 r.m.s. peaks along the span (unchanged); 400 elements
1.0753 -> 1.0759 and half the time step 1.0742 -> 1.0747 (0.24 % and
0.13 % from the base run). Every number and sentence of the README,
VALIDATION.md and the CHANGELOG still holds at its printed precision;
summary.json, the comparison CSV and provenance.json (commit, date,
sensitivity) are updated.

Numbers changed:

- doc/outputs.rst, examples/viv_taut_cable_inline.dat: the VIV loads'
  power over 60-90 s 8.52 -> 8.45 W, the drag (and damping) 8.56 ->
  8.48 W (balance within 0.5 %, unchanged).
- doc/python_postprocessing.rst: the travelling-wave index 0.05 -> 0.04.
- doc/theory.rst: the EI = 0 wake-oscillator line locks in at 0.283 Hz
  (was "the same 0.282 Hz"); the amplitude estimate within 0.04 % (0.1 %
  on the EI = 0 line; was 0.03 %); Thorsen's damping A/D 1.02 -> 1.01;
  the moving/held pipe table (peak 0.819/0.819 -> 0.811/0.818, RMS
  0.446/0.447 -> 0.446/0.446; without the row 0.711/0.850 ->
  0.700/0.851 and 0.349/0.450 -> 0.345/0.450; Cl alone 0.713/0.714 ->
  0.713/0.712 and 0.372/0.371 -> 0.372/0.370; without 0.711/0.736 ->
  0.700/0.733 and 0.349/0.375 -> 0.345/0.374), the RMS agreement
  within 0.2 % -> 0.6 % (0.02 % with the table); the towed cable 0.7905
  / 0.7906 -> 0.7902 / 0.7903, 0.665 -> 0.663, 0.6764 / 0.6764 ->
  0.6758 / 0.6758, Tf on the held cable at most 0.23 % -> 0.24 %.
- doc/driver_format.md: towed within 0.01 % -> 0.02 %, at most 0.23 %
  -> 0.24 %.
- VALIDATION.md: L2-VIV zero seed 0.701 -> 0.699 against 0.699;
  L2-VIV-EI 0.662/0.421 against 0.663/0.421 -> 0.661/0.420 against
  0.661/0.420; the coupled VIV row 0.6645 / 0.6646 -> 0.6631 / 0.6625
  (standalone 0.665 -> 0.663). The L2-VIV band against MoorDyn-F,
  rerun over 150-300 s at U 0.06-0.42 m/s: mode 1 at 0.09-0.18 m/s
  within 0.2 %, mode 3 at 0.39-0.42 m/s within 1.4 %, and at 0.36 m/s
  MoorDyn-F settles in mode 2 and CableDyn in mode 3 (the earlier phase
  update gives the same branches, its A/D within 0.5 % of the new one at
  every speed, so the discrepancy predates this change); the row said
  "mode 3 at U >= 0.36 m/s within 1.2 %".
- CHANGELOG.md: the wake entry's EI = 0 frequency, the amplitude
  estimate 0.03 % -> 0.04 %, the frame entry's pipe and tow numbers as
  in the theory, and the #169 entry's largest A/D within 0.75 % ->
  0.1 % except at rho_inf 1 and 25 steps per cycle.
- tests/test_viv_frame_deck.f90 and tests/test_hermite_viv_frame.f90
  (header comments only): the measured values of their gates.

Every other quoted coupled-VIV number still holds at its precision
(the example decks' A/D 0.66, 0.82, 0.19 and 0.03, their frequencies,
the in-line and higher-harmonic gates, the wake, diameter and Thorsen
gates, the riser case). The Delta Flume case was rerun before; the
NDP case is on another branch.

Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant