Free-surface correction
For one rectangular free surface, the transverse second moment of area is:
IFS = L b3 / 12
For n equal-width longitudinal cells, the idealised total is divided by n2. The virtual rise of the ship's centre of gravity is:
FSC = ρl IFS / m = (ρl / ρsw) IFS / ∇
Here ∇ is displaced volume and m = ρsw∇. For n equal-width longitudinal cells, divide IFS by n2. Then GMeffective = GMintact − FSC. A negative result means the upright position is initially unstable in this model.
Roll model
Iroll φ̈ + c φ̇ + m g GMeff sin φ = 0
The solver uses fourth-order Runge–Kutta at a fixed time step. Roll inertia is approximated by Iroll = m k2, with an illustrative radius of gyration.
Tank geometry & assumptions
The tank has a bilge-shaped transverse section: its width grows linearly from 34% of the full breadth to the full breadth over the lower 40% of its height. The free-surface width is calculated from the chosen fill volume. A pressed-full tank has no free surface. Equal compartments are assumed to contain equal liquid levels.
Textbook constants: gravitational acceleration 9.81 m/s²; seawater density 1,025 kg/m³; fresh-water density 1,000 kg/m³. Illustrative values: vessel displacement, intact GM, tank dimensions, damping and hull proportions.
Simplifications: this is a transverse, small-angle stability teaching model, not a naval-architecture design tool. It does not calculate a full righting-arm curve, wave excitation, nonlinear hull immersion, downflooding, liquid viscosity, tank baffling losses or coupled surge/sway. The sin(φ) term extends the restoring torque visually, but the constant-GM assumption is only defensible near upright. The displayed hull is scaled and illustrative.