Skip to content

Conversation

@akeeste
Copy link
Contributor

@akeeste akeeste commented Sep 6, 2022

This PR enables users to input custom DOFs into plotBEMIO and the other BEMIO plotting functions (plotAddedMass, plotRadiationDamping, etc).

This allows users to easily visualize sway, roll, yaw or GBM modes. The plotBEMIO function will use surge, heave, pitch by default if no DOF list is input. If called individually, the BEMIO plotting functions need a dofList variable defined, e.g.:

plotAddedMass([1 3 5 7],hydro,hydro,hydro)
plotAddedMass(1,hydro)

Other ways to further expand this could be enabling:

  • off-diagonal added mass and damping terms, [1 3], [3 5], ...
  • non-0 wave headings

@akeeste akeeste added the Feature new feature request label Sep 6, 2022
@kmruehl kmruehl added the BEM/BEMIO related to BEMIO or BEM hydro data label Sep 7, 2022
@kmruehl kmruehl requested a review from dforbush2 September 7, 2022 14:47
@dforbush2
Copy link
Contributor

Does what it says on the can. Handy feature. Only confusion is over how the multi DOF correspond to the hydro structures that come after. One line of documentation and feel free to merge this.

@dforbush2
Copy link
Contributor

I actually have immediate need for enhancement #1, allowing plotting of off diagonal terms. with your permission I can implement this? If you'd prefer this be a separate PR no problem.

@dforbush2
Copy link
Contributor

Actually! hold off on merge please. I will need to get push access to make some very minor mods. The "for" loop indexing was unintentionally Python-style in a few places.

I also added the changes to allow plotting of off diagonals as well

@dforbush2
Copy link
Contributor

This is ready to merge now.

@akeeste akeeste merged commit 2d6588e into WEC-Sim:dev Sep 13, 2022
@akeeste akeeste deleted the plotBEMIO branch September 13, 2022 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BEM/BEMIO related to BEMIO or BEM hydro data Feature new feature request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants