留言板

尊敬的读者、作者、审稿人, 关于本刊的投稿、审稿、编辑和出版的任何问题, 您可以本页添加留言。我们将尽快给您答复。谢谢您的支持!

姓名
邮箱
手机号码
标题
留言内容
验证码

基于注意力机制的翼型反设计方法

王超杰 何磊 李川 钱炜祺 黄友翔

王超杰, 何磊, 李川, 等. 基于注意力机制的翼型反设计方法[J]. 航空动力学报, 2025, 40(1):20230106 doi: 10.13224/j.cnki.jasp.20230106
引用本文: 王超杰, 何磊, 李川, 等. 基于注意力机制的翼型反设计方法[J]. 航空动力学报, 2025, 40(1):20230106 doi: 10.13224/j.cnki.jasp.20230106
WANG Chaojie, HE Lei, LI Chuan, et al. Airfoil reverse design method based on self-attention mechanism[J]. Journal of Aerospace Power, 2025, 40(1):20230106 doi: 10.13224/j.cnki.jasp.20230106
Citation: WANG Chaojie, HE Lei, LI Chuan, et al. Airfoil reverse design method based on self-attention mechanism[J]. Journal of Aerospace Power, 2025, 40(1):20230106 doi: 10.13224/j.cnki.jasp.20230106

基于注意力机制的翼型反设计方法

doi: 10.13224/j.cnki.jasp.20230106
详细信息
    作者简介:

    王超杰(1998-),男,硕士生,主要从事人工智能应用方面的研究。E-mail:chaojiew@qq.com

    通讯作者:

    李川(1977-),男,副教授、硕士生导师,博士,主要从事数据挖掘与知识工程、深度学习方面的研究。E-mail:lcharles@scu.edu.cn

  • 中图分类号: V211.3

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,由此表明该模型具有较高的精度和效率。

     

  • 图 1  ViT模型结构

    Figure 1.  Model structure of ViT

    图 2  缩放点积注意力

    Figure 2.  Scaled-dot product attention

    图 3  TE层中的多头注意力机制

    Figure 3.  Multi-head self-attention in TE layer

    图 4  模型结构图

    Figure 4.  Model architecture

    图 5  翼型图和压力图

    Figure 5.  Airfoil curve image and pressure distribution image

    图 6  训练loss曲线

    Figure 6.  Training loss curve

    图 7  验证loss曲线

    Figure 7.  Validation loss curve

    图 8  模型预测结果

    Figure 8.  Prediction results of model

    表  1  模型在训练集和验证集上的误差

    Table  1.   Error on training set and validation set

    数据集 ERMSE ε/%
    训练集 0.001513 1.94
    验证集 0.002344 2.53
    下载: 导出CSV

    表  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
    注:加粗数据表示误差最小值。
    下载: 导出CSV

    表  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
    注:①√表示使用注意力机制;②加粗数据表示最小误差。
    下载: 导出CSV

    表  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
    注:①√表示使用块嵌入层或全局特征提取层;②加粗数据表示误差最小值。
    下载: 导出CSV

    表  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
    注:加粗数据表示误差最小值。
    下载: 导出CSV
  • [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 Chinese

    WANG 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 Chinese

    GAO 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 Chinese

    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 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 Chinese

    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 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 Chinese

    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 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 Chinese

    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 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 Chinese

    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 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 Chinese

    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 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
  • 加载中
图(8) / 表(5)
计量
  • 文章访问数:  670
  • HTML浏览量:  190
  • PDF量:  51
  • 被引次数: 0
出版历程
  • 收稿日期:  2023-02-27
  • 网络出版日期:  2024-05-31

目录

    /

    返回文章
    返回