Skip to content
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

explicit buoyancy/gravity #53

Merged
merged 19 commits into from
Mar 2, 2022

Conversation

cmichelenstrofer
Copy link
Member

@cmichelenstrofer cmichelenstrofer commented Feb 21, 2022

Description

Fixes #49 by changing the f_add argument for the WEC class to be a dict (user can also pass a function handle, which will get stored as f_add = {'f_add': argument_from_user}). This allows for automate post-processing so that each f_add entry can be plotted in the frequency and time domain.

Checklist for PR

@ryancoe ryancoe self-assigned this Feb 21, 2022
@ryancoe ryancoe changed the title add mesh and volume properties explicit buoyancy/gravity Feb 21, 2022
@ryancoe
Copy link
Collaborator

ryancoe commented Feb 21, 2022

@cmichelenstrofer - I think I have the source updated appropriately. Last key step is to write a test to check that you can have a body that is not neutrally buoyant but that can be stabilized by including the appropriate entries in f_add.

@cmichelenstrofer cmichelenstrofer added the enhancement New feature or request label Feb 22, 2022
@ryancoe
Copy link
Collaborator

ryancoe commented Feb 26, 2022

This documentation build error is related to https://doi.org/10.2172/1330189, which should point to https://www.osti.gov/biblio/1330189-advanced-wec-dynamics-controls-fy16-testing-report. I think OSTI is may just having a problem this morning. I really prefer to use the DOI URL, so let's give it a bit and see if it resolves.

EDIT: looks like many (all?) of OSTI's DOI links are broken, so I expect this will get fixed pretty quickly

@ryancoe
Copy link
Collaborator

ryancoe commented Feb 28, 2022

Per conversation w. @cmichelenstrofer, @ryancoe will add documentation on this. Will work on example (#61) later.

@ryancoe ryancoe marked this pull request as ready for review February 28, 2022 22:31
Copy link
Member Author

@cmichelenstrofer cmichelenstrofer left a comment

Choose a reason for hiding this comment

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

Looks good! Documentation builds, tutorials run, tests pass. I even learned a few new Python tricks (callable, Mappable, Optional). The only comment is to add another sentence to the documentation about restoring moments.

Also, because this is in my fork, I cannot approve it.

@ryancoe ryancoe merged commit b2198d0 into sandialabs:main Mar 2, 2022
@cmichelenstrofer cmichelenstrofer deleted the explicit_buoyancy_gravity branch March 2, 2022 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Explicitly consider buoyancy vs. gravity
2 participants