Domain Decomposition Method Usage for Parallelization and Extra Preconditioning of Viscous Incompressible Flow Simulation by Using the LS-STAG Method
https://doi.org/10.15514/ISPRAS-2022-35(5)-19
Abstract
As a rule, the main part of the computational costs in the numerical solution of problems in continuum mechanics consists in the solving of large sparse systems of linear algebraic equations. For this reason, efficient parallelization of this particular procedure can significantly speed up the simulation. To solve this problem, two main approaches can be used. The simplest approach consists in parallelizing of matrix-vector operations in a usual iterative solver. It requires several synchronization points and exchanges of coefficients at each iteration of the solver, which does not significantly speed up the simulation process as a whole. Therefore, domain decomposition methods are preferable. These methods involve dividing the computational domain into subdomains, constructing and solving separate problems in them, as well as some procedure to coordinate the solution between subdomains to ensure global convergence. Subdomains can overlap, as in the Schwartz method used in OpenFOAM, or they can be separated by interface sections, on which their own interface task is built, as in the Schur complement method. The latter method is used in this research to construct a parallel algorithm for viscous incompressible flow simulation by using the immersed boundary method LS-STAG with cut-cells and level-set functions. The resulting matrix of the interface system has a block tridiagonal structure. To speed up prototyping, OpenMP parallel programming technology is used in the software implementation of the developed algorithm, so computational experiments are carried out only on systems with shared memory, in particular on individual nodes of the educational and experimental cluster of the Applied Mathematics Department, Bauman Moscow State Technical University. To verify and evaluate the effectiveness of the developed parallel algorithm, a well-studied test problem about simulation of two-dimensional flow around a stationary circular airfoil is considered. Computations on a sequence of meshes with different numbers of subdomains show that the parallel algorithm allows one to obtain the same numerical solution as the original algorithm of the LS-STAG method, and the computed values of the Strouhal number and drag coefficient are in good agreement with the experimental and computational data known in the literature. Experiments demonstrate that the developed algorithm with domain decomposition allows to accelerate simulation even in sequential mode by reducing the number of solver iterations, i.e. the domain decomposition method acts as an additional preconditioner. Due to this property, the acceleration is superlinear when simulating in parallel mode with developed algorithm. This effect persists up to a certain number of subdomains, which depends on the size of the problem.
About the Authors
Ilia Konstantinovich MARCHEVSKYRussian Federation
Dr. Sci. (Phys.-Math.), Associate professor, Professor of Applied Mathematics department, Bauman Moscow State Technical University\. Research interests: computational fluid dynamics, vortex particle methods, theory of stability, numerical methods, high performance computing, elementary mathematics.
Valeria Valentinovna PUZIKOVA
Russian Federation
Cand. Sci. (Phys.-Math.), Software Development Expert in High Performance Libraries Department, YADRO. Research interests: solvers and preconditioners for SLAE, applied mathematics software development, computational hydrodynamics, physics engines for AR/VR, high performance computations, numerical methods.
References
1. Saad Y., Iterative Methods for Sparse Linear Systems. Society for Industrial and Applied Mathematics, 2003. 184 p.
2. Cools S., Vanroose W. The communication-hiding pipelined BiCGstab method for the parallel solution of large unsymmetric linear systems. Parallel Computing, 2017, vol. 65, pp. 1-20. DOI: 10.1016/j.parco.2017.04.005
3. Quarteroni A., Valli A. Domain Decomposition Methods for Partial Differential Equations. Oxford, 1999. 376 p.
4. OpenFOAM: API Guide: OpenFOAM®: Open source CFD: API, Available at: https://www.openfoam.com/documentation/guides/latest/api/index.html, accessed 23.10.2023.
5. Scotch: a software package for graph and mesh/hypergraph partitioning, graph clustering, and sparse matrix ordering, Available at: https://gitlab.inria.fr/scotch/scotch, accessed 23.10.2023.
6. METIS, Available at: https://github.com/KarypisLab/METIS, accessed 23.10.2023.
7. Mittal R., Iaccarino G. Immersed boundary methods. Annu. Rev. Fluid Mech, 2005, vol. 37, pp. 239–261. DOI: 10.1146/annurev.fluid.37.061903.175743
8. Osher S. J., Fedkiw R. Level set methods and dynamic implicit surfaces. Springer, 2003. 286 p.
9. Cheny Y., Botella O. The LS-STAG method: A new immersed boundary/level-set method for the computation of incompressible viscous flows in complex moving geometries with good conservation properties. J. Comput. Phys., 2010, vol. 229, pp. 1043-1076. DOI: 10.1016/j.jcp.2009.10.007
10. Nikfarjam F., Cheny Y., Botella O. The LS-STAG immersed boundary / cut-cell method for non-Newtonian flows in 3D extruded geometries. Comp. Phys. Comm., 2018, vol. 226, pp. 67-80. DOI: 10.1016/j.cpc.2018.01.006
11. Marchevsky I.K., Puzikova V.V. Modification of the LS-STAG immersed boundary method for simulating turbulent flows. Herald of the Bauman Moscow State Technical University. Natural Sciences, 2017, № 5, pp. 19-34. DOI: 10.18698/1812-3368-2017-5-19-34
12. Marchevsky I.K., Puzikova V.V. The modified LS-STAG method application for planar viscoelastic flow computation in a 4:1 contraction channel. Herald of the Bauman Moscow State Technical University. Natural Sciences, 2021, № 3, pp. 46-63. DOI: 10.18698/1812-3368-2021-3-46-63
13. Pacull F., Garbey M. A parallel immersed boundary method for blood-like suspension flow simulations. Lect. Notes in Comp. Sci. and Eng., 2010, vol. 74, pp. 1-8. DOI: 10.1007/978-3-642-14438-7_16
14. Wiens J. K., Stockie J. M. An efficient parallel immersed boundary algorithm using a pseudo-compressible fluid solver. J. Comp. Phys., 2015, vol. 281, pp. 917-941. DOI: 10.1016/j.jcp.2014.10.058
15. Пузикова В. В. Параллельный программный комплекс LS-STAG_DDM для моделирования методом LS-STAG с декомпозицией области; свидетельство о государственной регистрации программы для ЭВМ № 2023665707, зарегистрировано в Реестре программ для ЭВМ 19.07.23 / Puzikova V. V. Parallel software package LS-STAG_DDM for simulation by using the LS-STAG method with domain decomposition; Certificate of state registration of a computer program No. 2023665707, registered in the Register of Computer Programs on 07/19/23 (in Russian).
16. Wesseling P. An introduction to multigrid methods. John Willey & Sons Ltd., 1991. 296 p.
17. Rajani B. N., Kandasamy A., Majumdar S. Numerical simulation of laminar flow past a circular cylinder. Applied Mathematical Modeling, 2009, vol. 33, pp. 1228-1247. DOI: 10.1016/j.apm.2008.01.017
18. Qu L., Norberg C., Davidson L., Peng S.-H., Wang F. Quantitative numerical analysis of flow past a circular cylinder at Reynolds number between 50 and 200. J. Fluids Struct., 2013, vol. 39, pp. 347-370. DOI: 10.1016/j.jfluidstructs.2013.02.007
19. Williamson C. H. K. Vortex dynamics in the cylinder wake. Annu. Rev. Fluid. Mech., 1996, vol. 28, pp. 477-539. DOI: 10.1146/annurev.fl.28.010196.002401
20. Wieselberger C. New data on the laws of fluid resistance.Technical Notes. National Advisory Committee for Aeronautics, 1923, № 84, pp. 1-16.
Review
For citations:
MARCHEVSKY I.K., PUZIKOVA V.V. Domain Decomposition Method Usage for Parallelization and Extra Preconditioning of Viscous Incompressible Flow Simulation by Using the LS-STAG Method. Proceedings of the Institute for System Programming of the RAS (Proceedings of ISP RAS). 2023;35(5):287-302. (In Russ.) https://doi.org/10.15514/ISPRAS-2022-35(5)-19