Communication Optimization for Multiphase Flow Solver in the Library of OpenFOAM

Multiphase flow solvers are widely-used applications in OpenFOAM, whose scalability suffers from the costly communication overhead. Therefore, we establish communication-optimized multiphase flow solvers in OpenFOAM. In this paper, we first deliver a scalability bottleneck test on the typical multip...

Full description

Bibliographic Details
Main Authors: Zhipeng Lin, Wenjing Yang, Houcun Zhou, Xinhai Xu, Liaoyuan Sun, Yongjun Zhang, Yuhua Tang
Format: Article
Language:English
Published: MDPI AG 2018-10-01
Series:Water
Subjects:
CFD
PCG
Online Access:http://www.mdpi.com/2073-4441/10/10/1461
id doaj-650fe467603a412880ad9aff533d91b6
record_format Article
spelling doaj-650fe467603a412880ad9aff533d91b62020-11-24T21:18:02ZengMDPI AGWater2073-44412018-10-011010146110.3390/w10101461w10101461Communication Optimization for Multiphase Flow Solver in the Library of OpenFOAMZhipeng Lin0Wenjing Yang1Houcun Zhou2Xinhai Xu3Liaoyuan Sun4Yongjun Zhang5Yuhua Tang6State Key Laboratory of High Performance Computing, College of Computer, National University of Defense Technology, Changsha 410073, ChinaState Key Laboratory of High Performance Computing, College of Computer, National University of Defense Technology, Changsha 410073, ChinaCollege of of Aerospace Science and Engineering, National University of Defense Technology, Changsha 410073, ChinaNational Innovation Institute of Defense Technology, Beijing 100089, ChinaState Key Laboratory of High Performance Computing, College of Computer, National University of Defense Technology, Changsha 410073, ChinaNational Innovation Institute of Defense Technology, Beijing 100089, ChinaState Key Laboratory of High Performance Computing, College of Computer, National University of Defense Technology, Changsha 410073, ChinaMultiphase flow solvers are widely-used applications in OpenFOAM, whose scalability suffers from the costly communication overhead. Therefore, we establish communication-optimized multiphase flow solvers in OpenFOAM. In this paper, we first deliver a scalability bottleneck test on the typical multiphase flow case damBreak and reveal that the Message Passing Interface (MPI) communication in a Multidimensional Universal Limiter for Explicit Solution (MULES) and a Preconditioned Conjugate Gradient (PCG) algorithm is the short slab of multiphase flow solvers. Furthermore, an analysis of the communication behavior is carried out. We find that the redundant communication in MULES and the global synchronization in PCG are the performance limiting factors. Based on the analysis, we propose our communication optimization algorithm. For MULES, we remove the redundant communication and obtain optMULES. For PCG, we import several intermediate variables and rearrange PCG to reduce the global communication. We also overlap the computation of matrix-vector multiply and vector update with the non-blocking computation. The resulting algorithms are respectively referred to as OFPiPePCG and OFRePiPePCG. Extensive experiments show that our proposed method could dramatically increase the parallel scalability and solving speed of multiphase flow solvers in OpenFOAM approximately without the loss of accuracy.http://www.mdpi.com/2073-4441/10/10/1461communication optimizationCFDPCGMULES
collection DOAJ
language English
format Article
sources DOAJ
author Zhipeng Lin
Wenjing Yang
Houcun Zhou
Xinhai Xu
Liaoyuan Sun
Yongjun Zhang
Yuhua Tang
spellingShingle Zhipeng Lin
Wenjing Yang
Houcun Zhou
Xinhai Xu
Liaoyuan Sun
Yongjun Zhang
Yuhua Tang
Communication Optimization for Multiphase Flow Solver in the Library of OpenFOAM
Water
communication optimization
CFD
PCG
MULES
author_facet Zhipeng Lin
Wenjing Yang
Houcun Zhou
Xinhai Xu
Liaoyuan Sun
Yongjun Zhang
Yuhua Tang
author_sort Zhipeng Lin
title Communication Optimization for Multiphase Flow Solver in the Library of OpenFOAM
title_short Communication Optimization for Multiphase Flow Solver in the Library of OpenFOAM
title_full Communication Optimization for Multiphase Flow Solver in the Library of OpenFOAM
title_fullStr Communication Optimization for Multiphase Flow Solver in the Library of OpenFOAM
title_full_unstemmed Communication Optimization for Multiphase Flow Solver in the Library of OpenFOAM
title_sort communication optimization for multiphase flow solver in the library of openfoam
publisher MDPI AG
series Water
issn 2073-4441
publishDate 2018-10-01
description Multiphase flow solvers are widely-used applications in OpenFOAM, whose scalability suffers from the costly communication overhead. Therefore, we establish communication-optimized multiphase flow solvers in OpenFOAM. In this paper, we first deliver a scalability bottleneck test on the typical multiphase flow case damBreak and reveal that the Message Passing Interface (MPI) communication in a Multidimensional Universal Limiter for Explicit Solution (MULES) and a Preconditioned Conjugate Gradient (PCG) algorithm is the short slab of multiphase flow solvers. Furthermore, an analysis of the communication behavior is carried out. We find that the redundant communication in MULES and the global synchronization in PCG are the performance limiting factors. Based on the analysis, we propose our communication optimization algorithm. For MULES, we remove the redundant communication and obtain optMULES. For PCG, we import several intermediate variables and rearrange PCG to reduce the global communication. We also overlap the computation of matrix-vector multiply and vector update with the non-blocking computation. The resulting algorithms are respectively referred to as OFPiPePCG and OFRePiPePCG. Extensive experiments show that our proposed method could dramatically increase the parallel scalability and solving speed of multiphase flow solvers in OpenFOAM approximately without the loss of accuracy.
topic communication optimization
CFD
PCG
MULES
url http://www.mdpi.com/2073-4441/10/10/1461
work_keys_str_mv AT zhipenglin communicationoptimizationformultiphaseflowsolverinthelibraryofopenfoam
AT wenjingyang communicationoptimizationformultiphaseflowsolverinthelibraryofopenfoam
AT houcunzhou communicationoptimizationformultiphaseflowsolverinthelibraryofopenfoam
AT xinhaixu communicationoptimizationformultiphaseflowsolverinthelibraryofopenfoam
AT liaoyuansun communicationoptimizationformultiphaseflowsolverinthelibraryofopenfoam
AT yongjunzhang communicationoptimizationformultiphaseflowsolverinthelibraryofopenfoam
AT yuhuatang communicationoptimizationformultiphaseflowsolverinthelibraryofopenfoam
_version_ 1726010610106236928