航空学报 > 2021, Vol. 42 Issue (9): 625751-625751   doi: 10.7527/S1000-6893.2021.25751

国家数值风洞(NNW)进展及应用专栏

基于两步优化策略的结构网格负载平衡

段焰辉1, 周鑫2, 高诗婕茜3, 林锦星1, 张怀宝3, 王光学3   

  1. 1. 中山大学 系统科学与工程学院, 广州 510006;
    2. 中山大学 智能工程学院, 广州 510006;
    3. 中山大学 航空航天学院, 广州 510006
  • 收稿日期:2021-03-30 修回日期:2021-05-06 发布日期:2021-06-08
  • 通讯作者: 王光学 E-mail:wanggx7@mail.sysu.edu.cn
  • 基金资助:
    国家数值风洞工程

Two-step optimal strategy for load balancing of structured grid

DUAN Yanhui1, ZHOU Xin2, GAO Shijiexi3, LIN Jinxing1, ZHANG Huaibao3, WANG Guangxue3   

  1. 1. College of Systems Science and Engineering, Sun Yat-Sen University, Guangzhou 510006, China;
    2. School of Intelligent Systems Engineering, Sun Yat-Sen University, Guangzhou 510006, China;
    3. School of Aeronautics and Astronautics, Sun Yat-Sen University, Guangzhou 510006, China
  • Received:2021-03-30 Revised:2021-05-06 Published:2021-06-08
  • Supported by:
    National Numerical Windtunnel Project

摘要: 国家数值风洞(NNW)工程旨在发展完全自主知识产权的计算流体力学(CFD)软件,结构网格负载平衡问题研究是该工程中的一个重要组成部分。本文发展了两步优化策略以求解结构化网格的负载平衡问题。第1步优化采用传统的贪婪算法,完成对大块网格的剖分和以进程计算时间为指标的网格块分配;第2步采用遗传算法(GA),目标函数兼顾进程计算时间和通信时间,在第1步优化结果的基础上,对网格块在进程上的分配开展二次优化。为准确计算GA的目标函数,构建了一套计算时间和通信时间的建模方法,包括样本生成、模型建立和模型验证,整体方法具有一定的通用性。根据负载平衡问题以及两步优化策略的特点,对GA的编码、交叉、变异和种群初始化进行了研究,详细分析了交叉操作的递归问题及解决方法。算例验证说明建立的进程计算时间和通信时间模型具有较高的计算精度,能够用于GA的目标函数计算;两步优化策略能够在第1步优化的基础上进一步改善优化结果,从而减少CFD问题的整体计算时间,对于计算量巨大的工程问题具有较大的实用价值。

关键词: 负载平衡, 贪婪算法, 遗传算法, 结构网格, 国家数值风洞(NNW)工程

Abstract: Load balancing of structured grids composes an important part of the National Numerical Windtunnel (NNW) project which aims to design software of Computational Fluid Dynamics (CFD) with independent intellectual property right. This paper develops a two-step optimization strategy to solve the problems in load balancing of structured grids. The first step adopts the traditional greedy algorithm to split the large blocks of grids and assign the blocks based on computational time in each process. The second step adopts the Genetic Algorithm (GA). On the basis of the first step optimization solution, the second optimization can obtain better solution considering both the computational time and the communication time calculated by linear models. To improve the accuracy of the models, one of the key characteristics of the GA, a series of modeling methods are proposed for computational time and communication time, including the sample generation, model building and model validation. According to the characteristics of load balancing and the two-step optimization strategy, the paper studies the coding, crossover, mutation and population initialization of the GA, and analyzes the recursion problem of crossover operation. The verification shows that the models of computational time and communication time established in the paper can be used to compute the objective function of the GA with adequate accuracy. The cases of load balancing show that the two-step optimization strategy can further improve the optimization solutions in the first step, thereby reducing the overall computational time of certain CFD problems.

Key words: load-balancing, greedy algorithm, genetic algorithm, structured grids, National Numerical Windtunnel (NNW) Project

中图分类号: