Skip to content

Conversation

@jtgrasb
Copy link
Contributor

@jtgrasb jtgrasb commented May 13, 2025

This PR enables mass and buoyancy properties to vary using the variable hydrodynamics feature. Actually varying the mass requires replacing the File Solid block ("Body Properties") with the Simscape "General Variable Mass" block. This is not done in the source library and is demonstrated in the application case below. The plan is to merge this PR then finalize the applications case afterwards.

The body class is edited to include variable mass, inertia, and inertia products inputs and to include these factors (plus center of gravity) in the body.hydroforce structure. The library and docs are updated accordingly.

As of now, variable mass is not verified for NL hydro and an error message has been added.

@akeeste akeeste self-requested a review May 14, 2025 17:57
@akeeste
Copy link
Contributor

akeeste commented May 14, 2025

Library changes in this PR:

  • change the Body Properties block to use body.hydroForce.hf*.adjustedMass, "".adjustedInertia, "".adjustedInertiaProducts
  • change the hydrostatic restoring force to use body.hydroForce.hf*.centerGravity, "".centerBouyancy, "".mass, "".volume, (for both rigid and flex body)

@jtgrasb please correct or updated as needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants