-
Notifications
You must be signed in to change notification settings - Fork 184
Allow zero hydro bodies resolves issue #655 #691
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@akeeste do you have an example to test this with? It could be added to the https://github.com/WEC-Sim/WEC-Sim_Applications repository. |
|
@kmruehl My seedling would be relevant, but that is several months away from becoming an application case. I could make a simplified example. Also I admit I still need to go through the documentation to update any comments requiring 1+ hydro body. I'll make this a draft PR until that is done. |
|
This PR is now ready for review. I have updated the documentation to reflect that hydro bodies are no longer required for WEC-Sim to run (though at least one type of body is, regardless of type). Application repo PR #11 contains an application case comparing a traditional Morison Element (no hydro bodies) to a WEC-Sim hydrodynamic body. I also made a minor change to the Read_WAMIT script to fix the displaced volume in cases of a bottom-fixed body. |
kmruehl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR needs to be updated based on already merged PR for non-linear hydro and morison elements here: #692. I've marked the places this needs to be updated but may have missed a few.
kmruehl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@akeeste this should be ready for a merge, but you may want to review it one more time before I merge it.
|
@kmruehl Thanks for updating this! I just reviewed one more time and things look good |
This PR updates the body logic in WEC-Sim preprocessing to allow for zero hydro bodies. This condition is required if a user wants to run a case that only contains traditional Morison Elements.
If no hydro body is used (and therefore no .h5 file is read), users must define the
waves.freqRangeandwaves.waterDepthvariables. As with the current dev branch, users must define the cg and displace volume of drag/nonhydro bodies in the input file. Checks for these conditions are updated.This resolves issue #655