meshmagick.hydrostatics module

This module allows to perform hydrostatics computations on meshes

meshmagick.hydrostatics.compute_hydrostatics(mesh, cog, rho_water, grav, rotmat_corr=array([[1., 0., 0.], [0., 1., 0.], [0., 0., 1.]]), z_corr=0.0, at_cog=False, lpp=None, orig_at_ap=False)[source]
meshmagick.hydrostatics.displacement_equilibrium(mesh, disp_tons, rho_water, grav, cog=array([0., 0., 0.]), reltol=1e-06, verbose=False)[source]
meshmagick.hydrostatics.full_equilibrium(mesh, cog, disp_tons, rho_water, grav, reltol=1e-06, verbose=False)[source]
meshmagick.hydrostatics.get_hydrostatic_report(hs_data)[source]

Returns a hydrostatic report for the current configuration

Returns

Return type

str