Next Article in Journal
R1234ze(E) Flow Boiling inside a 2.5 mm ID Smooth Tube and Comparison against an Equivalent Microfin Tube
Previous Article in Journal
On the Use of Structured Prior Models for Bayesian Compressive Sensing of Modulated Signals
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Enhancing the Iterative Smoothed Particle Hydrodynamics Method

Department of Engineering, University of Palermo, 90133 Palermo, Italy
Appl. Sci. 2021, 11(6), 2628; https://doi.org/10.3390/app11062628
Submission received: 1 March 2021 / Revised: 8 March 2021 / Accepted: 11 March 2021 / Published: 16 March 2021
(This article belongs to the Section Computing and Artificial Intelligence)

Abstract

:
Motivated by recent research on the iterative approach proposed for the smoothed particle hydrodynamics (ISPH) method, some ideas to improve the process are introduced. The standard procedure is enhanced iterating on the residuals preserving the matrix-free nature of the process. The method is appealing providing reasonable results with disordered data distribution too and no kernel variations are needed in the approximation. This work moves forward with a novel formulation requiring a lower number of iterations to reach a desired accuracy. The computational procedure is described and some results are introduced to appreciate the proposed formulation.

1. Introduction

Mesh-free methods are promising approaches emerging in recent years as valid computational alternatives to grid-based ones. Grid-based methods adopt a computational frame which is made up of nodes, where the field variables are evaluated, related to each other through a predefined nodal connectivity. Mesh-free methods are independent of a mesh and are well suited for problems with complex geometries or problems which require highly adaptive discretizations maintaining a suitable computational effort [1,2,3]. Smoothed Particle Hydrodynamics is a popular kernel based approach introduced in astrophysics [4,5,6,7,8,9] and it is being increasingly used [3,10,11,12,13,14]. The method provides a spatial approximation via a discrete kernel convolution. In [15] the standard procedure has been improved by means of an iterative approach refining the residuals. An approximant is generated by employing strictly definite positive kernel functions and the method, in convergence, improves the results without requiring evenly spaced data distribution. If the linear approximation order is ensured [16,17], the iterative procedure performs better. In a recent paper [18] some results on this improved approach have been presented, however, the algorithm can become prohibitive for the number of iterations. In this work, starting with the linear approximation order, a formulation which guarantees accuracy with a lower number of iterations is proposed and discussed. The paper is organized as follows. In Section 2 the main ideas of the method are presented. In Section 3 the iterative process and the fast formulation are described. In Section 4 numerical validations are reported choosing the linear approximation order as starting iteration estimate. In Section 5, remarks and ideas on future work are outlined.

2. The Standard Approximation

The method approximates a function f at x R d , for d 1 , by means of the kernel approximation
< f h ( x ) > = Ω f ( ξ ) K ( x , ξ ; h ) d Ω
where ξ = ( ξ ( 1 ) , . . . , ξ ( d ) ) and K ( x , ξ ; h ) is the k e r n e l   f u n c t i o n . The spatial kernel influence is localized by the smoothing length h. The continuum is decomposed into a set of arbitrarily distributed data sites Ξ = ( ξ j ) j = 1 N , where ( f ( ξ j ) ) j = 1 N are the corresponding measurements and the p a r t i c l e   a p p r o x i m a t i o n is introduced as
f h ( x ) = j = 1 N f ( ξ j ) K ( x , ξ j ; h ) d Ω j
where d Ω j is the measure of the subdomain Ω j associated with the data ξ j .
Particle approximation often loses its accuracy, especially on the boundary and with non uniform data locations [19]. Making use of the Taylor series expansion, by retaining p terms, multiplying for the kernel function and integrating over Ω [16,17,19] improvements can be gained. For p = 1 it means
f ( x ) = < I h ( x ) > < f h ( x ) > + O ( h )
with < I h ( x ) > = 1 / Ω K ( x , ξ ; h ) d Ω and the corresponding discrete formulation is
f ( x ) = I h ( x ) f h ( x ) + O ( h )
with I h ( x ) = 1 / j = 1 N K ( x , ξ j ; h ) d Ω j .
By increasing p, the order of accuracy increases, requiring the solution of linear systems for each evaluation point [16,17]. In [15] an iterative matrix-free approach (ISPH) is introduced to improve the standard method. In [18] it is adopted refining the normalized approach (4) as starting values for the iterations. In the following section an enhanced iterative formulation (E-ISPH) is proposed. For the sake of clarity, a brief overview on the standard iterative formulation is at first described.

3. The Iterative Approximation

3.1. The Iterative Formulation (ISPH)

Let f be the vector collecting the function values at the data in Ξ , k ( x ) the vector with the kernel values at Ξ referring to the evaluation point x , Ω the diagonal matrix with the significant entries equal to the measures d Ω j , the SPH approximant (2) can be expressed as
f h ( x ) = k ( x ) Ω f .
By assuming
f h ( 0 ) ( x ) f h ( x )
the sequence { f h ( n ) ( x ) } is provided by iterating on the residuals.
Let A a matrix with entries A i , j = K ( ξ i , ξ j ; h ) d Ω j , i , j = 1 , , N , and
s ( 0 ) = f A f
for n N , n > 0 the term of the succession is obtained as
f h ( n ) ( x ) = f h ( n 1 ) ( x ) + k ( x ) Ω s ( n 1 ) = k ( x ) Ω k = 0 n ( I A ) k f
and
s ( n ) = s ( n 1 ) A s ( n 1 ) .
For n , the summation in (7) approximates A 1 if and only if I A 2 < 1 [20]; therefore, under this condition the { f h ( n ) ( x ) } converges to the interpolant P h ( x )
The solution for P h ( x ) is admitted with strictly definite positive kernel functions on pair-wise distinct data sites and this is the only assumption for the data location [21,22]. It is not necessary to ask for evenly spaced data in the construction of { f h ( n ) ( x ) } .

3.2. The Enhanced Iterative Formulation (E-ISPH)

In order to speed-up the process, the computation is revisited focusing on
S ( n ) = k = 0 n ( I A ) k n = 0 , 1 , 2 ,
For each n, the summation S ( 2 n 1 ) of 2 n terms is taken into account. Let S ˜ ( n ) : = S ( 2 n 1 ) , i.e.,
S ˜ ( n ) = k = 0 2 n 1 ( I A ) k = k = 0 2 n 1 1 ( I A ) k [ I + ( I A ) 2 n 1 ] .
By considering that
( I A ) s = I [ j = 0 s 1 ( I A ) j ] A
by substituting (10) in (9) with s = 2 n 1 the following relation holds
S ˜ ( n ) = k = 0 2 n 1 1 ( I A ) k { I + I [ j = 0 2 n 1 1 ( I A ) j ] A } .
Consequently, the subsequent recursive formula can be written
S ˜ ( n ) = 2 S ˜ ( n 1 ) ( S ˜ ( n 1 ) ) 2 A .
Now, the (12) is employed in the overall computation, giving rise to the new succession { f ˜ ( n ) ( x ) }. The described enhanced formulation is comparable in accuracy to ISPH, requiring a reduced number of iterations. In the next section, the behavior of the fast procedure E-ISPH is reported and compared with the standard SPH and ISPH formulations.

4. Numerical Results

The Franke’s function (13) with d = 2 depicted in Figure 1, taken from the scattered data literature [23,24], is referred to as test function
f ( x ( 1 ) , x ( 2 ) ) = 0.75 exp ( 9 x ( 1 ) 2 ) 2 + ( 9 x ( 2 ) 2 ) 2 4 + + 0.75 exp ( 9 x ( 1 ) + 1 ) 2 49 ( 9 x ( 2 ) + 1 ) 2 10 + + 0.5 exp ( 9 x ( 1 ) 7 ) 2 + ( 9 x ( 2 ) 3 ) 2 4 + 0.2 exp ( 9 x ( 1 ) 4 ) 2 ( 9 x ( 2 ) 7 ) 2 .
Two sets of data sites are considered: the gridded Ξ G , composed of regular distribution points, and the Halton Ξ H [25] which consists of unevenly distribution points. The h a l t o n s e t function of MATLAB© is used to generate Ξ H . The accuracy of the estimates is measured with
R M S E = i = 1 M | f h ( x i ) f ( x i ) | 2 M
by fixing M = 1600 as the number of evaluation points and N = ( 2 t + 1 ) 2 , t = 1,2,.., as the number of data sites increasing in the unit domain. The kernel function is the Gaussian one.
Some results on the accuracy and on the convergence are illustrated. The improvements in the linear approximation are evident in Table 1, where the RMSEs for the standard and the formulation with p = 1 are included, referring to the Ξ G and Ξ H data distributions. In Table 2 and Table 3, the error behavior adopting the iterative process ISPH, assuming f h ( 0 ) with p = 1, is shown for Ξ G and Ξ H respectively. A significant reduction, for the two data sequences, can be appreciated by increasing N and the number of the iterations. In Table 4 and Table 5, the RMSEs refer to the enhanced iterative approach E-ISPH for Ξ G and Ξ H showing an accuracy comparable to ISPH requiring a reduced number of iterations. In Figure 2, Figure 3 and Figure 4 the RMSEs behavior is reported in a loglog plot comparing the SPH, ISPH and E-ISPH approaches. In Figure 5, the time (s), required by the ISPH and E-ISPH to reach a comparable accuracy in the approximation, is exhibited in a loglog plot too. All simulations have been executed with a processor 2.3 GHz Intel Core i9 8 core.

5. Conclusions

The iterative procedure adopted via residual iterations gives interesting results into SPH approximation avoiding matrix generation and without changes on the kernel function. A normalized version which guarantees the linear order of approximation is a valid strategy coupled in this paper with a faster approach requiring less number of iterations to achieve the desired accuracy. Work in extending the procedure to differential operators is in progress, so allowing one to adopt the method for a large variety of problems in the applied sciences.

Funding

This research was funded by Project SRS Cod. 87711000344, CUP G29J18000710007 RNA-COR 1447997.

Acknowledgments

The author acknowledges support by the INdAM-GNCS Project 2020 “Multivariate approximation and functional equations for numerical modeling”.

Conflicts of Interest

The author declares no conflict of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript, or in the decision to publish the results.

References

  1. Ala, G.; Fasshauer, G.E.; Francomano, E.; Ganci, S.; McCourt, M. An augmented MFS approach for brain activity reconstruction. Math. Comput. Simul. 2017, 141, 3–15. [Google Scholar] [CrossRef]
  2. Francomano, E.; Hilker, F.M.; Paliaga, M.; Venturino, E. An efficient method to reconstruct invariant manifolds of saddle points. Dolomites Res. Notes Approx. 2017, 10, 25–30. [Google Scholar]
  3. Liu, M.B.; Liu, G.R. Smoothed particle hydrodynamics (SPH): An overview and recent developments. Arch. Comput. Methods Eng. 2010, 17, 25–76. [Google Scholar] [CrossRef] [Green Version]
  4. Gingold, R.A.; Monaghan, J.J. Smoothed particle hydrodynamics: Theory and application on spherical stars. Monthly Notices R. Astronom. Soc. 1977, 181, 375–389. [Google Scholar] [CrossRef]
  5. Gingold, R.A.; Monaghan, J.J. Kernel estimates as a basis for general particle method in hydrodynamics. J. Comput. Phys. 1982, 46, 429–453. [Google Scholar] [CrossRef]
  6. Lucy, L.B. A numerical approach to the testing of fusion process. Astron J. 1977, 82, 1013–1024. [Google Scholar] [CrossRef]
  7. Monaghan, J.J.; Lattanzio, J.C. A refined particle method for astrophysical problems. Astron Astrophys. 1985, 149, 135–143. [Google Scholar]
  8. Monaghan, J.J. An introduction to SPH. Comput. Phys. Commun. 1988, 48, 89–96. [Google Scholar] [CrossRef]
  9. Monaghan, J.J. Smoothed particle hydrodynamics. Ann. Rev. Astron. Astrophys. 1992, 30, 543–574. [Google Scholar] [CrossRef]
  10. Ala, G.; Francomano, E.; Millunzi, M.; Paliaga, M. An advanced numerical treatment of EM absorption in human tissue. In Proceedings of the 20th IEEE Mediterranean Electrotechnical Conference, MELECON 2020, Palermo, Italy, 16–18 June 2020; Volume 9140687, pp. 439–442. [Google Scholar]
  11. Ala, G.; Francomano, E. A multi-sphere particle numerical model for non-invasive investigations of neuronal human brain activity. Prog. Electromagn. Res. Lett. 2012, 25, 428–440. [Google Scholar] [CrossRef] [Green Version]
  12. Daropoulos, V.; Augustin, M.; Weickertm, J. Sparse Inpainting with Smoothed Particle Hydrodynamics. arXiv 2020, arXiv:2011.11289v1. [Google Scholar]
  13. Di Blasi, G.; Francomano, E.; Tortorici, A.; Toscano, E. A Smoothed Particle Image Reconstruction method. Calcolo 2011, 48, 61–74. [Google Scholar] [CrossRef]
  14. Ulrich, C.; Leonardi, M.; Rung, T. Multi-physics SPH simulation of complex marine-engineering hydrodynamic problems. Ocean Eng. 2013, 64, 109–121. [Google Scholar] [CrossRef]
  15. Francomano, E.; Paliaga, M. The smoothed particle hydrodynamics method via residual iteration. Comput. Methods Appl. Mech. Eng. 2019, 352, 237–255. [Google Scholar] [CrossRef]
  16. Francomano, E.; Paliaga, M. Highlighting numerical insights of an efficient SPH method. Appl. Math. Comput. 2018, 339, 899–915. [Google Scholar] [CrossRef]
  17. Liu, M.B.; Xie, W.P.; Liu, G.R. Restoring particle inconsistency in smoothed particle hydrodynamics. Appl. Numer. Math. 2016, 56, 19–36. [Google Scholar] [CrossRef]
  18. Francomano, E.; Paliaga, M. A normalized iterative Smoothed Particle Hydrodynamics method. Math. Comput. Simul. 2020, 176, 171–180. [Google Scholar] [CrossRef]
  19. Liu, G.R.; Liu, M.B. Smoothed Particle Hydrodynamics—A Mesh-Free Particle Method; World Scientific Publishing: Singapore, 2003. [Google Scholar]
  20. Golub, G.H.; Van Loan, C.F. Matrix Computations, 4th ed.; Johns Hopkins, University Press: Baltimore, MD, USA, 2012. [Google Scholar]
  21. Buhmann, M.D. Radial Basis Functions: Theory and Implementations; Cambridge Monogr. Appl. Comput. Math.; Cambridge University Press: Cambridge, UK, 2003. [Google Scholar]
  22. Fasshauer, G.E.; Zhang, J.G. Iterated approximate moving least square appoximation. Comput. Methods Adv. Meshfree Tech. 2007, 5, 221–239. [Google Scholar]
  23. Franke, R. A Critical Comparison of Some Methods for Interpolation of Scattered Data; NPS-53-79-003; Naval Postgraduate School Tech. Rep.: Monterey, CA, USA, 1979. [Google Scholar]
  24. Renka, R.J.; Brown, R. Algorithm 792: Accuracy test of ACM algorithms for interpolation of scattered data in the plane. ACM Trans. Math. Soft. 1999, 25, 78–94. [Google Scholar] [CrossRef]
  25. Halton, J.H. On the efficiency of certain quasi-random sequences of points in evaluating multi-dimensional integrals. Num. Math. 1960, 2, 84–90. [Google Scholar] [CrossRef]
Figure 1. Test function in Equation (13).
Figure 1. Test function in Equation (13).
Applsci 11 02628 g001
Figure 2. RMSEs versus number of data sites ( Ξ H ). (a) Comparison between SPH and ISPH; (b) comparison between SPH and E-ISPH. All the computations are with starting normalized values and 10 n 40 .
Figure 2. RMSEs versus number of data sites ( Ξ H ). (a) Comparison between SPH and ISPH; (b) comparison between SPH and E-ISPH. All the computations are with starting normalized values and 10 n 40 .
Applsci 11 02628 g002aApplsci 11 02628 g002b
Figure 3. RMSEs versus number of data sites ( Ξ H ). (a) Comparison between SPH and ISPH; (b) comparison between SPH and E-ISPH. All the computations are with starting normalized values and 10 n 40 .
Figure 3. RMSEs versus number of data sites ( Ξ H ). (a) Comparison between SPH and ISPH; (b) comparison between SPH and E-ISPH. All the computations are with starting normalized values and 10 n 40 .
Applsci 11 02628 g003
Figure 4. RMSEs versus number of data sites. Comparison between ISPH and E-ISPH. (a) Ξ G ; (b) Ξ H . Full line is for ISPH and dashed line is for E-ISPH. All the computations are with starting normalized values and 10 n 40 .
Figure 4. RMSEs versus number of data sites. Comparison between ISPH and E-ISPH. (a) Ξ G ; (b) Ξ H . Full line is for ISPH and dashed line is for E-ISPH. All the computations are with starting normalized values and 10 n 40 .
Applsci 11 02628 g004
Figure 5. Comparison between ISPH and E-ISPH. (a) Time (s) versus number of data sites; (b) RMSEs versus number of data sites. All the computations are with starting normalized values, Ξ H as data sites, n = 1000 for ISPH and n = 10 for E-ISPH.
Figure 5. Comparison between ISPH and E-ISPH. (a) Time (s) versus number of data sites; (b) RMSEs versus number of data sites. All the computations are with starting normalized values, Ξ H as data sites, n = 1000 for ISPH and n = 10 for E-ISPH.
Applsci 11 02628 g005aApplsci 11 02628 g005b
Table 1. RMSEs for SPH (standard formulation) and with p = 1. Data sites Ξ G and Ξ H .
Table 1. RMSEs for SPH (standard formulation) and with p = 1. Data sites Ξ G and Ξ H .
Ξ G Ξ H
NSPH p = 1 SPH p = 1
90.34870.26560.33760.2624
250.31360.12340.28850.2206
810.24560.16170.20240.1244
2890.15400.08800.12150.0693
10890.08670.04030.07200.0266
42250.06210.01490.06050.0137
166410.05450.00540.05410.0046
660490.05370.00230.05400.0018
Table 2. RMSEs for ISPH, f h ( 0 ) with p = 1. Data sites Ξ G .
Table 2. RMSEs for ISPH, f h ( 0 ) with p = 1. Data sites Ξ G .
N f h ( 0 ) f h ( 10 ) f h ( 100 ) f h ( 1000 )
90.26560.16570.14550.1834
250.12340.13550.11560.0905
810.16170.09190.05250.0396
2890.08800.02550.00810.0042
10890.04030.00302.91 × 10 4 5.51 × 10 5
42250.01499.94 × 10 4 1.16 × 10 4 1.29 × 10 5
Table 3. RMSEs for the ISPH, f h ( 0 ) with p = 1. Data sites Ξ H .
Table 3. RMSEs for the ISPH, f h ( 0 ) with p = 1. Data sites Ξ H .
N f h ( 0 ) f h ( 10 ) f h ( 100 ) f h ( 1000 )
90.26240.16260.14270.1280
250.22060.13310.10230.0839
810.12440.06030.02690.0167
2890.06930.01330.00420.0021
10890.02660.00172.35 × 10 4 4.60 × 10 5
42250.01379.15 × 10 4 1.27 × 10 4 1.71 × 10 5
Table 4. RMSEs for the E-ISPH, f h ( 0 ) with p = 1. Data sites Ξ G .
Table 4. RMSEs for the E-ISPH, f h ( 0 ) with p = 1. Data sites Ξ G .
N f h ( 0 ) f ˜ h ( 10 ) f ˜ h ( 20 ) f ˜ h ( 30 ) f ˜ h ( 40 )
90.26560.16840.22390.22470.2247
250.12340.09630.13650.12450.1375
810.16170.04060.02410.04390.0503
2890.08800.00520.00190.00220.0062
10890.04037.87 × 10 5 4.18 × 10 6 9.56 × 10 7 3.19 × 10 5
42250.01492.45 × 10 5 3.84 × 10 7 5.89 × 10 8 3.99 × 10 5
Table 5. RMSEs for the E-ISPH, f h ( 0 ) with p = 1. Data sites Ξ H .
Table 5. RMSEs for the E-ISPH, f h ( 0 ) with p = 1. Data sites Ξ H .
N f h ( 0 ) f ˜ h ( 10 ) f ˜ h ( 20 ) f ˜ h ( 30 ) f ˜ h ( 40 )
90.26240.13120.32100.32100.3210
250.22060.08610.27190.31730.3173
810.12440.01720.05450.04350.0446
2890.06930.00230.00110.00090.0013
10890.02666.95 × 10 5 2.64 × 10 6 9.78 × 10 7 7.43 × 10 5
42250.01373.13 × 10 5 1.74 × 10 7 1.31 × 10 8 3.17 × 10 5
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Francomano, E. Enhancing the Iterative Smoothed Particle Hydrodynamics Method. Appl. Sci. 2021, 11, 2628. https://doi.org/10.3390/app11062628

AMA Style

Francomano E. Enhancing the Iterative Smoothed Particle Hydrodynamics Method. Applied Sciences. 2021; 11(6):2628. https://doi.org/10.3390/app11062628

Chicago/Turabian Style

Francomano, Elisa. 2021. "Enhancing the Iterative Smoothed Particle Hydrodynamics Method" Applied Sciences 11, no. 6: 2628. https://doi.org/10.3390/app11062628

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop