Generalized and high-efficiency arbitrary-positioned buffer for smoothed particle hydrodynamics

Shuoguo Zhang,Yu Fan,Yaru Ren,Bin Qian,Xiangyu Hu
2024-06-25
Abstract:This paper develops an arbitrary-positioned buffer for the smoothed particle hydrodynamics (SPH) method, whose generality and high efficiency are achieved through two techniques. First, with the local coordinate system established at each arbitrary-positioned in-/outlet, particle positions in the global coordinate system are transformed into those in it via coordinate transformation. Since one local axis is located perpendicular to the in-/outlet boundary, the position comparison between particles and the threshold line or surface can be simplified to just this coordinate dimension. Second, particle candidates subjected to position comparison at one specific in-/outlet are restricted to those within the local cell-linked lists nearby the defined buffer zone, which significantly enhances computational efficiency due to a small portion of particles being checked. With this developed buffer, particle generation and deletion at arbitrary-positioned in- and outlets of complex flows can be handled efficiently and straightforwardly. We validate the effectiveness and versatility of the developed buffer through 2-D and 3-D non-/orthogonal uni-/bidirectional flows with arbitrary-positioned in- and outlets, driven by either pressure or velocity boundary conditions.
Computational Engineering, Finance, and Science
What problem does this paper attempt to address?
This paper attempts to solve the problem of how to handle particle generation and deletion efficiently and generally in fluid simulations with complex geometries and multiple inlets and outlets at arbitrary positions. Specifically: 1. **Limitations of classical methods**: - In the traditional Smoothed Particle Hydrodynamics (SPH) method, the periodic boundary conditions cannot handle particle generation and deletion at the inlets and outlets of non - orthogonal and complex geometries. - Although the existing buffer methods can solve the problem to a certain extent, they are inefficient and not universal when dealing with multiple inlets and outlets at arbitrary positions. 2. **The proposed new method**: - The author has developed an arbitrary - position buffer method based on local coordinate system transformation, achieving its universality and high efficiency through the following two techniques: 1. **Local coordinate system transformation**: Establish a local coordinate system at each inlet and outlet at an arbitrary position, and convert the particle positions in the global coordinate system to the local coordinate system. Since one local axis is perpendicular to the inlet - outlet boundary, the position comparison between particles and the threshold line or surface can be simplified to be carried out only in one coordinate dimension. 2. **Local cell linked - list restriction**: At a specific inlet and outlet, only check the particle candidates within the local cell linked - list defined near the buffer, thereby significantly improving the computational efficiency. 3. **Verification and application**: - The author has tested the effectiveness and universality of this method through two - dimensional and three - dimensional non - orthogonal unidirectional and bidirectional flows, including examples such as inclined VIPO (velocity inlet, pressure outlet) and PIVO (pressure inlet, velocity outlet) channel flows, T - shaped and Y - shaped channel flows, and rotating sprinklers. - The results show that this method can handle particle generation and deletion efficiently and accurately, and is highly consistent with the theoretical solutions and the results of the commercial software Fluent. Through these improvements, this method not only improves the computational efficiency but also has the ability to handle complex geometries and multiple inlets and outlets at arbitrary positions, and is suitable for a wider range of engineering fluid simulation scenarios.