Skip to content

Add configurable hydrostatic stiffness with paired Sphere source gate - #511

Merged
cmccomb merged 1 commit into
masterfrom
feature/body-hydrostatic-stiffness
Oct 17, 2026
Merged

cmccomb merged 1 commit into
masterfrom
feature/body-hydrostatic-stiffness

Conversation

@cmccomb

@cmccomb cmccomb commented Oct 17, 2026 •

Copy link
Copy Markdown
Member

What changed

  • Add WEC.body(hydrostatic_stiffness=...) for a finite 6×6 WEC-Sim body.hydroStiffness override in mapped-coordinate layouts. Omitted or all-zero values retain the HDF5 restoring matrix.
  • Extend the opt-in public solver="wecsim_ode4" path to one-body no-wave heave convolution. The physical implicit default is unchanged.
  • Add a pinned, derived 40 s Sphere source fixture, paired CI test, provenance, plot, and parity-ledger entry. Published-case badges stay unchanged.

Paired evidence

Local MATLAB R2025b ran the pinned Free_Decay/1m model with only the heave stiffness changed from 770,389.11 to 1,155,583.665 N/m. The source trajectory differs from the published control by up to 0.937 m, so the override is active.

The predeclared default implicit limits of 0.12 mm heave and 0.16 mm/s speed failed: maximum errors were 0.199 mm and 0.356 mm/s. The new opt-in source ode4 path has maximum full-duration errors of 1.28e-10 m and 2.39e-10 m/s against independent MATLAB motion, below separate 1e-8 source-numerical gates. The failed default limits are recorded in the fixture README and parity ledger.

Focused local tests: 23 passed across the changed Sphere, passive-yaw, and RM3 source-solver paths. The CI-equivalent local suite passed: 694 passed, 288 skipped, with combined line-and-branch coverage 88.274% (badge remains 88%). Merge only after all PR checks pass.

@cmccomb
cmccomb merged commit 4c00646 into master Oct 17, 2026
17 checks passed
@cmccomb
cmccomb deleted the feature/body-hydrostatic-stiffness branch October 17, 2026 21:55
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