Add VGOSWEC capture-efficiency sweep/plot workflow (VGM-0/10/20/45/90, T=2–7 s) - #32
Merged
Merged
Conversation
Copilot
AI
changed the title
[WIP] Compute and plot capture efficiency for VGOSWEC flap-angles
Add VGOSWEC capture-efficiency sweep/plot workflow (VGM-0/10/20/45/90, T=2–7 s)
Jul 9, 2026
salhus
marked this pull request as ready for review
July 9, 2026 22:12
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.
This PR adds a dedicated capture-efficiency analysis path for tuned
exc_ff_pidacross all five VGOSWEC flap variants on a sharedT=2.0..7.0 sgrid, withη(T)=P_capture(T)/P_opt(T)and explicit reactive-limited masking whereP_optis undefined.New analysis driver (
scripts/capture_efficiency_sweep.py)vgoswec_{0,10,20,45,90}_exc_ff_pid.yaml), no gain retuning.P_capture(T)as steady-state mean absorbed power from the second half of each run.analysis/capture_efficiency_VGM{0,10,20,45,90}.csvwith:T_s, omega_rads, P_capture_W, P_opt_W, B55_Nmsrad, F_exc_Nm, eta, masked.analysis/figures/capture_efficiency_VGM{...}.png,capture_efficiency_summary.png.--plot-onlyto regenerate figures from committed CSVs.Hydrodynamic
P_optimplementationbody1/hydro_coeffs/radiation_damping/components/5_5body1/hydro_coeffs/excitation/magat DOF5 (index 4), direction 0B55 = B55_norm * rho * omega|F_exc| = mag * rho * g * A, withA = 0.014 m(H=0.028 m)P_opt = |F_exc|^2 / (8*B55)only where defined.Reactive-limited masking and presentation
B55 <= 1e-4(includes non-positiveB55), setsP_opt/etaundefined there.B55 → 0).Documentation updates
analysis/README.md: method, formulae, CSV schema, masking rationale, regeneration commands, VGM-0 caveat.docs/CONTROLLERS.md: capture-efficiency sweep section aligned with H5 source/de-normalization/masking conventions.