Skip to content

Conversation

@jtgrasb
Copy link
Contributor

@jtgrasb jtgrasb commented Feb 13, 2025

This PR adds a function that makes sure BEM directions span 360 degrees for passive yaw and full directional spectra cases. This prevents extrapolation from occurring.

As of now, if users are using a full directional spectrum with MCR, simu.reloadH5Data needs to be set to 1. This is because I am adding elements to the hydroData structure and it will try to add them again if it is not reloading H5. Open to suggestions on this if there is a better way.

@kmruehl kmruehl added Bug bug in WEC-Sim source, high priority Body Class Body Class (bodyClass.m) labels Feb 19, 2025
@jtgrasb jtgrasb requested a review from akeeste February 24, 2025 21:19
@jtgrasb jtgrasb marked this pull request as ready for review February 24, 2025 21:19
Copy link
Contributor

@akeeste akeeste left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jtgrasb
To make this compatible with simu.reloadH5Data=1, bodyClass.makeSpanNeg180To180 could update the hydroData direction instead of hydroForce direction, then that change is retained for subsequent MCR runs.

Given that makeSpanNeg180To180 now contains error messages related to full 360 directional coverage, I removed a duplicate message.

see jtgrasb#18

akeeste and others added 3 commits February 26, 2025 11:33
clean up and make compatible with not reloading hydrodata
@jtgrasb
Copy link
Contributor Author

jtgrasb commented Feb 26, 2025

@akeeste Thanks for the comments and changes! Changing the hydroData directions makes sense, and I merged your PR into this one and tested everything locally to confirm it is still working as expected. Ready to merge once the tests pass as I see it.

@akeeste akeeste self-requested a review February 27, 2025 15:37
@akeeste akeeste self-assigned this Feb 27, 2025
@akeeste
Copy link
Contributor

akeeste commented Feb 27, 2025

@jtgrasb great! tests are passing. merging...

@akeeste akeeste merged commit 0e924fe into WEC-Sim:dev Feb 27, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Body Class Body Class (bodyClass.m) Bug bug in WEC-Sim source, high priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants