Skip to content

Conversation

@akeeste
Copy link
Contributor

@akeeste akeeste commented Oct 30, 2024

If two bodies are connected by a cable and the bodies are allowed to move past each other, there's a possibility that the displacement of the cable's translational PTO can be negative. This PR updates calcCableTension.m to account for this by calculating tension with the absolute value of the displacement between the cable end points.

Also adds a test for calcCableTension under various normal and edge cases.

@kmruehl kmruehl requested a review from dforbush2 October 31, 2024 16:52
@kmruehl kmruehl added the Cable Class Cable Class (cableClass.m) label Oct 31, 2024
@dforbush2
Copy link
Contributor

This is good. Ready to merge.

@dforbush2 dforbush2 merged commit 1c62b6d into WEC-Sim:dev Dec 11, 2024
@akeeste akeeste deleted the cable_updates_for_OMT branch December 11, 2024 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Cable Class Cable Class (cableClass.m)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants