﻿ 船舶有限元模型舱室识别方法
 舰船科学技术  2023, Vol. 45 Issue (20): 40-43    DOI: 10.3404/j.issn.1672-7649.2023.20.007 PDF

1. 中国船舶及海洋工程设计研究院, 上海 200011;
2. 中国船舶集团有限公司系统工程研究院, 北京 100000

Research on method of ship compartment recognition with FE model
ZHANG Zhi-kang1, LIU Ge2, CHEN Le-kun1, LI Chuang1, ZHANG Sihang1, SUN Ming-yu1
1. Marine Design and Research Institute of China, Shanghai 200011, China;
2. CSSC Systems Engineering Research Institute, Beijing 100000, China
Abstract: FEA method is often used for hull structure strength calculation in the ship and marine structure design. It’s not only time-consuming for the definition of the ship compartment, but also easy to make mistakes. An algorithm helpful to recognize the boundary of the ship compartment efficiently called No Free Edge was proposed to solve this problem. A program was developed based on FEMAP software, and a practical engineer project was adopted as test example. It can be found that this algorithm was efficient and also suitable for compartments with very complex shapes. The developed program can recognize the boundary elements of the compartment quickly and accurately.
Key words: ship compartment     space detect     FEMAP     secondary development
0 引　言

1 舱室识别

1.1 原　理

1.2 实现过程

 图 1 舱室识别流程 Fig. 1 Recognition process of ship compartment

1.3 建立拓扑关系

 图 2 拓扑关系示意 Fig. 2 Topological relation

1.4 算法介绍

“无自由边法”算法用于搜索三维模型中由单元构成的封闭空间。

 $Elem\_i(x) = \{ x|x \in ({x_{\min }},{x_{\max }})\}，$ (1)
 $Elem\_i(y) = \{ y|y \in ({y_{\min }},{y_{\max }})\} ，$ (2)
 $Elem\_i(z) = \{ z|z \in ({z_{\min }},{z_{\max }})\}。$ (3)

 图 3 “无自由边法”示意 Fig. 3 No free edge algorithm
2 算法改进

“无自由边法”本质是搜索有限元网格中的封闭空间。为了扩大算法的适用性，满足工程实际应用的需求，针对非封闭空间的识别问题，对本文的算法进行改进和优化。

2.1 舱室边界带有小孔

2.2 货舱大开口

3 应用实例

FEMAP是一款先进的有限元分析软件，提供完全开放的二次开发接口，支持各种通用语言，非常适用于CAE的二次开发[7]。基于该软件，采用VB.NET语言和WinForm客户端开发技术，实现本文提出的舱室识别算法。

 图 4 测试集装箱船全船有限元模型 Fig. 4 Test global ship FEM of container vessel

 图 5 水密舱室边界 Fig. 5 Watertight compartment boundary

 图 6 机舱边界 Fig. 6 Engine room boundary

4 结　语

1）提出的全新船舶有限元舱室识别算法“无自由边法”，可实现舱室空间的快速智能识别，编写程序对其有效性进行了验证；

2）该算法本质是解决有限元三维封闭空间的识别问题，可拓展应用到类似的科研和开发项目中；

3）通过实例验证，该算法实用可靠，除了水密舱室，对具有大开口或小开孔的非水密舱室也适用。程序操作简单，交互界面友好，可大幅提高设计人员的工作效率。

 [1] 高鹏, 陈有芳. IACS协调共同结构规范的主要变化及影响[J]. 船海工程, 2014, 43(6): 25-30. GAO Peng, CHEN Youfang. Research on main differences and scantling impacts of IACS HCSR rules[J]. Ship and Ocean Engineering, 2014, 43(6): 25-30. [2] 单威俊, 李锋, 蒲海, 等. 船舶模型边界网格单元识别技术研究[J]. 计算机工程与设计, 2008(10): 2652-2654. SHAN Weijun, LI Feng, PU Hai, et al. Research on boundary elements of ship model identification techniques[J]. Computer Engineering and Design, 2008(10): 2652-2654. DOI:10.16208/j.issn1000-7024.2008.10.045 [3] 单威俊, 许方, 陈坤坤, 等. 海洋结构与船舶有限元模型空间识别方法[J]. 舰船科学技术, 2014, 36(5): 25-30+35. SHAN Weijun, XU Fang, CHEN Kunkun, et al. Research on spaces detection methods of offshore structure and ship FEM model[J]. Ship Science and Technology, 2014, 36(5): 25-30+35. DOI:10.3404/j.issn.1672-7649.2014.05.006 [4] 单威俊, 陈坤坤, 许方, 等. 基于MSC. Patran的舱室识别程序开发[J]. 船海工程, 2014, 43(2): 77-80+84. SHAN Weijun, CHEN Kunkun, XU Fang, et al. Development of the cabin recognition program based on MSC. patran[J]. Ship and Ocean Engineering, 2014, 43(2): 77-80+84. [5] 章志兵, 程登, 孟凡冲, 等. 基于CAD模型的船舶舱室识别算法研究[J]. 华中科技大学学报(自然科学版), 2017, 45(12): 101-106. ZHANG Zhibing, CHENG Deng, MENG Fanchong, et al. Ship compartment recognition algorithm based on CAD model[J]. Journal of Huazhong University of Science and Technology (Natural Science Edition), 2017, 45(12): 101-106. [6] 章志兵, 杨明润, 王丽荣, 等. 基于CAE模型的船舶舱室自动识别高效算法[J]. 精密成形工程, 2020(4): 160-165. ZHANG Zhibing, YANG Mingrun, WANG Lirong, et al. An efficient algorithm for automatic identification of ship cabins based on CAE model[J]. Journal of Netshape Forming Engineering, 2020(4): 160-165. [7] 张志康, 司南, 陈乐昆, 等. FEMAP二次开发技术介绍与应用[J]. 自动化技术与应用, 2021, 40(4): 54-57. ZHANG Zhikang, SI Nan, CHEN Lekun, et al. Introduction and application of FEMAP secondary development technology[J]. Techniques of Automation and Applications, 2021, 40(4): 54-57.