Skip to content

Pair OSWEC hinged body damping with local MATLAB - #614

Merged
cmccomb merged 1 commit into
masterfrom
parity/oswec-hinge-body-damping
Oct 20, 2026
Merged

cmccomb merged 1 commit into
masterfrom
parity/oswec-hinge-body-damping

Conversation

@cmccomb

@cmccomb cmccomb commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

Change

Support a finite 6×6 body.linear_damping matrix on the moving flap of public WEC.fixed_hinge layouts 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_Body input 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 matches D @ velocity within 1.1e-9 N or N m.

Independent public Python passes the existing absolute OSWEC motion limits. The opt-in source ode4 path 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.

@cmccomb
cmccomb merged commit 4930ea8 into master Oct 20, 2026
21 of 22 checks passed
@cmccomb
cmccomb deleted the parity/oswec-hinge-body-damping branch October 20, 2026 14:21
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