﻿ 动态图形和视觉感知在舰船立体流线造型设计中的应用
 舰船科学技术  2022, Vol. 44 Issue (18): 57-60    DOI: 10.3404/j.issn.1672-7649.2022.18.012 PDF

Application of dynamic graphics and visual perception in ship three-dimensional streamline modeling design
YU Xu
Jiangxi University of Engineering, Xinyu 338000, China
Abstract: This paper studies the technology of dynamic graphics, mainly analyzes the meaning and characteristics of dynamic graphics, and compares it with static graphics to show the advantages of dynamic graphics. This paper discusses the visual perception technology, focusing on the principle of the visual perception technology, analyzes the relationship between the visual perception loss value and the number of iterations, puts forward the evaluation standard of the visual perception system, and focuses on the relationship between the accuracy value and the recall rate. Combined with dynamic graphics and visual perception technology, the optimization design method of ship three-dimensional streamline modeling is studied, and the application of hull surface deformation technology in ship three-dimensional streamline modeling and ship shape optimization calculation method are emphatically studied.
Key words: dynamic graphics     visual perception     warship     three dimensional streamline     modeling design
0 引　言

1 动态图形技术 1.1 动态图形的定义及特征

1.2 动态图形的信息结构

2 视觉感知技术 2.1 视觉感知技术原理

 ${s_k} = {s_{\min }} + \frac{{{s_{\max }} - {s_{\min }}}}{{m - 1}}\left( {k - 1} \right),k \in \left[ {1,m} \right]\text{。}$ (1)

 $w_k^a = {s_k}\sqrt {{a_r}} \text{，}$ (2)
 $h_k^a = \frac{{{s_k}}}{{\sqrt {{a_r}} }}\text{。}$ (3)

 ${w_i} = \frac{{i + 0.5}}{{\left| {{f_k}} \right|}},i \in \left[ {0,\left| {{f_k}} \right|} \right]\text{，}$ (4)
 ${h_j} = \frac{{j + 0.5}}{{\left| {{f_k}} \right|}},j \in \left[ {0,\left| {{f_k}} \right|} \right]\text{。}$ (5)

 $l=\frac{1}{N}{\displaystyle \sum _{i=1}^{N}{\Vert {G}_{M}\left({I}_{d}\text{，}\omega \right)-\widehat{y}\Vert }_{{l}_{1}}} 。$ (6)

 图 1 损失值比例-迭代次数关系曲线图 Fig. 1 Loss value ratio iteration times curve
2.2 视觉感知系统的评价指标

 $Accuracy = \frac{{TP + TN}}{{TP + TN + FP + FN}}\text{。}$ (7)

 $precision = \frac{{TP}}{{TP + FP}}\text{。}$ (8)

 ${Re} call = \frac{{TP}}{{TP + FN}}\text{。}$ (9)
 图 2 精度值-召回率关系曲线图 Fig. 2 Precision-recall curve
3 舰船立体流线造型优化设计 3.1 船体曲面变形技术

 $\begin{split}&g\left({x}_{{b}_{i,j}}\right)=\\ &\left\{ \begin{array}{cc}{\alpha }_{1}\mathrm{sin}\left({u}_{i}\cdot {\text{π}} \right){\left[0.5\left( 1 - \mathrm{cos}2{\text{π}} \dfrac{{x}_{{b}_{i,j}} - {\alpha }_{2}}{{\alpha }_{2} - {x}_{1}} \right)\right]^{0.5}，} & x_1 < {x}_{{b}_{i,j}} < {\alpha }_{2}，\\ -{\alpha }_{1}\mathrm{sin}\left({u}_{i}\cdot {\text{π}} \right){\left[0.5\left( 1 - \mathrm{cos}2{\text{π}} \dfrac{{x}_{{b}_{i,j}} - {\alpha }_{2}}{{\alpha }_{2} - {x}_{1}} \right)\right]^{0.5}，} & {\alpha }_{2} < {x}_{{b}_{i,j}} < {x}_{2}，\\ 0 & {\rm{others}}。\end{array} \right. \end{split}$ (10)

 ${\varepsilon _i} = \left| {{p_i} - p\left( {{u_i}} \right)} \right|\text{。}$ (11)

 图 3 船体形变位置和误差之间的关系 Fig. 3 Relationship between ship shape change position and error
3.2 船型优化计算

 $\begin{split} & \min {f_{obj}} = {c_{ws}}\left( {Fr = 0.3,{\alpha _1},{\alpha _2},P_{1} - P_{6}} \right) ，\\ & {\rm{s.t}}:\left| {\nabla V} \right| < 0.5{\text{%}} ，\\ & \quad\;\;\; {\left| {\nabla S} \right|} < 0.5{\text{%}} \text{。} \end{split}$ (12)

 图 4 不同弗劳德数下的阻力变化情况 Fig. 4 Resistance variation under different Froude numbers
 ${C_t} = \dfrac{{{R_t}}}{{\dfrac{1}{2}\rho S{U^2}}}\text{。}$ (13)
4 结　语

 [1] 张曼蒂. 动态图形在互动影像装置中的应用研究[J]. 数字技术与应用, 2021(39): 201-203. ZHANG Man-di. Research on the application of dynamic graphics in interactive video[J]. Digital Technology & Application, 2021(39): 201-203. DOI:10.19695/j.cnki.cn12-1369.2021.07.64 [2] 程睿. 融入动态图形和视觉感知的平面设计系统研究[J]. 计算机与数字工程, 2022(50): 55-60. CHENG Rui. Research on graphic design system integrating dynamic graphics and visual perception[J]. Computer & Digital Engineering, 2022(50): 55-60. DOI:10.3969/j.issn.1672-9722.2022.01.011 [3] 程泽航. 动态图形设计在用户界面交互设计中的易用性[J]. 黑河学院学报, 2020(10): 144-146. CHENG Ze-hang. The usability of dynamic graphic design in user interface interaction design[J]. Joural of Heihe Universigy, 2020(10): 144-146. DOI:10.3969/j.issn.1674-9499.2020.10.052 [4] 华夏, 王新晴, 芮挺, 等. 视觉感知的无人机端到端目标跟踪控制技术[J]. 浙江大学学报, 2022(56): 1464-1472. HUA Xia, WANG Xin-qing, RUI Ting, et al. Vision-driven end-to-end maneuvering object tracking of UAV[J]. Journal of Zhejiang University, 2022(56): 1464-1472. [5] 任思炜, 张宇红. 基于视觉感知技术的舰船导航系统交互界面设计[J]. 舰船科学技术, 2022(44): 157-160. REN Si-wei, ZHANG Yu-hong. Research on interactive interface design of ship navigation system based on visual perception technology[J]. Ship Science and Technology, 2022(44): 157-160. DOI:10.3404/j.issn.1672-7649.2022.12.032 [6] 魏宏安, 刘嘉棋, 林丽群, 等. 基于视觉感知的率失真优化算法[J]. 仪器仪表学报, 2022(43): 175-182. WEI Hong-an, LIU Jia-qi, LIN Li-qun, et al. A rate-distortion optimization algorithm based on visual perception[J]. Chinese Journal of Scientific Instrument, 2022(43): 175-182. DOI:10.19650/j.cnki.cjsi.J2108588 [7] 王卓, 刘博. 考虑视觉传达理念的舰船流线曲面造型结构优化[J]. 舰船科学技术, 2020(42): 4-6. WANG Zhuo, LIU Bo. Optimization of ship streamline surface modeling structure considering visual communication concepti[J]. Ship Science and Technology, 2020(42): 4-6. [8] 王中, 彭飞, 韩玉超, 等. 特征驱动的T样条船体曲面参数化设计方法研究[J]. 舰船科学技术, 2017(39): 7-11. WANG Zhong, PENG Fei, HAN Yu-chao, et al. Feature-driven modify and parametric design of ship hull with T-spline surface[J]. Ship Science and Technology, 2017(39): 7-11. DOI:10.3404/j.issn.1672-7649.2017.08.002