Skip to content

Conversation

@akeeste
Copy link
Contributor

@akeeste akeeste commented Jan 12, 2023

In their equilibrium position, the principal inertial axes of a body are not necessarily aligned with WEC-Sim's global coordinate system. Allowing products of inertia to be defined would make the inertia calculation much easier for users with highly irregular, asymmetric or angled bodies. Adding this feature involves:

  • adding a body class property inertiaProducts and linking it to Simscape in the body library
  • adding inertiaProducts to the added mass adjustments
  • documenting the proper convention for products of inertia.

I chose to match Simscape's convention for the product of inertia calculation. Some CAD, like Solidworks, use a negated convention.

This addresses project card https://github.com/WEC-Sim/WEC-Sim/projects/58#card-86097325 and issue #952

@kmruehl kmruehl requested a review from salhus January 25, 2023 15:24
@salhus
Copy link
Contributor

salhus commented Feb 8, 2023

@akeeste Sorry I didn't merge this sooner. I checked the code, and I think this can be merged.

@salhus salhus merged commit fbeb79f into WEC-Sim:dev Feb 8, 2023
@akeeste akeeste deleted the inertiaProducts branch March 27, 2023 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants