# Initial floating-body stability screening # Scope: Small-angle metacentric roll restoring moment with supplied GM; no hull hydrostatics. # Status: illustrative worked example; engineering review pending. # Inputs are example values. Checks are editable example requirements, not standards. mass = 100 kg metacentricHeight = 0.2 m heel = 5 deg gravity = 9.81 m/s^2 moment := mass*gravity*metacentricHeight*sin(heel) [N*m] check positive initial stability: metacentricHeight > 0 m scenario alternative: mass = 80 kg