-
摘要:
在航空航天领域,工业计算流体力学(CFD)软件依赖于高性能计算集群生产气动数据,是辅助飞行器设计的重要工具。针对国产CFD软件集群部署、仿真场景交互、软硬件环境兼容等问题,结合国家数值风洞(NNW)软件研发和推广应用需求,设计并实现了一种面向集群交互的CFD软件框架。该框架采用客户端/服务器架构,集成交互界面、集群通信、登录认证、仿真任务管理与作业监控等功能,支持命令调用求解器并传递参数文件的求解模式,具有良好的通用性和扩展性。测试表明:该框架可兼容主流集群架构与作业调度系统,相较传统耦合架构,在百次并发下内存占用率降低36%,CPU占用率降低69%,平均响应时间稳定在100 ms以内,具有资源占用低、响应速度快等优势。目前,所设计框架已应用于NNW软件体系,为用户提供流畅的集群仿真交互服务,提升了CFD仿真用户体验。
Abstract:In the field of aerospace engineering, industrial computational fluid dynamics (CFD) software relies on high-performance computing clusters to generate aerodynamic data, serving as a critical tool for assisting aircraft design. This paper devises and executes a CFD software framework for cluster interaction to address the challenges faced by domestic CFD software in high-performance computing cluster deployment and simulation, along with compatibility issues with software/hardware environments, while considering the requirements of the National Numerical Windtunnel (NNW) project for software research, development, and promotion. The architecture employs a client/server model, incorporating features such as an interactive interface, cluster communication, login authentication, simulation task management, and job monitoring, while facilitating a command-based solver invocation and parameter file transfer, demonstrating significant versatility and scalability. Testing outcomes indicate that the framework is congruent with prevalent cluster architectures and job scheduling systems; in contrast to conventional coupled architectures, it diminishes memory utilisation by 36% and CPU consumption by 69% under hundreds of simultaneous tasks, while maintaining average response times within 100 milliseconds, highlighting its benefits in resource efficiency and swift responsiveness. Currently, the designed framework has been applied to the NNW software ecosystem, provide users with smooth cluster simulation interaction services and significantly improve the user experience of CFD simulations.
-
表 1 集群作业管理系统常用指令
Table 1. Common instructions of cluster job management system
集群作业管理系统 提交指令 查询指令 取消指令 Slurm sbatch\srun squeue scancel LSF bsub bjobs\bqueue bstop\bkill PBS/SGE qsub qstat qdel 表 2 客户端与服务器提交作业交互接口的部分参数
Table 2. Some parameters of interface between client and server when submitting jobs
相关参数 功能 messageType 消息类型 jobType 作业类型 batchPara 批量作业参数 solverName 求解器名称 solverType 求解器类型 ncpus 并行计算核数 jobPath 作业在集群的绝对路径 state 作业在集群的运行状态 projectId 作业在集群的运行编码 表 3 HyFLOW软件兼容Slurm作业管理系统的脚本配置
Table 3. Script configuration of HyFLOW software compatible with Slurm job management system
脚本类型 关键指令 输入 输出 提交作业HyFLOW_Submit.sh mpirun -n $n $solver $\$jobPath >>HyFLOW.out 2>&1 $\$n:[计算核数]、$\$ solver:[求解器名称]、$\$ jobPath:[作业路径] 日志文件 状态监控query.sh squeue |grep $\$scriptName |awk -F: '{split(id status)}' >> $\$1/queryResults.txt $\$scriptName:[提交作业脚本名称] 作业状态记录文件 状态查询queryByID.sh squeue | grep $\$id $\$id:[作业编号] 0:成功,1:失败 取消作业cancel.sh scancel $\$id $\$id:[作业编号] 0:成功,1:失败 表 4 计算条件
Table 4. Computational conditions
马赫数 迎角/(°) 密度/
(kg·m−3)单位长度
雷诺数/m−1压力/Pa 壁温/K 侧滑
角/(°)来流
温度/K35 39.58 8.04×10−5 1.1×105 32.31 1120 0 216.28 -
[1] 张健, 周乃春, 李明, 等. 面向航空航天领域的工业CFD软件研发设计[J]. 软件学报, 2022, 33(5): 1529-1550.Zhang J, Zhou N C, Li M, et al. R & D and design of industrial CFD software for aeronautics and astronautics[J]. Journal of Software, 2022, 33(5): 1529-1550(in Chinese). [2] 周铸, 黄江涛, 黄勇, 等. CFD技术在航空工程领域的应用、挑战与发展[J]. 航空学报, 2017, 38(3): 020891.Zhou Z, Huang J T, Huang Y, et al. CFD technology in aeronautic engineering field: applications, challenges and development[J]. Acta Aeronautica et Astronautica Sinica, 2017, 38(3): 020891(in Chinese). [3] 陈琦, 陈坚强, 袁先旭, 等. 国家数值风洞(NNW)工程在高超声速中的应用研究进展[J]. 航空学报, 2021, 42(9): 625746.Chen Q, Chen J Q, Yuan X X, et al. Progress on application of National Numerical Windtunnel Project for hypersonic[J]. Acta Aeronautica et Astronautica Sinica, 2021, 42(9): 625746(in Chinese). [4] 阎超. 航空CFD四十年的成就与困境[J]. 航空学报, 2022, 43(10): 526490.Yan C. Achievements and predicaments of CFD in aeronautics in past forty years[J]. Acta Aeronautica et Astronautica Sinica, 2022, 43(10): 526490(in Chinese). [5] 陈坚强. 国家数值风洞(NNW)工程关键技术研究进展[J]. 中国科学: 技术科学, 2021, 51(11): 1326-1347.Chen J Q. Advances in the key technologies of Chinese national numerical windtunnel project[J]. Scientia Sinica (Technologica), 2021, 51(11): 1326-1347(in Chinese). [6] 袁先旭, 陈坚强, 杜雁霞, 等. 国家数值风洞(NNW)工程中的CFD基础科学问题研究进展[J]. 航空学报, 2021, 42(9): 625733.Yuan X X, Chen J Q, Du Y X, et al. Research progress on fundamental CFD issues in National Numerical Windtunnel Project[J]. Acta Aeronautica et Astronautica Sinica, 2021, 42(9): 625733(in Chinese). [7] 李鹏, 陈坚强, 丁明松, 等. NNW-HyFLOW高超声速流动模拟软件框架设计[J]. 航空学报, 2021, 42(9): 161-177.Li P, Chen J Q, Ding M S, et al. Framework design of NNW-HyFLOW hypersonic flow simulation software[J]. Acta Aeronautica et Astronautica Sinica, 2021, 42(9): 161-177(in Chinese). [8] 赵钟, 何磊, 何先耀. 风雷(PHengLEI)通用CFD软件设计[J]. 计算机工程与科学, 2020, 42(2): 210-219.Zhao Z, He L, He X Y. Design of general CFD software PHengLEI[J]. Computer Engineering & Science, 2020, 42(2): 210-219(in Chinese). [9] 赵钟, 张来平, 何磊, 等. 适用于任意网格的大规模并行CFD计算框架PHengLEI[J]. 计算机学报, 2019, 42(11): 2368-2383.Zhao Z, Zhang L P, He L, et al. PHengLEI: a large scale parallel CFD framework for arbitrary grids[J]. Chinese Journal of Computers, 2019, 42(11): 2368-2383(in Chinese). [10] 陈坚强, 吴晓军, 张健, 等. FlowStar: 国家数值风洞(NNW)工程非结构通用CFD软件[J]. 航空学报, 2021, 42(9): 625739.Chen J Q, Wu X J, Zhang J, et al. FlowStar: general unstructured-grid CFD software for National Numerical Windtunnel (NNW) Project[J]. Acta Aeronautica et Astronautica Sinica, 2021, 42(9): 625739(in Chinese). [11] 章锦威, 戚姝妮, 郭承鹏, 等. 基于非结构平台的DLR-F6标模阻力预测[J]. 航空计算技术, 2015, 45(2): 84-87.Zhang J W, Qi S N, Guo C P, et al. Computed verification of drag prediction for DLR-F6 wing body on unstructured grids flow solver[J]. Aeronautical Computing Technique, 2015, 45(2): 84-87(in Chinese). [12] 刘毅, 王刚, 叶正寅. 典型外形高超声速气动力/气动热数值计算研究[J]. 西北工业大学学报, 2014, 32(2): 169-175.Liu Y, Wang G, Ye Z Y. Numerical investigation of aerodynamic and aero-thermal effects for hypersonic vehicles[J]. Journal of Northwestern Polytechnical University, 2014, 32(2): 169-175(in Chinese). [13] 徐瑞, 杨永, 胡春馨, 等. 航空计算技术工业软件云化研究[J]. 山西电子技术, 2024(1): 116-118.Xu R, Yang Y, Hu C X, et al. Research on cloudization of industrial software in aviation computing technology[J]. Shanxi Electronic Technology, 2024(1): 116-118(in Chinese). [14] 安洲, 袁义, 宋文龙, 等. 面向航天器设计的高性能计算平台研究与应用[J]. 航天制造技术, 2022(4): 74-78.An Z, Yuan Y, Song W L, et al. Research and application of high performance computing platform for spacecraft design[J]. Aerospace Manufacturing Technology, 2022(4): 74-78(in Chinese). [15] 陈晓明, 田喜民, 万李韦. 基于混合云的舰船高性能计算仿真平台研究[J]. 信息技术, 2023(10): 79-83.Chen X M, Tian X M, Wan L W. Research on ship high-performance computing simulation platform based on hybrid cloud[J]. Information Technology, 2023(10): 79-83(in Chinese). [16] 牟泓宇, 马轶聪, 淮晓永. 面向云计算环境的CFD数据可视化分析服务[J]. 电子技术应用, 2023, 49(3): 118-123.Mou H Y, Ma Y C, Huai X Y. CFD data visualization analysis service for cloud computing environment[J]. Application of Electronic Technique, 2023, 49(3): 118-123(in Chinese). [17] 李林锋. Netty权威指南[M]. 北京: 电子工业出版社, 2014: 1-505.Li L F. Netty authoritative guide[M]. Beijing: Publishing House of Electronics Industry, 2014: 1-505(in Chinese). -


下载: