Skip to content

Conversation

@kmruehl
Copy link
Collaborator

@kmruehl kmruehl commented Feb 12, 2021

This PR resolves #497 by setting cb=cg if it's not defined and adding a warning. This is true for both non-hydro bodies and drag bodies.
@nathanmtom please test with a non-hydro body case (e.g. WECCCOMP) by commenting out body.cb in the input file.
@dforbush2 please test by a drag by case by commenting out body.cb in the input file.

You should get a warning that says something like

Warning: Non-hydro body(2) center of buoyancy (cb) set equal to center of gravity (cg), [0 0 -10.9] 
> In wecSim (line 196) 

@kmruehl kmruehl added the Bug bug in WEC-Sim source, high priority label Feb 12, 2021
Copy link

@nathanmtom nathanmtom left a comment

Choose a reason for hiding this comment

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

The code updates are appropriate for adding body(ii).cb when not defined by the user.

@kmruehl kmruehl merged commit 8a47a05 into WEC-Sim:master Feb 12, 2021
@kmruehl kmruehl deleted the bug_nhBody_cb branch February 12, 2021 23:54
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.

Non-Hydro Body, define cb and dof

3 participants