Accurate simulation of fluid flow in the presence of complex geometries with mesh-free  methods requires that the geometry surfaces be captured accurately with particles. The traditional ways to do this with particlesdo not result in an accurate representation of the geometry surfaces. In this paper we propose a simple SPH-based algorithm to produce homogeneous particle distributions that capture the geometry surfaces accurately in two and three dimensions. Several benchmark problems are solved to demonstrate the accuracy of the new algorithm. The  algorithm is open source and our manuscript is fully reproducible.
Computer simulation of fluid flow in the presence of complex geometries with mesh-free particle methods requires that the geometry be captured accurately . Methods like weakly-compressible and incompressible smoothed particle hydrodynamics (SPH) perform better when the particle distribution is uniform. Moreover, SPH schemes typically require the mass or volume to be constant for all particles. For a uniform density, this necessitates a good initial particle distribution. In this paper , various particle packing algorithms present in literature are implemented and compared with the intention of capturing the boundaries accurately while maintaining a uniform particle distribution of both the fictitious boundary and fluid particles. An improved SPH-based algorithm is proposed which produces better particle distributions in both two and three dimensions. Some challenging geometries are constructed to demonstrate the accuracy of the new algorithm. The implementation of the algorithm is open source and the manuscript is fully reproducible.
R
Accurate
Computer
A
particle
D
surfaces
R
with particles. The traditional ways to do this with particlesdo not result in an accurate representation of the geometry surfaces.
. Methods like weakly-compressible and incompressible smoothed particle hydrodynamics (SPH) perform better when the particle distribution is uniform. Moreover, SPH schemes typically require the mass or volume to be constant for all particles. For a uniform density, this necessitates a good initial particle distribution.
R
we propose a simple
, various particle packing algorithms present in literature are implemented and compared with the intention of capturing the boundaries accurately while maintaining a uniform particle distribution of both the fictitious boundary and fluid particles. An improved
R
to produce homogeneous particle distributions that capture the geometry surfaces accurately in
is proposed which produces better particle distributions in both
R
Several benchmark problems are solved
Some challenging geometries are constructed
A
implementation of the
R
our
the