Airfoil reverse design method based on self-attention mechanism
-
摘要:
为了简化翼型反设计的过程,基于注意力机制设计了一个端到端的,应用于翼型反设计的深度学习模型,该模型可以学习到翼型曲线和压力分布之间的联系,直接输入压力分布图像就可以得到与之对应的翼型图像。生成了
6561 组样本,其中6000 组样本用于训练,561组样本用于验证。实验结果表明:该模型在验证集上的方均根误差为0.0023 ,平均相对偏差为2.53%,训练耗时743.4 s,验证耗时12.18 s,预测一个翼型曲线平均耗时0.0217 s,由此表明该模型具有较高的精度和效率。Abstract:An end-to-end deep learning model for reverse airfoil design based on attention mechanism was proposed to simplify the reverse airfoil design process. The model could learn the relationship between the airfoil curve and the pressure distribution, and the matching airfoil picture could be generated by directly inputting the pressure distribution image.
6561 samples were generated, with6000 used for training and 561 for validation. The model's root mean square error on the verification set was0.0023 , its average relative deviation was 2.53%, its training and verification time was 743.4 s and 12.18 s, respectively, and its average prediction time for an airfoil curve was0.0217 s. The results demonstrated the model's high accuracy and efficiency.-
Key words:
- airfoil reverse design /
- airfoil curve /
- pressure distribution /
- deep learning /
- self-attention
-
表 1 模型在训练集和验证集上的误差
Table 1. Error on training set and validation set
数据集 ERMSE ε/% 训练集 0.001513 1.94 验证集 0.002344 2.53 表 2 分块大小对模型精度的影响
Table 2. Effect of patch size on accuracy
块大小 ERMSE ε/% 10×10 0.146069 97.25 20×20 0.004077 3.88 25×25 0.003782 3.77 50×50 0.003827 3.87 注:加粗数据表示误差最小值。 表 3 注意力机制对精度的影响
Table 3. Effect of self-attention mechanism on accuracy
块大小 注意力机制 ERMSE ε/% 10×10 0.143407 94.76 √ 0.146069 97.25 20×20 0.012391 7.79 √ 0.004077 3.88 25×25 0.011785 7.79 √ 0.003782 3.77 50×50 0.011176 8.19 √ 0.003827 3.87 注:①√表示使用注意力机制;②加粗数据表示最小误差。 表 4 块嵌入层和全局特征提取层对精度的影响
Table 4. Effect of patch embedding block and global feature extraction block on accuracy
块大小 块嵌入 全局特征提取 ERMSE ε/% 10×10 √ 0.146069 97.25 √ √ 0.143435 94.78 20×20 √ 0.004077 3.88 √ √ 0.003259 3.33 25×25 √ 0.003782 3.77 √ √ 0.002344 2.53 50×50 √ 0.003827 3.87 √ √ 0.002485 2.61 注:①√表示使用块嵌入层或全局特征提取层;②加粗数据表示误差最小值。 表 5 多头数目对精度的影响
Table 5. Impact of number of heads on accuracy
块大小 多头数目 ERMSE ε/% 25×25 2 0.002344 2.53 25×25 4 0.003255 2.75 25×25 8 0.002434 2.74 25×25 16 0.002403 2.62 25×25 32 0.002328 2.53 25×25 64 0.002427 2.59 注:加粗数据表示误差最小值。 -
[1] 王清,招启军. 基于遗传算法的旋翼翼型综合气动优化设计[J]. 航空动力学报,2016,31(6): 1486-1495. WANG Qing,ZHAO Qijun. Synthetical optimization design of rotor airfoil by genetic algorithm[J]. Journal of Aerospace Power,2016,31(6): 1486-1495. (in ChineseWANG Qing, ZHAO Qijun. Synthetical optimization design of rotor airfoil by genetic algorithm[J]. Journal of Aerospace Power, 2016, 31(6): 1486-1495. (in Chinese) [2] 高正红,王超. 飞行器气动外形设计方法研究与进展[J]. 空气动力学学报,2017,35(4): 516-528,454. GAO Zhenghong,WANG Chao. Aerodynamic shape design methods for aircraft: status and trends[J]. Acta Aerodynamica Sinica,2017,35(4): 516-528,454. (in ChineseGAO Zhenghong, WANG Chao. Aerodynamic shape design methods for aircraft: status and trends[J]. Acta Aerodynamica Sinica, 2017, 35(4): 516-528, 454. (in Chinese) [3] 赵国庆,招启军. 基于目标压力分布的旋翼先进气动外形反设计分析方法[J]. 航空学报,2014,35(3): 744-755. ZHAO Guoqing,ZHAO Qijun. Inverse design analysis method on rotor with advanced aerodynamic configuration based upon target pressure distribution[J]. Acta Aeronautica et Astronautica Sinica,2014,35(3): 744-755. (in ChineseZHAO Guoqing, ZHAO Qijun. Inverse design analysis method on rotor with advanced aerodynamic configuration based upon target pressure distribution[J]. Acta Aeronautica et Astronautica Sinica, 2014, 35(3): 744-755. (in Chinese) [4] LI Jiaozan,GAO Zhenghong. Inverse design method of airfoil embedded optimization of pressure distribution[C]//Proceedings of the 3rd International Conference on Information and Computing. Piscataway,US: IEEE,2010: 101-104. [5] LI Xiujuan,LIAO Wenhe,LIU Hao. An inverse method for 3D aerodynamic design of wing shape[C]//Proceedings of IEEE 10th International Conference on Computer-Aided Industrial Design and Conceptual Design. Piscataway,US: IEEE,2009: 625-630. [6] WICKRAMASINGHE U K,CARRESE R,LI Xiaodong. Designing airfoils using a reference point based evolutionary many-objective particle swarm optimization algorithm[C]//Proceedings of IEEE Congress on Evolutionary Computation. Piscataway,US: IEEE,2010: 1-8. [7] AHN T,KIM H J,KIM C,et al. Transonic wing design using genetic optimization of wing planform and target pressures[C]//Proceedings of IEEE International Conference on Systems,Man,and Cybernetics. Piscataway,US: IEEE,1999: 469-474. [8] YANG Tihao,BAI Junqiang,WANG Dan. Inverse design of supercritical wing based on enhanced RBF neural network[C]//Proceedings of the 5th International Conference on Communication Systems and Network Technologies. Piscataway,US: IEEE,2015: 1172-1176. [9] TAKANASHI S. Iterative three-dimensional transonic wing design using integral equations[J]. Journal of Aircraft,1985,22(8): 655-660. doi: 10.2514/3.45182 [10] 詹浩,华俊,张仲寅. 基于余量修正原理的多翼面气动力反设计方法[J]. 航空学报,2003,24(5): 411-413. ZHAN Hao,HUA Jun,ZHANG Zhongyin. Design of multi-lifting surfaces based on iterative residual correction[J]. Acta Aeronautica et Astronautica Sinica,2003,24(5): 411-413. (in ChineseZHAN Hao, HUA Jun, ZHANG Zhongyin. Design of multi-lifting surfaces based on iterative residual correction[J]. Acta Aeronautica et Astronautica Sinica, 2003, 24(5): 411-413. (in Chinese) [11] BUI-THANH T,DAMODARAN M,WILLCOX K. Aerodynamic data reconstruction and inverse design using proper orthogonal decomposition[J]. AIAA Journal,2004,42(8): 1505-1516. doi: 10.2514/1.2159 [12] 白俊强,邱亚松,华俊. 改进型Gappy POD翼型反设计方法[J]. 航空学报,2013,34(4): 762-771. BAI Junqiang,QIU Yasong,HUA Jun. Improved airfoil inverse design method based on gappy POD[J]. Acta Aeronautica et Astronautica Sinica,2013,34(4): 762-771. (in ChineseBAI Junqiang, QIU Yasong, HUA Jun. Improved airfoil inverse design method based on gappy POD[J]. Acta Aeronautica et Astronautica Sinica, 2013, 34(4): 762-771. (in Chinese) [13] HE Kaiming,ZHANG Xiangyu,REN Shaoqing,et al. Deep residual learning for image recognition[C]//2016 IEEE Conference on Computer Vision and Pattern Recognition. Piscataway,US: IEEE,2016: 770-778. [14] DEVLIN J,CHANG Mingwei,LEE K,et al. BERT: pre-training of deep bidirectional transformers for language u-nderstanding [EB/OL]. (2019-05-24) [2023-01-02]. http://arxiv.org/abs/1810.04805 [15] LEE S,YOU D. Data-driven prediction of unsteady flow over a circular cylinder using deep learning[J]. Journal of Fluid Mechanics,2019,879: 217-254. doi: 10.1017/jfm.2019.700 [16] 廖鹏,姚磊江,白国栋,等. 基于深度学习的混合翼型前缘压力分布预测[J]. 航空动力学报,2019,34(8): 1751-1758. LIAO Peng,YAO Leijiang,BAI Guodong,et al. Prediction of hybrid airfoil leading edge pressure distribution based on deep learning[J]. Journal of Aerospace Power,2019,34(8): 1751-1758. (in ChineseLIAO Peng, YAO Leijiang, BAI Guodong, et al. Prediction of hybrid airfoil leading edge pressure distribution based on deep learning[J]. Journal of Aerospace Power, 2019, 34(8): 1751-1758. (in Chinese) [17] 李春娜,贾续毅,龚春林. 基于两层POD和BPNN的翼型反设计方法[J]. 航空工程进展,2021,12(2): 30-37. LI Chunna,JIA Xuyi,GONG Chunlin. Airfoil inverse design method based on two-layer POD and BPNN[J]. Advances in Aeronautical Science and Engineering,2021,12(2): 30-37. (in ChineseLI Chunna, JIA Xuyi, GONG Chunlin. Airfoil inverse design method based on two-layer POD and BPNN[J]. Advances in Aeronautical Science and Engineering, 2021, 12(2): 30-37. (in Chinese) [18] 何磊,钱炜祺,刘滔,等. 基于深度学习的翼型反设计方法[J]. 航空动力学报,2020,35(9): 1909-1917. HE Lei,QIAN Weiqi,LIU Tao,et al. Inverse design method of airfoil based on deep learning[J]. Journal of Aerospace Power,2020,35(9): 1909-1917. (in ChineseHE Lei, QIAN Weiqi, LIU Tao, et al. Inverse design method of airfoil based on deep learning[J]. Journal of Aerospace Power, 2020, 35(9): 1909-1917. (in Chinese) [19] DOSOVITSKIY A,BEYER L,KOLESNIKOV A,et al. An image is worth 16x16 words: Transformers for image recognition at scale [EB/OL]. (2021-06-03) [2023-01-03]. https://arxiv.org/abs/2010.11929 [20] LECUN Y,BOSER B,DENKER J S,et al. Backpropagation applied to handwritten zip code recognition[J]. Neural Computation,1989,1(4): 541-551. doi: 10.1162/neco.1989.1.4.541 [21] KRIZHEVSKY A,SUTSKEVER I,HINTON G E. ImageNet classification with deep convolutional neural networks[J]. Communications of the ACM,2017,60(6): 84-90. doi: 10.1145/3065386 [22] VASWANI A,SHAZEER N,PARMAR N,et al. Attention is all you need [EB/OL]. (2027-12-06) [2023-01-02]. https://arxiv.org/abs/1706.03762 -

下载: