This invention discloses a
simulation method and
system for ship berthing and unberthing maneuvering considering the combined effects of wind and
waves. The method establishes a body-dependent coordinate
system with the ship's center of gravity as the origin, constructs three-degree-of-freedom motion equations for the ship's sway, roll, and bow roll in the horizontal plane, and couples the ship's
hydrodynamic forces,
propeller forces,
rudder forces, bow thruster forces, wind loads, current loads, and wave drift forces into the
state model. Wind loads are calculated using the wind pressure coefficient method, current loads using the current pressure coefficient method, and wave drift forces are obtained through
frequency domain integration of the random wave spectrum and the drift force
transfer function. Based on the aforementioned maneuvering forces and environmental forces, the
state vector is solved iteratively using the fourth-order Runge-Kutta method, updating the ship's position coordinates, heading angle, and velocities in each direction in real time, and outputting the time histories of environmental forces and maneuvering forces to support berthing and unberthing maneuvering decisions. This invention features complete environmental
load modeling, high numerical solution accuracy, and a
modular system structure, demonstrating good
engineering applicability.