-
Notifications
You must be signed in to change notification settings - Fork 161
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
BEMIO Cleanup #790
BEMIO Cleanup #790
Conversation
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.
Thanks Adam, LMK if you have any questions
@kmruehl I made the requested changes, namely:
|
|
@kmruehl Thanks for discussing yesterday. I made the latest suggested changes, namely:
|
11b8d52
to
cc92f64
Compare
* Fix AQWA data for sphere, ellipsoid, and WEC3 * working on compare BEM hydro data * combined added mass BEM * compare added mass complete * removing duplicate files * updating plot radiation damping * updating plot radiation irf * updating plot exc mag * updated plot excitation phase and irf * updated plot bemio scripts * reverting bemio examples * updating plot functions to camelCase * resolving conflicts * updating compare plots for multiple body wecs * extending plotAddedMass to multiple hydro datasets * extending plotRadDamping to multiple hydro datasets * adding extensible plot rad irf * adding exc mag and phase * updaing exc irf plot for mult bemio results * resolve radiationIRF SS bug * cleaning up compareBEM * resolving nested varargin for plotAddedMass * resolving nested varargin for all plots * nested varargin bug resolved * updating compareBEM to camelCase * resolving plotExcIRF bug * removing pngs Co-authored-by: jtgrasb <jtgrasb@sandia.gov> Co-authored-by: Adam Keester <72414466+akeeste@users.noreply.github.com>
@kmruehl I have finished the last clean up items on this PR. Everything seems to be working now and all tests pass locally. I went through all the files changed and don't see anything unintentional. I'm happy with merging this PR and then working on new tests/documentation separately. |
@akeeste I'll review this again and merge it. I can work on updating the tests, if you want to work on the documentation updates. We can work off the same PR though, I'll open one and tag you in it once this is merged. |
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.
Note to self, double check the waveNumber calculation for shallow, deep and intermediate water
@akeeste thanks! I'll leave it to you to delete your own branch if you like. |
This sounds good. Wednesday before seeing this I started on reorganizing these tests to be more efficient. Let me know when you start and we could use that branch as a jumping off point https://github.com/akeeste/WEC-Sim/tree/bemioTestDocs |
@akeeste I already updated the tests in this PR. However, I did not restructure them, I just added a test for the new plot feature. If you'd like to submit your restructured tests as a PR, feel free to. |
@kmruehl Okay got it. I'll submit some restructuring when I update BEMIO documentation. I'm hoping to hold on to the wamit/nemoh/other hydrodata whenever it is read in to save time. |
This scripts completes the BEMIO cleanup project board task:
updates after review:
writeH5
towriteBEMIOH5
to prevent confusion with matlab functionsH5CreateWriteAtt
towriteH5Parameter
since it creates a variable, writes values, and defines attributesbemio.m
and replaced it with a shortREADME.md
pointing to the examples/BEMIO casesnormalizeBEM.m
, it is general nowloadH5
function since it replicates a lot of what the built inh5read
does. The only purpose it served for us was to reverse the order of the dimensions upon reading from the h5 file. I'm not sure why this is necessary, but I created a short utility function that will does this same thing after usingh5read
updates building on Kelley's compareBEMIO PR into this fork:
plotBEMIO
, resolve issues with nested varargin functionsvarargin
for simplicityplotBEMIO
for two different Sphere BEM runsFuture Task --> project board