Skip to content

Conversation

@akeeste
Copy link
Contributor

@akeeste akeeste commented Nov 13, 2024

This PR resolves #1368. See discussion for details

In the PTO library:

  • redefine forceInternalMechanics to be F_total - F_actuation - F_constraint
  • redefine powerInternalMechanics to use the new forceInternalMechanics and the velocity signal

This PR does not yet remove powerInternalMechanics, though I think that is a worthwhile discussion per my comment in #1368

@MShabara
Copy link
Contributor

It makes sense to calculate the internal PTO force based on the equation provided, I tested the modification and it works fine. I will go ahead and approve merge the PR

@MShabara MShabara merged commit 2c12e29 into WEC-Sim:main Nov 13, 2024
@akeeste akeeste deleted the ptoPower_bugfix branch November 14, 2024 16:26
akeeste added a commit that referenced this pull request Nov 14, 2024
Pull bugfixes #1369 and #1362 from main to dev
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.

ptoInternalMechanics incorrect when a PTO has non-zero pretension or equilibrium position

2 participants