Repository navigation
Support density-scaled body quadratic drag vectors - #503
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.
Summary
WEC.body(quadratic_drag_coefficient=..., quadratic_drag_area=...)for WEC-Sim's six-componentbody.quadDrag.cdandbody.quadDrag.areaform. The effective diagonal matrix is computed at run time as0.5 * rho * cd * area; the existing explicit 6×6 matrix remains available. Validate the paired inputs and reject unsupported joint layouts.cdandareafrom pinnedFree_Decay/1m.Evidence
0.5 * rho * cd * area * v * abs(v)within2.45e-9N. Independent public Python heave and speed differ from MATLAB by at most0.0289mm and0.0377mm/s, below predeclared0.1mm and0.1mm/s gates.rho=1025. The input/model/HDF5/output hashes and reproduction command are recorded in the fixture README.Local verification
python -m pytest -q tests/test_sphere_quadratic_drag_parity.py tests/test_sphere_quadratic_cd_area_parity.py tests/test_case_dynamics.py tests/test_pto_connections.py: 42 passed.python -m compileall -q wecsimandgit diff --check: passed.