Repository navigation
release: CableDyn 0.5.0 - #199
Conversation
A Syrope line starts from per-element secant stiffnesses iterated to the rest curve. Each update contracts by 1 - secant/tangent. A rope whose rest tension is a small part of its past one (a SYROPE IC Tmax0 well above the installed tension) has secants far below the tangent along the whole line, so every element contracts slowly at once, and the element steps cannot see the strain the elements share. The start then ran out of its 50 iterations: a 644 m rope stopped at 1.2e-10 against 1e-10. From iteration 30 on, the next secants are the combination of the last six solves of the whole line that minimises the relative residual of the tension update (Anderson acceleration), kept only while every secant stays within half to twice the newest one; otherwise the element steps stand. Convergence is still tested on the unmodified tension update, and a line that settles in fewer iterations is unchanged. The regression case is a 60-element rope on a linear working curve at four past tensions. Three of them fail without the change. Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
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>
A single-section Syrope line takes its first secant from the strain of its chord, and it was refused as slack where that strain lay below the zero-tension strain of its SYROPE IC working curve, or where the chord was shorter than the line. Neither makes it slack: the sag of its weight stretches it further. Such a line now starts as a composite line does, from the curve's alpha, and the iteration takes it to its rest curve. An element without tension at the end of the solve still stops the start by name. Nine ropes of 39 kN to 236 kN, three of them longer than their chord and the rest with a chord strain under or near the zero-tension strain, agree with an independent elastic catenary to 3.4e-6 once the seabed is out of reach, and a still run keeps its fairlead tension to the printed digits. Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
A coupled run now stops at initialisation when SeaState's wave grid cannot carry the waves to the cable: line nodes outside the grid, or a grid with two points across an axis (NX or NY = 2) under an oblique, spread or short-crested sea. With externally supplied kinematics (WaveMod 6) a coarse axis is judged from the supplied WaveVel and WaveAcc, which must not vary across it. waveGridCheck warn in the CableDyn options turns the stop into a single warning. The rules live in CableDyn_WaveGrid with unit tests, and the coupled guard script checks each stop and pass case against a built OpenFAST. Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
A workflow_run workflow reruns the jobs of a failed fortran, python or wheels run that GitHub never started because no hosted runner was acquired (the macOS arm64 pool runs short; such a job is cancelled after about 15 minutes, having run nothing). .github/scripts/rerun_unacquired.sh judges every job by its latest execution over all attempts: when all the failed ones went unacquired it reruns them, when another failed on its own it reruns only the first unacquired job and leaves the failure standing. A job that ran and failed is never rerun; reruns stop at the fourth attempt. It acts once it reaches the default branch. Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
python_package ran pytest in the build folder, where an in-memory deck (DeckFile.from_text) takes its side files from and where wavekin_modes writes wave_frequencies.txt; under ctest -j the parity test could read a half-written file. The suite now runs in build/python_package_cwd, which no test writes into. Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
…ce record (#194) OPTIONS SEASTATE_SPECTRAL WaterKin: in OpenFAST the lines evaluate SeaState's own first-order wave components at the line nodes, with no grid. SeaState's conventions are reproduced (phase, normalisation, Nyquist weight, finite-depth transfer, every stretching mode, CurrMod 1 current). waveKinTol (default 1e-6) drops per node the components whose velocity and acceleration variances stay within that fraction at every depth the node reaches; the dropped variances go to <root>.CD.wavekin.out. Unsupported SeaState options stop with a named message. The grid routes are unchanged, bit for bit. Every OpenFAST, FAST.Farm and standalone run writes a provenance record, <RootName>.CD.provenance.json (schema cabledyn.provenance/1). Validated against converged SeaState grids, std 1 %, DEL 2 %, p99 3 %: DLC 1.2 shortest Tp, 3600 s: worst tension std 0.21 %, curvature std 0.51 %; the same sea at 30 deg, 1200 s, against a grid cut at the 1e-5 decay ratio: worst tension std 0.30 %, curvature std 0.41 %. Both reference grids agree with their halving to 0.000 %. Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
…mple time (#197) CD_UpdateStates samples the wave field at the end of the mooring interval, but read the node positions of its start, the last commit: on the grid route every node took its kinematics one CableDyn step behind it (a phase error of k v dtM). The grid route now samples at each node's committed position advanced to the sample time by its velocity over the last two commits (CD_WaveGrid_Advance), as the node-wise route does. The history travels in the checkpoint, so a restart continues bit for bit. The wave-grid guard, its report and the provenance record read the positions sampled. Grid-route results change at the level of the lag: within 0.001 % in std on the r-test chain mooring and on a chain and lazy-wave cable mooring at dtM 0.0125 s; on an operating IEA-15 MW in turbulent wind, 200 s statistics move by up to 1.4 %, below the 4 % between the single-precision release exe and the gfortran build on the same deck. Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
…d output transfer (#198) In OpenFAST, CD_CalcOutput takes the optional CalcWriteOutput argument that OpenFAST passes to AeroDyn and BeamDyn; integration patch 0009 passes WriteThisStep (or Linearize), so the deck channels are evaluated only at the steps OpenFAST writes. The loads are evaluated on every call. The nodal-twist residual no longer forms the Hessian of the torque-tension coupling term, and assemble_twist reuses an element's reference twist when every input it reads is bitwise the same (a memo away from the rigid ends). Every output call moves only the fairlead end, so all other elements hit. Operating IEA-15 MW, chains and a lazy-wave cable with nodal torsion, DT 0.0125 s, 400 s: 10.83 -> 8.84 min of CPU time against dev. The .out, .CD.out and .lin data are identical to dev, bit for bit, also supercycled and after a checkpoint restart. Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
Set the version to 0.5.0 (2026-12-04) in the build, the Fortran banner, the OpenFAST module, the C API (0.5.0, ABI 1 unchanged) and its header, the Python package and CITATION.cff, and date the CHANGELOG section. The release note of the documentation front page names what 0.5.0 changes: the node-wise SeaState wave route, the stopping wave-grid guard, the grid sampled at the nodes' sample-time positions, the provenance record, the cheaper coupled runs with the nodal twist, and the Syrope starts. Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
Holcombe and Bergdahl rerun with the 0.5.0 GNU Release build. Both reproduce their summaries, metrics, refinement figures and the hashed Holcombe static profiles byte for byte; provenance.json names the release, the date and the executable. The Bergdahl waveform comparison still stands from the 0.3.0 run. The bodies suite passes all 102 metrics with the same build. Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
📖 17 files modified
Preview · build overview · CableDyn · built Dec. 4, 2026, 12:13 a.m. UTC |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d41ecd2ee1
ℹ️ 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".
CableDyn checks NX or NY = 2 under a sea that varies along that axis only when a line node samples the water (check_wavefield_resolution returns when none does). The pre-flight checker stopped on it whatever the line positions, so a case whose line ends all lie above the still-water level exited 1 although CableDyn would run. It now stops only when a line end is in the water; with every end above it, it notes the coarse axis and that CableDyn stops only if a line node between the ends is in the water. The test adds that case (30 deg sea, NY = 2, every line end above the water): exit 0 with the note. Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
|
@codex review |
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
validation/RELEASE_0_5_0.md: the source and pins, the toolchains, the test gates of the release tree, the Windows executable gates, the clean-machine check on the preflight and the final assets, and the hashes of the final assets (release workflow run 47225769640) and of the PyPI preflight distributions (run 47227353390). Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
CableDyn 0.5.0
devsince v0.4.3: #190 to #198. After review,mainis fast-forwarded to this branch, taggedv0.5.0, and the release is published from the tag.What the release changes
OPTIONS SEASTATE_SPECTRAL WaterKinevaluates SeaState's own wave components at the line nodes, with no grid over the lines.cabledyn.provenance/1).NX/NY= 2 across a varying sea, now stops.waveGridCheck warnrestores the warning.Commits on this branch
a0d93fdCITATION.cff; dated CHANGELOG; release note of the manual's front paged41ecd2Gates
validation_records, needs provenance records that name the release and passes on this tree. 0 compiler warningsopenfast.exe(single) and the GNU double builda0d93fd)openfast.exe -vnamesOpenFAST-v5.0.0-CableDyn-0.5.0PATH)CompMooring = 5runs (70 s JONSWAP mixed chains + cable, 400 s line failure, restart from 30 s bit-identical over 400 rows, restart between two mooring steps at 30.025 s bit-identical over 198 rows); the pure Python wheel in a new conda environment imports as 0.5.0 and drives the release drivera0d93fd)release/smoke_test_wheel.pyin a new conda environment: library and driver load, build x86-64-v3The final assets are being rebuilt on
d41ecd2, which has the same sources. The release recordvalidation/RELEASE_0_5_0.mdfollows with their hashes.