Repository navigation
Pair OSWEC hinged body damping with local MATLAB - #614
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.
Change
Support a finite 6×6
body.linear_dampingmatrix on the moving flap of publicWEC.fixed_hingelayouts with linear hydrodynamics. The hinged solver adds it to regular-wave damping or to the convolution-wave force balance, then projects the six-component force through the nonlinear hinge Jacobian. The physical implicit solver remains the default.Paired evidence
Local R2025b ran disposable copies of the pinned OSWEC
Nonhydro_Bodyinput through 150 s: undamped and flap-damped arms at the published 0.1 s step, plus solver-only 0.025 s arms. The unchanged source arm reproduces the archived published output to roundoff. The damper changes source pitch by 0.03365 rad; its logged six-component damping term matchesD @ velocitywithin 1.1e-9 N or N m.Independent public Python passes the existing absolute OSWEC motion limits. The opt-in source
ode4path pairs both coarse trajectories to below 5e-14 rad pitch. The tighter predeclared physical-default change-from-control limits fail against coarse MATLAB (3.83 mm surge, 0.000830 rad pitch) and pass against the solver-only refined source without changing limits (0.230 mm, 0.0000500 rad). The failed coarse comparison remains documented. This is a derived setting of an already counted case, so the strict published-case count stays 52/63.Focused local checks: 32 passed. Full local suite: 825 passed, 282 skipped; combined line-and-branch coverage 88.890%, which rounds to the unchanged 89% badge. PR checks are in progress.