Theoretical and numerical investigation on ship motion and propulsion in marine engineering