为提高散货船配载仪中船舶稳性计算速度,通过使用CUDA(Compute Unified Device Architecture)对稳性计算过程进行并行加速。首先基于CGAL(Computational Geometry Algorithms Library)中的切片模块按肋位纵向切割船体型表面,得到每个肋位处横剖面型值数据;然后对横剖面型值数据进行等距偏移模拟板厚,得到各肋位处的外板数据;然后将外板数据发往GPU;在GPU中通过水线面和外板数据求解并行计算雅克比矩阵系数;最后将雅可比矩阵系数传回CPU,求解稳性方程组。
This paper designs a method to accelerate calculation progress using the NVIDIA CUDA (Compute Unified Device Architecture). By using the slicing module in CGAL(Computational Geometry Algorithms Library), the offset table was obtained through longitudinally slicing 3D design surface; The shell data were gained by simplification and equidistant offsetting and sent to GPU; Jacobi matrix coefficients were gained parallelly by intersecting water plane and shell data; The Jacobi matrix coefficients were sent to CPU to solve equations. Our results show speed up of 6 to 10 times and the real time performance of the program is improved effectively.
2017,39(10): 40-44 收稿日期:2016-09-08
DOI:10.3404/j.issn.1672-7649.2017.10.007
分类号:U661.22
基金项目:863课题资助项目(2015AA016404);海洋公益性行业科研专项资助项目(201505017-4);中央高校基本科研业务费资助项目(3132016310)
作者简介:王智洲(1993-),男,硕士研究生,研究方向为船舶静力学
参考文献:
[1] 盛振邦, 刘应中. 船舶原理[M]. 上海交通大学出版社, 2003.
[2] 赵晓非, 蔡伟科. 船舶稳性计算优化方法研究[J]. 中国造船, 1987(02):88-94. ZHAO Xiao-fei, CAI Wei-ke, An optimization methodforthe calculation of ships stability curves[J]. Shipbuilding of China, 1987(02):88-94.
[3] 桑松, 徐学军. 浮式结构物完整稳性优化计算原理[J]. 上海交通大学学报, 2009(10):1568-1572. SANG Song, XU Xue-jun. Optimization calculational Principle on intact stability of floating structures[J]. Journal of Shanghai Jiaotong University, 2009(10):1568-1572.
[4] 孙承猛, 刘寅东. 一种船舶最小稳性和自由浮态计算的改进算法[J]. 中国造船, 2007(03):1-4. SUN Cheng-meng, LIU Yin-dong. An improved algorithm for calculating ship's minimum stability and free floatation[J]. Shipbuilding of China, 2007(03):1-4.
[5] 马坤, 张明霞, 纪卓尚, 等. 非线性规划法计算船舶稳性[J]. 中国造船, 2003(02):83-86. MA Kun, ZHANG Ming-xia, JI Zhou-shang, et al. Application of nonlinear programming to calculation of ship stability curve[J]. Shipbuilding of China, 2003(02):83-86.
[6] 令波. 浮性与完整稳性的直接计算法[D]. 武汉:华中科技大学, 2013.
[7] 程智斌, 魏建志, 曾宏军. 计算破损船舶稳性的表面元法[J]. 海军工程大学学报, 2002(4):41-44.
[8] RADWAN A M. A different method to evaluate the intact stability of floating structures[J]. Marine Technology and Sname News, 1983, 20(1):21-25.
[9] COOK S. CUDA programming:a developer's guide to parallel computing with GPUs[M]. Newnes, 2012.
[10] KIRK D B, Wen-mei W H. Programming massively parallel processors:a hands-on approach[M]. Newnes, 2012.
[11] The Computational Geometry Algorithms Library[EB/OL].[2016-8-19]. http://www.cgal.org.
[12] 王智洲, 孙霄峰, 尹勇, 等. 基于三维设计数据的船舶湿面积计算[J]. 船舶工程, 2016, 38(05):5-8. WANG Zhi-zhou, SUN Xiao-feng, YIN Yong, et al. Ship's wetted surface calculation based on 3D design data[J]. Ship Engineering, 2016, 38(05):5-8.
[13] 张明霞. 基于NURBS曲面的船舶破舱稳性计算方法研究[D]. 大连理工大学, 2002.
[14] NVIDIA. CUDA programming guide V 7.5[Z]. 2015.