Skip to content

fix: one slow strain at a Syrope rope's running maximum - #191

Merged
SMI-Lab-Inha merged 1 commit into
devfrom
fix/syrope-flat-band
Nov 25, 2026
Merged

SMI-Lab-Inha merged 1 commit into
devfrom
fix/syrope-flat-band

Conversation

@SMI-Lab-Inha

Copy link
Copy Markdown
Owner

Summary

A Syrope rope at its running maximum had a band of slow strains, up to 9e-7 wide on the shipped 30-row table, over which its recovered mean tension did not change. Every slow strain of the band was a rest point, so a static start took the one its rounding chose. Two starts of composite_chain_syrope_chain whose tensions agreed to 1e-10 put all 40 elements at one edge of the band, or 20 at each edge, and the runs differed by 3.8e-5 to 2.3e-4 of the channel maxima, more at finer time steps.

Cause

On the OWC the kernel recovered the mean tension by interpolating the slow strains of the table rows. The top sample of the working curve used the exact fast-spring strain at Tmax. The two differ by the fast spring's curvature over a row.

Implementation

  • owc_tension_at_slow is the exact inverse of eps_owc(T) - eps_fast(T). The residual of a row is convex in T and its chord rises, so Newton from the row's upper end falls monotonically to the root.
  • CD_Syrope_Branch_Divider is the exact slow strain at Tmax, and the working curve's top sample is the divider to the bit.
  • The tangent on the OWC is the exact one (owc_tension_slope).
  • The check at init compared the slow strains of the row ends only. A row steeper than the fast spring at its start has increasing ends and no inverse, so it now stops with a named error (new case in case_fail_closed).

Effect on results

  • Ropes loaded along their OWC change by about the size of the former interpolation error: 1.4e-4 on the composite examples. syrope_polyester_mooring is unchanged.
  • On the OWC the recovery differs from MoorDyn's, which interpolates the rows. On the working curve, and for a length change at rest, the kernel keeps MoorDyn's tension. The syrope_hydro comparison with MoorDyn-C is unchanged to the printed digits.

Evidence

The former program converges to the new one as its table is refined, and the new one does not change:

Rows of the same OWC Former program against the new one New program against itself
x1 1.4e-4 0
x4 5.2e-6 0
x16 9.5e-7 0
x64 9.5e-8 0

Two starts now agree to 4e-8 at every step size (0.05, 0.025 and 0.0125 s).

Checks

  • New case case_branches_join (syrope): at 200 running maxima the branches meet at one slow strain, the OWC returns Tmax there to 8e-16, the tension changes on both sides, and eight times the rows differ by 9e-16.
  • The syrope OWC references are recomputed by bisection in Python. The syrope_control oracle inverts the OWC by bisection.
  • Fast tier: 347 of 347. Debug build with run-time checks: 8 of 8 Syrope tests.

The Syrope kernel recovered the mean tension on the OWC by interpolating
the slow strains of the table rows, while the working curve's top sample
used the exact fast-spring strain at the running maximum. Between the two
(up to 9e-7 of strain on the shipped 30-row table) the recovered tension
did not change, so every slow strain of that band was a rest point of a
rope at its running maximum. A static start took the one its rounding
chose: two starts of the composite example whose tensions agreed to 1e-10
put all elements at one edge of the band, or half of them at each, and
the runs differed by 3.8e-5 to 2.3e-4 of the channel maxima, more at
finer time steps.

The OWC recovery is now the exact inverse of eps_owc(T) - eps_fast(T)
(Newton from the row's upper end, monotone because the residual is convex
in T), and the working curve's top sample is the divider to the bit. Two
starts then agree to 4e-8 at every step size, and the result no longer
depends on the spacing of the OWC rows. The former program converges to
it as its table is refined: 1.4e-4, 5.2e-6, 9.5e-7 and 9.5e-8 at 1, 4, 16
and 64 times the rows.

On the OWC the recovery differs from MoorDyn's, which interpolates the
rows; on the working curve and for a length change at rest the kernel
keeps MoorDyn's tension.

The inverse needs the slow strain to rise along the whole row. The check
at init compared the row ends only, so a row steeper than the fast spring
at its start now stops with a named error.

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 25, 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-25T09:02:28.818227Z 798e1d0 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 #36155064 | 📁 Comparing 798e1d0 against latest (ac5809f)

  🔍 Preview build  

1 file changed
± changelog.html

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: 798e1d0b81

ℹ️ 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 27d5856 into dev Nov 25, 2026
16 checks passed
@SMI-Lab-Inha
SMI-Lab-Inha deleted the fix/syrope-flat-band branch November 30, 2026 01:51
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