研究船舶海浪中运动的可视化技术。通过采用船舶在海浪中运动的可视化技术,可以使船舶设计人员能够更直观地了解船舶的运动性能。采用具有平台独立性的OpenGL图形库对船舶在波浪中运动的可视化进行描述,讨论了建立船舶模型的可行方法和如何建立三维波浪的数学模型。考虑随机波浪及船舶的非线性阻尼、非线性恢复力矩,建立船舶横摇运动的非线性微分方程。采用Runge—Kutta方法求解非线性微分方程,根据数值模拟结果,应用OpenGL中的函数来生成船舶在海浪中运动的动画。所开发的程序模拟的船舶和波浪是三维的,可以对不同有义波高的波浪和不同船舶的运动进行模拟。
This paper discusses the visualization of ship motion in waves. Visualization of ship motion in waves enables ship architects to understand the ship motion performance more intuitively. The visualization of ship motion in waves is described with OpenGL, a platform - independent graphics library. The feasible ways to build the ship model are discussed and the mathematical model of 3 - demensional model of ocean waves is presented. The random waves, non - linear damp and ship non - linear restore moment are taken into consideration and the ship rolling non - linear differential equation is established. The differential equation is solved by using the Runge - Kutta method. Based on the computing results, the paper discusses how to apply functions in the OpenGL library to animate ship motion in waves. The program developed can simulate three - dimensional ships and waves and can be used for waves with different significant wave heights and different ships.