Research on Real-Time Simulation System of Ship Motion Based on Simulink

Yingfei Zan1, Duanfeng Han*, 1, Lihao Yuan1, Minghao Liu1, Zhaohui Wu2
1 College of Shipbuilding Engineering, Harbin Engineering University, Harbin, 150001, China
2 Offshore Oil Engineering Co., Ltd., Tianjin, 300451, China

© 2014 Zan et al

open-access license: This is an open access article distributed under the terms of the Creative Commons Attribution 4.0 International Public License (CC-BY 4.0), a copy of which is available at: ( This license permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.

* Address correspondence to this author at the College of Ship Building Engineering, Harbin Engineering University, Harbin, 150001, China; Tel: +86-451-82519910; Fax: +86-451-82518443; E-mail:


This paper puts forward a development method of ship motion simulation system that can conduct UDP communication in real time. This system is based on Simulink in order to meet the need of modular and fast ship motion simulation systems. First, the mathematics models of ship motion are set up based on the modular ideology, which includes thruster model and models of wind, wave and current. Then, real time simulation module using S-fun function is developed, and built into executable program. This could realize real time communication between ship motion simulation system and visual simulation system and induce real time communication between ship motion system and ship simulation control system. In this way, it can save time and cost when developing the simulation system. This method has been used successfully in the development of real time simulation system of some engineering ship.

Keywords: Real time simulation, Ship motion, Simulink, UDP communication.