摘要
为了解决传统船型设计中几何建模效率低、经验依赖强的问题,提出一种基于扩散模型生成船体曲面几何特征的方法.首先对船体线型进行前处理,在极坐标系下提取具有高保真度的船体表面特征,构建三维数组,将其作为训练集.搭建融合条件嵌入机制与U-Net结构的改进型扩散生成网络,采用余弦退火策略与 L1损失函数进行优化,输入标签信息与时间步长,生成具有指定标签的船型特征样本.然后借助 MeshLab 软件和拉普拉斯算法对生成结果进行后处理.结果表明,该方法在生成样本的结构一致性与几何连续性方面表现优异,其深度反曲比(SOA)的平均值为 0.049±0.026,总体反曲比(NOA)的平均值为 0.180±0.075,验证了模型在不同结构复杂度条件下的鲁棒性.提出的船型几何生成方法在几何保真性、光顺性与训练稳定性方面表现出明显优势,在船型智能设计中具有应用潜力.
To address the low efficiency and heavy reliance on experience in traditional ship hull design,this study proposes a geometric feature generation method for ship hull surfaces based on diffusion models.First,the 3D hull model is preprocessed to extract high-fidelity surface features in a polar coordinate system,and a 3D array is constructed as the training dataset.Subsequently,an improved diffusion-based generative network is developed by integrating a conditional embedding mechanism with a U-Net architecture.The model is optimized using a cosine annealing learning rate strategy and an L1 loss function;structural labels and time steps are jointly used as inputs to generate hull feature samples under specified conditions.Finally,the generated results are post-processed using MeshLab and the Laplacian smoothing algorithm.The results demonstrate that the proposed method exhibits excellent structural consistency and geometric continuity in the generated samples.The average special odd area(SOA)is 0.049±0.026,and the average normal odd area(NOA)is 0.180±0.075,validating the robustness of the model under conditions of varying structural complexity.The study indicates that the proposed diffusion-model-based ship hull geometry generation method offers clear advantages in geometric fidelity,surface smoothness,and training stability,highlighting its potential for application in intelligent ship hull design workflows.