Hydrodynamics in ship design