Repository navigation
Add configurable hydrostatic stiffness with paired Sphere source gate - #511
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
WEC.body(hydrostatic_stiffness=...)for a finite 6×6 WEC-Simbody.hydroStiffnessoverride in mapped-coordinate layouts. Omitted or all-zero values retain the HDF5 restoring matrix.solver="wecsim_ode4"path to one-body no-wave heave convolution. The physical implicit default is unchanged.Paired evidence
Local MATLAB R2025b ran the pinned
Free_Decay/1mmodel 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
ode4path has maximum full-duration errors of1.28e-10m and2.39e-10m/s against independent MATLAB motion, below separate1e-8source-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.