Computer Science ›› 2022, Vol. 49 ›› Issue (3): 3-10.doi: 10.11896/jsjkx.210700060

• Novel Distributed Computing Technology and System • Previous Articles     Next Articles

Hybrid MPI+OpenMP Parallel Method on Polyhedral Grid Generation in OpenFoam

LIU Jiang1, LIU Wen-bo1,2, ZHANG Ju1   

  1. 1 Chongqing Institute of Green and Intelligent Technology,Chinese Academy of Sciences,Chongqing 400714,China
    2 University of Chinese Academy Science,Beijing 100049,China
  • Received:2021-07-06 Revised:2021-12-06 Online:2022-03-15 Published:2022-03-15
  • About author:LIU Jiang,born in 1979,Ph.D,associate professor,is a member of China Computer Federation.His main research interests include computability theory,formal methods and computer algorithms.
    LIU Wen-bo,born in 1996,postgra-duate.His main research interests include computational fluid dynamics and high-performance computing.
  • Supported by:
    National Key R & D Program of China(2018YFC0116704) and Sichuan Science and Technology Program(2020YFQ0056).

Abstract: Grid generation is an important step of computational fluid dynamics.In the process of large-scale numerical simulation,the time consumption of grid generation increases with the number of grids which often increases with the simulation accuracy.Based on the grid generation algorithm in an open-source software called OpenFoam,this paper proposes a hybrid parallel me-thod of OpenMP and MPI for polyhedral grid generation.By theoretical analysis,we show that when the hybrid parallel method is used to generate the same quality grids,increasing the number of threads and grid cells will reduce the time consumption of grid generation.Three numerical simulations using different solvers show that the grids generated by the hybrid parallel method and the original method have close qualifications,and the simulation results are almost indistinguishable from those of the original method.Furthermore,the time consumption of this method to generate the same quality and quantity grids can be reduced to less than a quarter of the time consumption without using OpenMP parallel method.

Key words: Computational fluid dynamics, MPI+OpenMP hybrid parallelization, OpenFoam, Parallel efficiency, Polyhedral grid generation

CLC Number: 

  • V211.3
[1]LUO L,GAO Z X,JIANG C W.CFD Development and Application in Aviation[J].Aeronautical Manufacturing Technology,2016,515(20):77-81.
[2]WINTER M,HECKMEIER F M,BREITSAMTER C.CFD-based aeroelastic reduced-order modeling robust to structural parameter variations[J].Aerospace Science and Technology,2017,67:13-30.
[3]JAMESON A,MARTINELLI L,VASSBERG J.Using computational fluid dynamics for aerodynamics--a critical assessment [C]//Proceedings of the Proceedings of ICAS.2002.
[4]ALI Z,TYACKE J,WATSON R,et al.Efficient preprocessing of complex geometries for CFD simulations[J].International Journal of Computational Fluid Dynamics,2019,33(3):98-114.
[5]NGUYEN V T,VU D T,PARK W G,et al.Navier--Stokes solver for water entry bodies with moving Chimera grid method in 6DOF motions[J].Computers & Fluids,2016,140:19-38.
[6]ALFONSI G.Reynolds-averaged Navier--Stokes equations forturbulence modeling[J].Applied Mechanics Reviews,2009,62(4):933-944.
[7]AHRENS J,GEVECI B,LAW C.Paraview:An end-user tool for large data visualization[J].The Visualization Handbook,2005:717-31.
[8]WANG M.Design and Implementation of Parallel Graph-partitioning Methods for OpenFoam [D].Changsha:National University of Defense Technology,2012.
[9]JASAK H,JEMCOV A,TUKOVIC Z,et al.OpenFoam:AC++ library for complex physics simulations[C]//Proceedings of the International Workshop on Coupled Methods in Numerical Dynamics.2007.
[10]FABRITIUS B O,TABOR G.Improving the quality of finite volume meshes through genetic optimisation[J].Engineering with Computers,2016,32(3):425-440.
[11]KORTELAINEN J.Meshing Tools for Open Source CFD:APractical Point of View [J/OL].VTT.
[12]GISEN D.Generation of a 3D mesh using snappyHexMesh featuring anisotropic refinement and near-wall layers [C]//Proceedings of the ICHE 2014 Proceedings of the 11th International Conference on Hydroscience & Engineering.2014.
[13]XU C F,CHE Y G,LI D L,et al.Research progresses of large-scale parallel computing for high-order CFD on the Tianhe supercomputer[J].Computer Engineering & Science,2020,42(10):1815-1826.
[14]SUN H Q.Redearch of Parallel Computing in ComputationalFluid Dynamics [D].Dalian:Dalian University of Technology,2005.
[15]LÖHNER R,CAMBEROS J,MERRIAM M.Parallel unstructured grid generation[J].Computer Methods in Applied Mechanics and Engineering,1992,95(3):343-357.
[16]LIU S.Research on High Quality Unstructured Mesh Generation Algorithms with Multilevel Parallelism [D].Changsha:National University of Defense Technology,2019.
[17]QI L,XIAO S M,LIU Y C,et al.Research on Parallel Unstructured Mesh Generation Technology Based on GPU[J].Machi-nery Design & Manufacture,2013,2:184-186.
[18]XU Q,LIU T T,LENG J L,et al.Multilevel parallel tetrahedral mesh generation for complex geometric models[J].Journal of National University of Defense Technology,2021,43(2):33-39.
[19]LEE S B.Numerical discrepancy between serial and MPI parallel computations[J].International Journal of Naval Architecture and Ocean Engineering,2016,8(5):434-441.
[20]TOWARA M,SCHANEN M,NAUMANN U.MPI-parallel discrete adjoint OpenFoam[J].Procedia Computer Science,2015,51:19-28.
[21]CAI Y L,XIAO S M,QI L.Locking paralleled GPU-based me-thod research for unstructured mesh generation[J].Computer Engineering and Applications,2013,50(6):56-60.
[22]WEI F,JIN L,LIU J,et al.GPU acceleration of a 2D compressible Euler solver on CUDA-based block-structured Cartesian meshes[J].Journal of the Brazilian Society of Mechanical Sciences and Engineering,2020,42(5):1-12.
[23]WANG N H,CHANG X H,ZHAO Z,et al.Implementation of hybrid MPI+OpenMP parallelization on unstructured CFD solver and its applications in massive unsteady simulations[J].Acta Aeronautica et Astronautica Sinica,2020,41(10):190-204.
[24]HU X,LU Z,ZHANG J,et al.A parallel algorithm for chimera grid with implicit hole cutting method[J].The International Journal of High Performance Computing Applications,2020,34(2):169-177.
[25]CHANG X H,MA R,WANG N H,et al.A parallel implicithole-cutting method based on background mesh for unstructured Chimera grid[J].Computers & Fluids,2020,198:104403.
[27]OpenFOAM User Guide [M/OL].,2021.
[28]JARPNER C.Projection of a mesh on a.stl surface[J/OL].Chalmers University of Technology.
[1] CHEN Xin, LI Fang, DING Hai-xin, SUN Wei-ze, LIU Xin, CHEN De-xun, YE Yue-jin, HE Xiang. Parallel Optimization Method of Unstructured-grid Computing in CFD for DomesticHeterogeneous Many-core Architecture [J]. Computer Science, 2022, 49(6): 99-107.
[2] LI Fang,LI Zhi-hui,XU Jin-xiu,FAN Hao,CHU Xue-sen,LI Xin-liang. Research on Adaptation of CFD Software Based on Many-core Architecture of 100P Domestic Supercomputing System [J]. Computer Science, 2020, 47(1): 24-30.
[3] MENG De-long, WEN Min-hua, WEI Jian-wen and James LIN. Porting and Optimizing OpenFOAM on Sunway TaihuLight System [J]. Computer Science, 2017, 44(10): 64-70.
[4] MA Xin-rong,LIU San-yang and DUAN Zhi-jian. Parallel Alternating Direction Algorithm with Parameters for Solving Banded Linear Systems [J]. Computer Science, 2014, 41(2): 249-252.
[5] . Performance Test of Massively Parallel Program on TH-lA [J]. Computer Science, 2012, 39(3): 265-267.
Full text



No Suggested Reading articles found!