{"title":"DualSPHysics+:增强型 DualSPHysics,提高了精度、能量守恒和连续性方程的分辨率","authors":"Yi Zhan , Min Luo , Abbas Khayyer","doi":"10.1016/j.cpc.2024.109389","DOIUrl":null,"url":null,"abstract":"<div><div>This paper presents an enhanced version of the well-known SPH (Smoothed Particle Hydrodynamics) open-source code DualSPHysics for the simulation of free-surface fluid flows, leading to the DualSPHysics+ code. The enhancements are made through incorporation of several schemes with respect to stability, accuracy and energy/volume conservation issues in simulating incompressible free-surface fluid flows within the weakly compressible SPH formalism. The Optimized Particle Shifting (OPS) scheme is implemented to improve the accuracy of particle shifting vectors in the free-surface region. To mitigate energy dissipation and maintain consistency, the artificial viscosity in <em>δ</em>-SPH is substituted with a Riemann stabilization term, leading to the <em>δ</em>R-SPH. The Velocity divergence Error Mitigating (VEM) and Volume Conservation Shifting (VCS) schemes are adopted in DualSPHysics+ to mitigate the velocity divergence error and improve the volume conservation, and hence to enhance the resolution of the continuity equation. To further reduce both the instantaneous and accumulated errors in velocity divergence, a Hyperbolic/Parabolic Divergence Cleaning (HPDC) scheme is incorporated in addition to the VEM scheme. The implementations of the introduced schemes on both CPU and GPU-based versions of the DualSPHysics+ code along with details on the compilation, running and computational performance are presented. Validations in terms of accuracy, energy conservation and convergence of DualSPHysics+ are shown via several relevant benchmarks. It is demonstrated that a better velocity divergence error cleaning in both instantaneous and accumulated errors can be achieved by the combination of VEM and HPDC. Meanwhile, the excessive energy dissipation by the artificial viscosity is shown to be suppressed by adopting the Riemann stabilization term. Enhanced resolution of the continuity equation along with improved energy conservation of DualSPHysics+ advance the SPH-based simulation of incompressible free-surface fluid flows.</div></div><div><h3>Program Summary</h3><div><em>Program title:</em> DualSPHysics+.</div><div><em>CPC Library link to program files</em> <span><span>https://doi.org/10.17632/xnrfv9pgb5.1</span><svg><path></path></svg></span>.</div><div><em>Licensing provisions:</em> GNU Lesser General Public License (LGPL).</div><div><em>Programming language:</em> C++, CUDA.</div><div><em>External dependencies:</em> DualSPHysics (<span><span>https://dual.sphysics.org</span><svg><path></path></svg></span>).</div><div><em>Nature of problem:</em> Weakly Compressible Smoothed Particle Hydrodynamics (WCSPH) method and the open-source code DualSPHysics have been widely applied to simulate free-surface fluid flows. Both the general WCSPH method and the more specific DualSPHysics need further improvements in several aspects, including spurious pressure fluctuations, non-conservation of volume and excessive energy dissipation, to enhance the accuracy and stability of simulations.</div><div><em>Solution method:</em> DualSPHysics+ implements a set of numerical schemes to enhance the overall accuracy, divergence-free velocity field, invariant density field and energy conservation in the simulation of free-surface fluid flows based on DualSPHysics.</div></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"306 ","pages":"Article 109389"},"PeriodicalIF":7.2000,"publicationDate":"2024-10-05","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"DualSPHysics+: An enhanced DualSPHysics with improvements in accuracy, energy conservation and resolution of the continuity equation\",\"authors\":\"Yi Zhan , Min Luo , Abbas Khayyer\",\"doi\":\"10.1016/j.cpc.2024.109389\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><div>This paper presents an enhanced version of the well-known SPH (Smoothed Particle Hydrodynamics) open-source code DualSPHysics for the simulation of free-surface fluid flows, leading to the DualSPHysics+ code. The enhancements are made through incorporation of several schemes with respect to stability, accuracy and energy/volume conservation issues in simulating incompressible free-surface fluid flows within the weakly compressible SPH formalism. The Optimized Particle Shifting (OPS) scheme is implemented to improve the accuracy of particle shifting vectors in the free-surface region. To mitigate energy dissipation and maintain consistency, the artificial viscosity in <em>δ</em>-SPH is substituted with a Riemann stabilization term, leading to the <em>δ</em>R-SPH. The Velocity divergence Error Mitigating (VEM) and Volume Conservation Shifting (VCS) schemes are adopted in DualSPHysics+ to mitigate the velocity divergence error and improve the volume conservation, and hence to enhance the resolution of the continuity equation. To further reduce both the instantaneous and accumulated errors in velocity divergence, a Hyperbolic/Parabolic Divergence Cleaning (HPDC) scheme is incorporated in addition to the VEM scheme. The implementations of the introduced schemes on both CPU and GPU-based versions of the DualSPHysics+ code along with details on the compilation, running and computational performance are presented. Validations in terms of accuracy, energy conservation and convergence of DualSPHysics+ are shown via several relevant benchmarks. It is demonstrated that a better velocity divergence error cleaning in both instantaneous and accumulated errors can be achieved by the combination of VEM and HPDC. Meanwhile, the excessive energy dissipation by the artificial viscosity is shown to be suppressed by adopting the Riemann stabilization term. Enhanced resolution of the continuity equation along with improved energy conservation of DualSPHysics+ advance the SPH-based simulation of incompressible free-surface fluid flows.</div></div><div><h3>Program Summary</h3><div><em>Program title:</em> DualSPHysics+.</div><div><em>CPC Library link to program files</em> <span><span>https://doi.org/10.17632/xnrfv9pgb5.1</span><svg><path></path></svg></span>.</div><div><em>Licensing provisions:</em> GNU Lesser General Public License (LGPL).</div><div><em>Programming language:</em> C++, CUDA.</div><div><em>External dependencies:</em> DualSPHysics (<span><span>https://dual.sphysics.org</span><svg><path></path></svg></span>).</div><div><em>Nature of problem:</em> Weakly Compressible Smoothed Particle Hydrodynamics (WCSPH) method and the open-source code DualSPHysics have been widely applied to simulate free-surface fluid flows. Both the general WCSPH method and the more specific DualSPHysics need further improvements in several aspects, including spurious pressure fluctuations, non-conservation of volume and excessive energy dissipation, to enhance the accuracy and stability of simulations.</div><div><em>Solution method:</em> DualSPHysics+ implements a set of numerical schemes to enhance the overall accuracy, divergence-free velocity field, invariant density field and energy conservation in the simulation of free-surface fluid flows based on DualSPHysics.</div></div>\",\"PeriodicalId\":285,\"journal\":{\"name\":\"Computer Physics Communications\",\"volume\":\"306 \",\"pages\":\"Article 109389\"},\"PeriodicalIF\":7.2000,\"publicationDate\":\"2024-10-05\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Computer Physics Communications\",\"FirstCategoryId\":\"101\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S0010465524003126\",\"RegionNum\":2,\"RegionCategory\":\"物理与天体物理\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q1\",\"JCRName\":\"COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Computer Physics Communications","FirstCategoryId":"101","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0010465524003126","RegionNum":2,"RegionCategory":"物理与天体物理","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS","Score":null,"Total":0}
DualSPHysics+: An enhanced DualSPHysics with improvements in accuracy, energy conservation and resolution of the continuity equation
This paper presents an enhanced version of the well-known SPH (Smoothed Particle Hydrodynamics) open-source code DualSPHysics for the simulation of free-surface fluid flows, leading to the DualSPHysics+ code. The enhancements are made through incorporation of several schemes with respect to stability, accuracy and energy/volume conservation issues in simulating incompressible free-surface fluid flows within the weakly compressible SPH formalism. The Optimized Particle Shifting (OPS) scheme is implemented to improve the accuracy of particle shifting vectors in the free-surface region. To mitigate energy dissipation and maintain consistency, the artificial viscosity in δ-SPH is substituted with a Riemann stabilization term, leading to the δR-SPH. The Velocity divergence Error Mitigating (VEM) and Volume Conservation Shifting (VCS) schemes are adopted in DualSPHysics+ to mitigate the velocity divergence error and improve the volume conservation, and hence to enhance the resolution of the continuity equation. To further reduce both the instantaneous and accumulated errors in velocity divergence, a Hyperbolic/Parabolic Divergence Cleaning (HPDC) scheme is incorporated in addition to the VEM scheme. The implementations of the introduced schemes on both CPU and GPU-based versions of the DualSPHysics+ code along with details on the compilation, running and computational performance are presented. Validations in terms of accuracy, energy conservation and convergence of DualSPHysics+ are shown via several relevant benchmarks. It is demonstrated that a better velocity divergence error cleaning in both instantaneous and accumulated errors can be achieved by the combination of VEM and HPDC. Meanwhile, the excessive energy dissipation by the artificial viscosity is shown to be suppressed by adopting the Riemann stabilization term. Enhanced resolution of the continuity equation along with improved energy conservation of DualSPHysics+ advance the SPH-based simulation of incompressible free-surface fluid flows.
Program Summary
Program title: DualSPHysics+.
CPC Library link to program fileshttps://doi.org/10.17632/xnrfv9pgb5.1.
Licensing provisions: GNU Lesser General Public License (LGPL).
Nature of problem: Weakly Compressible Smoothed Particle Hydrodynamics (WCSPH) method and the open-source code DualSPHysics have been widely applied to simulate free-surface fluid flows. Both the general WCSPH method and the more specific DualSPHysics need further improvements in several aspects, including spurious pressure fluctuations, non-conservation of volume and excessive energy dissipation, to enhance the accuracy and stability of simulations.
Solution method: DualSPHysics+ implements a set of numerical schemes to enhance the overall accuracy, divergence-free velocity field, invariant density field and energy conservation in the simulation of free-surface fluid flows based on DualSPHysics.
期刊介绍:
The focus of CPC is on contemporary computational methods and techniques and their implementation, the effectiveness of which will normally be evidenced by the author(s) within the context of a substantive problem in physics. Within this setting CPC publishes two types of paper.
Computer Programs in Physics (CPiP)
These papers describe significant computer programs to be archived in the CPC Program Library which is held in the Mendeley Data repository. The submitted software must be covered by an approved open source licence. Papers and associated computer programs that address a problem of contemporary interest in physics that cannot be solved by current software are particularly encouraged.
Computational Physics Papers (CP)
These are research papers in, but are not limited to, the following themes across computational physics and related disciplines.
mathematical and numerical methods and algorithms;
computational models including those associated with the design, control and analysis of experiments; and
algebraic computation.
Each will normally include software implementation and performance details. The software implementation should, ideally, be available via GitHub, Zenodo or an institutional repository.In addition, research papers on the impact of advanced computer architecture and special purpose computers on computing in the physical sciences and software topics related to, and of importance in, the physical sciences may be considered.