Skip to content

Conversation

@nathanmtom
Copy link

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 exist function 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 the isfield function to check if the mean drift fields are present in the hydro structure.

nathanmtom added 2 commits February 23, 2022 15:31
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.
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.

@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.
@nathanmtom
Copy link
Author

@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.

@akeeste
Copy link
Contributor

akeeste commented Feb 24, 2022

@nathanmtom Strange! I looks good now though. The PR into dev looks good too

@akeeste akeeste added the Bug bug in WEC-Sim source, high priority label Feb 24, 2022
@kmruehl kmruehl merged commit b71d7b7 into WEC-Sim:master Feb 24, 2022
@kmruehl
Copy link
Collaborator

kmruehl commented Feb 24, 2022

Thanks @nathanmtom

@nathanmtom nathanmtom deleted the Update-to-Normalize-to-handle-sorting-mean-drift-forces branch February 25, 2022 21:36
kmruehl added a commit that referenced this pull request Mar 16, 2022
* 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>
H0R5E added a commit to H0R5E/WEC-Sim that referenced this pull request Mar 17, 2022
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug bug in WEC-Sim source, high priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants