Skip to content

Add paired ellipsoid nonlinear heave dynamics - #33

Merged
cmccomb merged 3 commits into
masterfrom
ellipsoid-nonlinear-hydro
Oct 8, 2026
Merged

cmccomb merged 3 commits into
masterfrom
ellipsoid-nonlinear-hydro

Conversation

@cmccomb

@cmccomb cmccomb commented Oct 8, 2026

Copy link
Copy Markdown
Member

What changed

  • Add a focused instantaneous nonlinear-hydrodynamics mode for one pure-heave body under regular waves, configured through the public wecsim.WEC interface.
  • Integrate STL mesh buoyancy, nonlinear Froude–Krylov correction, and quadratic drag with the existing BEM excitation/radiation and PTO dynamics.
  • Capture the pinned MATLAB Nonlinear_Hydro/ode4/Regular baseline and gate mesh forces, heave motion, and PTO outputs on all 3,001 samples.

Paired evidence

On the saved MATLAB states, equilibrium mass differs by less than 2e-9 kg, buoyancy by 6e-9 N, drag by 7e-11 N, and heave excitation by 1e-6 N. The independent 150 s Python run differs by at most 5.16 mm heave, 5.86 mm/s velocity, 7.03 kN PTO force, and 7.21 kW absorbed power. MATLAB splits added mass into Simscape mass and an applied force; Python uses the combined BEM effective mass. The new mode rejects unsupported motions and sea states.

Verification

  • Paired nonlinear-hydro tests: 2 passed against pinned R2025b output.
  • Local suite: 90 passed, 93 skipped (external MATLAB artifacts unavailable in ordinary runs).
  • actionlint and git diff --check passed.

SungJun Won's original commits remain in the branch ancestry.

@cmccomb
cmccomb merged commit 0276d9e into master Oct 8, 2026
4 of 27 checks passed
@cmccomb
cmccomb deleted the ellipsoid-nonlinear-hydro branch October 8, 2026 04:30
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