-
Notifications
You must be signed in to change notification settings - Fork 184
Update to normalize to handle sorting mean drift forces #808
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
Update to normalize to handle sorting mean drift forces #808
Conversation
Insert descriptive text so people reading the commit history can quickly identified what files were changed.
Pull Master into Nathan's Branch
There are three other instances where the function exist was replaced with isfield.
With changes to Normalize the mean drift forces from NEMOH were being normalized by rho and g twice. For consistency with using the normalize.m function removing the normalization from Read_NEMOH.m.
akeeste
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.
@nathanmtom Good catch on this.
Only request, can you remove the examples/RM3/wecSimInputFile.m from your PR? Otherwise it looks good
Not sure why this was changed, but reverting back to the example wecSimInputFile.m in hopes of eliminating this change.
|
@akeeste That is really strange as in my Github Desktop there is no mention of pushing a change to wecSimInputFile.m. But, I have reverted the wecSimInputFile.m to how it should be in the master branch and is now no longer coming up as a changed file. |
|
@nathanmtom Strange! I looks good now though. The PR into dev looks good too |
|
Thanks @nathanmtom |
* Update Read_AQWA (#761) * Update Read_AQWA Testing FIles Troubleshoot effort * Fix added mass reading * Update RM3 AQWA Example * renaming directory to RM3 for consistancy Co-authored-by: kmruehl <kmruehl@sandia.gov> * bugfix updating RM3 AQWA directory in test * Update to normalize to handle sorting mean drift forces (#808) * Update wecSimInputFile.m Insert descriptive text so people reading the commit history can quickly identified what files were changed. * Update Normalize.m to have correct sorting of the mean drift force coefficients. * Update Normalize.m There are three other instances where the function exist was replaced with isfield. * Update Read_NEMOH.m With changes to Normalize the mean drift forces from NEMOH were being normalized by rho and g twice. For consistency with using the normalize.m function removing the normalization from Read_NEMOH.m. * Update wecSimInputFile.com Not sure why this was changed, but reverting back to the example wecSimInputFile.m in hopes of eliminating this change. * Add workflow for triggering WEC-Sim_Applications CI * Solving conflict with pots processing script * Solve conflicts * Excluding files that were not change in the PR * Revisions prior to merge * Revised names for PTO-Sim variables Co-authored-by: jtgrasb <87095491+jtgrasb@users.noreply.github.com> Co-authored-by: kmruehl <kmruehl@sandia.gov> Co-authored-by: nathanmtom <nathan.tom@nrel.gov> Co-authored-by: Mathew Topper <damm_horse@yahoo.co.uk>
* Update Read_AQWA (WEC-Sim#761) * Update Read_AQWA Testing FIles Troubleshoot effort * Fix added mass reading * Update RM3 AQWA Example * renaming directory to RM3 for consistancy Co-authored-by: kmruehl <kmruehl@sandia.gov> * bugfix updating RM3 AQWA directory in test * Update to normalize to handle sorting mean drift forces (WEC-Sim#808) * Update wecSimInputFile.m Insert descriptive text so people reading the commit history can quickly identified what files were changed. * Update Normalize.m to have correct sorting of the mean drift force coefficients. * Update Normalize.m There are three other instances where the function exist was replaced with isfield. * Update Read_NEMOH.m With changes to Normalize the mean drift forces from NEMOH were being normalized by rho and g twice. For consistency with using the normalize.m function removing the normalization from Read_NEMOH.m. * Update wecSimInputFile.com Not sure why this was changed, but reverting back to the example wecSimInputFile.m in hopes of eliminating this change. * Add workflow for triggering WEC-Sim_Applications CI * Solving conflict with pots processing script * Solve conflicts * Excluding files that were not change in the PR * Revisions prior to merge * Revised names for PTO-Sim variables Co-authored-by: jtgrasb <87095491+jtgrasb@users.noreply.github.com> Co-authored-by: kmruehl <kmruehl@sandia.gov> Co-authored-by: nathanmtom <nathan.tom@nrel.gov> Co-authored-by: Mathew Topper <damm_horse@yahoo.co.uk>
This pull request edits the Normalize.m to implement the correct sorting of the mean drift forces (if present). In the current implementation, Normalize.m uses the
existfunction to see if the mean drift field is present within the hydro structure; however, this does not appear to work as desired and have updated to check theisfieldfunction to check if the mean drift fields are present in thehydrostructure.