Numerical modelling of propulsion, control and ship motions in 6 degrees of freedom