ArticlePDF Available

Abstract

The present paper proposes a novel algorithm to detect the free-surface in particle simulations, both in two and three dimensions. Since the proposed algorithms are based on SPH interpolations their implementation does not require complex geometrical procedures. Thus the free-surface detection can be easily embedded in SPH solvers, without a significant increase of the CPU time. Throughout this procedure accurate normal vectors to the free-surface are made available. Then it is possible to define a level-set function algorithm which is presented in detail. The latter allows in-depth analyses of three-dimensional free-surface simulations by using standard visualization tools, including internal features of the flow. The algorithms proposed for detecting free-surface particles and defining the level-set function are validated on simple and complex two- and three-dimensional flow simulations. The usefulness of the proposed procedures to post-process and analyze complex flows are illustrated on realistic examples.
Fast free-surface detection and level-set function
definition in SPH solvers
S. Marronea,c, A. Colagrossia,, D. Le Touz´eb, G. Grazianic
aINSEAN,The Italian Ship Model Basin, Roma, Italy
bFluid Mechanics Lab., ´
Ecole Centrale Nantes / CNRS, Nantes, France
cDepartment of Mechanics and Aeronautics, University of Rome “La Sapienza”
Abstract
The present paper proposes a novel algorithm to detect the free surface in
particle simulations, both in two and three dimensions. Since the proposed
algorithms are based on SPH interpolations their implementation does not
require complex geometrical procedures. Thus the free-surface detection can
be easily embedded in SPH solvers, without a significant increase of the CPU
time. Throughout this procedure accurate normal vectors to the free surface
are made available. Then it is possible to define a level-set function algorithm
which is presented in detail. The latter allows in-depth analyses of three-
dimensional free-surface simulations by using standard visualization tools,
including internal features of the flow. The algorithms proposed for detecting
free-surface particles and defining the level-set function are validated on
simple and complex two- and three-dimensional flow simulations. The
usefulness of the proposed procedures to post-process and analyze complex
flows are illustrated on realistic examples.
1. Introduction
In recent years the SPH method has been successfully applied to problems
involving free-surface flows with fragmentation. In order to analyze flows
with complex free-surface patterns (fragmentations, air entrapment, etc.)
and to face a larger range of problems it is required to know which particles
belong to the free surface. This detection can also be required for the
enforcement of suitable boundary conditions along the free surface (surface
Corresponding author: a.colagrossi@insean.it
Preprint submitted to Journal of Computational Physics January 11, 2010
tension, isothermal condition, etc) in order to deal with different physical
phenomena and flow behaviors. Dilts [1] developed an algorithm for the
free-surface tracking that can detect free-surface particles in a robust and
reliable way and that is applicable to any meshless method. However it is
quite difficult to implement, particularly in its extension to three-dimensional
simulations [2].
In this work a novel algorithm for free-surface detection is presented. Such
a scheme, based on the properties of the SPH kernel, is easy to implement
both in two and three dimensions, and computationally cheap. The accuracy
of the method is comparable to that of the method proposed by Dilts. It is
possible, indeed, to catch small cavities of diameter as small as 2h (hbeing
the smoothing length) and fluid elements with dimension smaller than h(like
jets and drops). Thanks to these valuable features, the proposed algorithm
can be used at each time-step of the simulations, without an appreciable
increase of the CPU-time.
Moreover, free-surface detection permits strong improvement of the post-
processing phase, particularly in three-dimensional simulations with complex
flow features. In fact, if one uses merely a SPH output, flow analysis is
problematic since data are known on scattered points, and it is difficult
to obtain contour plots, slices and iso-surfaces. Such an analysis can
be performed in a straightforward way using standard tools if data are
interpolated on a regular grid. In this context it is useful to define a level-set
function among the grid nodes. This function permits to distinguish between
nodes inside and outside of the fluid domain. To define the level-set function
the detection of the free-surface particles is required as a first step. Besides
its utility for flow analysis the definition of this function may be useful to
extend remeshing techniques, see e.g. [3], to free-surface flow problems.
In the present paper the algorithm for free-surface detection is described
and validated in sections 2 and 3, for both two- and three-dimensional
cases. To assess the accuracy of the algorithm, the validation has first been
performed using simple geometries, and then on complex flow cases. Finally,
in section 4, we describe the procedure to define a level-set function which
can be useful to interpolate flow data on a regular grid. Post-processing
results are shown to illustrate the proposed algorithm capabilities.
2
2. 2D algorithm
2.1. Algorithm details
The algorithm is composed of two steps: in the first one the properties of
the renormalization matrix, defined by Randles and Libersky [4], are used to
find particles next to the free surface. This first step strongly decreases the
number of particles that will be processed in the second step. In the second
step the algorithm, by means of geometric properties, detects particles that
actually belong to the free surface and evaluates their local normals.
In order to validate it the algorithm has been applied to simple geometries
as well as to a dam break problem (see e.g. [5]) which sketch and initial
conditions are displayed in figure 1. The complex free surface behavior of
the impact flow simulated is displayed in figure 2. In this figure the plotted
rectangles delimit the zones which are enlarged in figure 3to highlight the
flow complexity there, and which are the most challenging for the detection
algorithm.
The method used to perform the first step of the algorithm was proposed
by Doring [6]; it exploits eigenvalues of the renormalization matrix [4] defined
as:
B(xi) = X
jWj(xi)(xjxi) ∆Vj1
(1)
where ∆Vjis the volume of the j-th particle and Wj(xi) is the
interpolating kernel centered on particle jand evaluted in the position xi.
The spatial derivatives of Wj(xi) are referred with respect to the position xi.
1
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0
P/ρgH
LW= 5.366 H
L = 2H
H = 600 mm
Figure 1: Sketch and initial condition of the dam-break problem considered, see e.g. [5].
3
0 1 2 3 4 5
0
0.5
1
1.5 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0
t(g/H)½= 6.001 |u|/(gH)½
x/H
y/H
0 1 2 3 4 5
0
0.5
1
1.5 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0
t(g/H)½= 9.413 |u|/(gH)½
x/H
y/H
0 1 2 3 4 5
0
0.5
1
1.5 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0
t(g/H)½= 10.275 |u|/(gH)½
x/H
y/H
Figure 2: Different time instants of the impact flow after the dam-break. The rectangles
delimit the zones enlarged in figure 3.
Doring showed that the value of the minimum eigenvalue, λ, of the
matrix B1depends on the spatial organization of the particles jin the
neighborhood of the considered calculation point i. When going away from
the fluid domain this eigenvalue λtends theoretically to 0 while inside this
domain λtends theoretically to 1. This allows to determine regions of the
fluid domain where the free surface can lie or not. Let us define Nas the set
of all the fluid particles and FNas the subset of particles belonging to the
free surface. Then, computing λfor each particle, it is possible to further
4
define three complementary subsets: Ecomposed by particles belonging to
thin jets and drops, characterized by low values of λ;Icomposed by interior
particles far from the free surface, characterized by high values of λ; and B
composed by particles which are close to the free surface or are in regions of
the domain where particles are not uniformly spread. Particles belonging to
the last subset are characterized by intermediate values of λ. We have that
N=EIB. The free-surface particles subset Fis thus composed of all the
particles of subset Eand a part of the elements of subset B.
0.75
0.20
λ
I
B
E
0.75
0.20
λ
2h
I
B
E
Figure 3: Values of the minimum eigenvalue λof the matrix B1. Red particles belong
to subset E; green particles belong to subset I; blue particles belong to subset B.
To identify these subsets it is possible to define threshold values of λ
which depend on the considered kernel. Here we use a renormalized gaussian
kernel shape, see [5], with a support radius equal to 3h, where his the
smoothing length and is equal to 1.33 dx.dx is the average particle spacing
which means that in two dimensions a particle has dx2for volume and an
average number of neighbors equal to 50. All the results and the conclusions
presented in this work have to be considered valid only for the aforementioned
h/dx ratio. Several tests have been performed to set the proper thresholds for
λ. Being ithe particle under examination, the values found are the following:
iEλ0.20
iB0.20 < λ 0.75
iI0.75 < λ
(2)
5
In this way the first step of the algorithm computes the minimum
eigenvalue for each particle and gives a first rough detection of the free
surface. This operation has a very low computational cost especially if the
renormalization matrix is already computed in the SPH scheme, as e.g. in
the formulation proposed in [4]. In figures 3one can observe the result of
this first detection. Particles next to the free surface and near cavities are
correctly detected but this also happens for some particles within internal
fluid regions characterized by non-uniform distribution. Conversely, particles
which belong to drops and thin jets are easily captured by the lower threshold
and directly identified as free-surface particles (red coloured).
In the second step of the algorithm, a more precise and reliable control is
performed on particles belonging to Bin order to complete the free surface
detection. The proposed method is based on the fact that, inside the fluid
domain, the sum of the kernel gradient over neighbors is very close to zero.
When a particle, instead, is near the free surface, such sum is a good
approximation of the local normal nto the free surface, see [4]. Since the
accuracy of the evaluation of this vector depends on the particle disorder, it is
possible to get a more accurate evaluation by using again the renormalization
matrix:
n(xi) = ν(xi)
|ν(xi)|;ν(xi) = B(xi)X
jWj(xi) ∆Vj(3)
Figure 4: Sketch of the regions used in the algorithm.
6
This is a standard way to improve accuracy of the SPH interpolation within
the fluid domain, see e.g. [4]. Here we use the same principle to improve the
accuracy of the evaluation of the local normal. Once this vector nis known,
it is possible to define a region of the domain like the one sketched in figure 4.
The algorithm then checks whether or not at least one neighbor particle lies
in this region, hereinafter referred to as scan region. If no neighbor is found
inside it, the candidate particle belongs to the free surface. It must be noted
that inside the fluid domain this region cannot be void since h= 1.33 dx.
This control is carried out by the algorithm in the following way. We
denote by iBthe particle that is under examination and by jNthe
neighbor of iwhich is included in a 3hradius distance. We define also the
point Tat distance hfrom iin the normal direction and the unit vector τ
perpendicular to n. The conditions to assess whether particle ibelongs or
not to the free surface are therefore:
jNh|xji| ≥ 2h, |xjT |< hii /F
jNh|xji|<2h, |n·xjT |+|τ·xj T |< hii /F
otherwise i F
(4)
where notation Aij =AiAjhas been used. If the first condition is true it
means that the neighbor under examination is in the dark grey region (S1)
in figure 4while, if the second condition is true, it means that the neighbor is
in the pearl grey region (S2). The two regions together form the scan region.
If any neighbor is located in the scan region it means that there is no
cavity in the normal direction, or that this cavity has a diameter less than
2h, so that particles inside it are deeply interacting and it is not a true cavity.
Therefore through this process we are tracking the free surface of cavities of
diameter larger than 2h. More details on the geometry used for the scan
region are given in appendix A.1.
It can be noticed that for some particle distributions, e.g. for thin jets,
the sum of the kernel gradient can go to zero, giving wrong values for vector
n. However, in this circumstance the eigenvalue λwill be very low and the
particle will hence have already been detected as a free-surface particle in
the first step of the algorithm. This first step has thus two functions: it is an
efficient selection allowing to quickly perform the second step, and a tool to
detect particles belonging to jets and drops which could hardly be detected
by the second step of the algorithm.
7
h/a ×1027.52 3.76 1.88 0.94 0.63 0.38
ε2.16 1.23 0.68 0.34 0.23 0.13
Table 1: Average relative angle error between the analytically computed normals and the
one evaluated by equation 3.h/a denotes the ratio between the smoothing lenght and the
semimajor axis.
2h
Figure 5: Left: free-surface detection of an elliptic fluid domain. Right: free-surface
detection in an elliptic cavity of minor axis equal to 2h. Red particles are those detected
by the proposed free-surface algorithm.
2.2. Validation
In the left part of figure 5the algorithm is validated for an elliptic fluid
domain, with 0.661 eccentricity. Since the evaluation of the free-surface
normals is critical for the algorithm effectiveness, the ones calculated by
the algorithm are compared to the analytical values. In this comparison
a uniform distribution of particles had to be used inside the fluid domain
in order to assign exact volumes to the particles. Results are reported in
table 1 in terms of average relative angle error. The convergence is close to
quadratic.
In the right part of figure 5an elliptic cavity with minor axis equal to 2h
was introduced in the ellipse. This cavity has thus the minimum dimension
which the algorithm is able to detect.
After this simple test, the algorithm is further assessed on the complex
flow situations presented in figure 3. The free-surface particles detected
by the algorithm are plotted in pink in figure 6. Despite the geometrical
complexity of these configurations, the proposed method is able to provide a
very good qualitative estimation of the particles which form the boundary.
In particular one can observe that approximately circular cavities of diameter
8
0.75
0.20
λ
I
B
E
F
0.75
0.20
λ
2h
I
B
E
F
Figure 6: Results after the application of free-surface detection algorithm: free-surface
particles are displayed in pink with their normals; in the bottom part small cavities of 2h
diameter are shown. A circle with dimension 2his reported for comparison.
just larger than 2hare well detected.
Even though the algorithm requires a cycle on the neighbors for each
particle involved in the second step, it has still a very low computational
cost. Actually, all but a few percents of the particles are filtered out in the
first step.
The CPU time cost of the algorithm is lower than 5% of the total cost
of a standard SPH calculation, where the latter includes the calculation of
the neighbor list and the summations for the continuity and momentum
equation. It is the computation of the renormalization matrix which takes
the most part of the CPU time required by the algorithm (about 90%).
Hence, if the renormalization matrix is already evaluated in the numerical
scheme, see e.g. [7] and [4], the increase of CPU time due to free-surface
detection is absolutely negligible. Moreover, if the algorithm is used only
for visualization or analysis purposes, it has to be applied only periodically
(typically every 100 time steps), and its cost becomes again negligible.
3. 3D algorithm
3.1. Algorithm details
The extension of the algorithm to the third dimension is rather
straightforward and easy to implement. The algorithm has still the same
9
h/r ×10215.0 7.52 3.76 1.88
ε×10214.0 4.42 1.84 0.77
Table 2: Average relative angle error between the analytically computed normals and the
one evaluated by equation 3for a spherical fluid domain. h/r denotes the ratio between
the smoothing lenght and the radius of the sphere.
structure as the two-dimensional one: it is composed of a first step where
particles far from the free surface are filtered out, and of a second step to
refine the detection only to the particles belonging to the free surface. In
the first step the minimum eigenvalue λof the renormalization matrix is
again needed for each particle. Again, two thresholds are used which are the
same as in two dimensions. These thresholds are valid for the renormalized
gaussian kernel with support radius equal to 3hand h/dx = 1.33 (this means
an average number of neighbors equal to 266).
While the first step is formally unchanged in the extension to three
dimensions, the second step is slightly modified. The vector nis still
evaluated through equation 3but the conditions which define the region
to scan become:
jN|xji| ≥ 2h, |xjT |< hi /F
jNh|xji|<2h, arccos n·xji
|xji |<π
4ii /F
otherwise i F
(5)
Therefore, in an intuitive way, the triangular region in figure 4becomes
a cone in three dimensions, while the semicircle becomes a hemisphere.
3.2. Validation
In the three-dimensional case it is more complex to test the algorithm
and assess its accuracy. Indeed, unlike in 2D cases, in 3D problems even
a qualitative evaluation of the particles belonging to the free surface could
be quite difficult. In particular cavities and jets are generally blurred since
particles are spread in the space in a disordered way.
In order to overcome this problem the algorithm was tested on a particle
distribution with a free surface which is known a priori. According to this
strategy two tests were performed. In the first one particles are arranged
to form a sphere with a spherical cavity inside, as sketched in left panel
of figure 7. In order to have a regular distribution, particles are placed on
concentric spheres with radius increasing by dx, where dx is cubic root of the
10
X
1
Y
0.5 11.5
Z
0.5
1
1.5
4dx=3h
10dx
Figure 7: Left panel: sketch of the tested geometry. Right panel: corresponding set of
particles.
particle volume. On each sphere, particles are equispaced with a distance
approximatively equal to dx. The cavity inside the sphere has a diameter
equal to 4dx 3h. This quantity is actually slightly larger than 2hwhich
is the limit size for detecting a cavity. However, choosing a smaller cavity
radius was not possible in practice. Indeed, this would have resulted in
having too few particles distributed on the cavity surface, resulting in a bad
approximation of their volumes, and consequently providing an inappropriate
test of the algorithm. The particle distribution is shown in the right panel
of figure 7. In such a view it is not possible to detect the cavity inside the
sphere.
The result given by the algorithm is presented in figure 8. The two
detected free surfaces (the ones from the inner and outer spheres) are shown
separately to better evidence the normals. We notice that free-surface
particles and normals are correctly evaluated both in the cavity and along the
external surface. Similarly to the 2D case, in table 2 calculated free-surface
normals are compared to analytical values in terms of average relative angle
error for a spherical fluid domain. Again, the convergence rate is close to
quadratic.
In order to assess the capability of the algorithm to capture cavities of
dimension equal to 2h, a more complex test was performed. As displayed
in the left panel of figure 9, a toroidal cavity was created inside the sphere.
The width of the torus is 2hand the torus ring diameter is 14dx. Again,
11
X
0.5
1
1.5
Y
1
Z
0.5
1
1.5 4dx
X
0.5
1
1.5
Y
1
Z
0.5
1
1.5
10dx
Figure 8: Left: detected free-surface particles and normals on the spherical cavity
boundary. Right: detected free-surface particles and normals on the outer sphere.
when showing the whole particle set, it is not possible to distinguish the
toroidal cavity inside the sphere (see right panel of 9). The free-surface
particles detected by the algorithm are shown in figure 10. Also in this case
free-surface particles and normals are correctly evaluated.
To illustrate the method capabilities on an actual complex 3D situation
we show the results of the application of the algorithm on an impact flow (see
e.g. [8] and [9]). The skecth of the problem geometry is displayed in figure
11. In figure 12 the whole particle distribution and the detected free-surface
particles are shown for a time instant just after the impact. Anyway in these
plots only a few flow features can be analyzed. Therefore a useful tool to
improve the flow analysis is proposed in the next section.
4. Definition of a level-set function
The interpolation of particle data onto a regular grid can be useful both
for allowing an in-depth analysis of the flow features through adequate post-
processing, or for remeshing the particles during free-surface flow simulations.
In order to perform this procedure it is necessary to locate the free surface
across the grid. In other words, one needs to separate nodes inside the fluid
domain from those outside. This can be done from the knowledge of the free-
surface particle subset F. Let us consider a regular Cartesian grid of spatial
12
Figure 9: Left panel: sketch of the second tested geometry. Right panel: corresponding
set of particles.
X
0.5
1
1.5
Y
0.5
1
1.5
Z
0.5
1
1.5
2h
X
0.5
1
1.5
Y
0.5
1
1.5
Z
0.5
1
1.5
25dx
Figure 10: Left: detected free-surface particles and normals on the toroidal cavity
boundary. Right: detected free-surface particles and normals on the outer sphere.
resolution dx, and which encloses all the computational domain. For each
node Nclose to free surface particles of subset F, the nearest free-surface
particle FNis detected and the scalar quantity dN FNis evaluated through:
dNFN= (xFNxN)·nFN(6)
13
Figure 11: Sketch of the problem geometry of a 3D impact flow against a tall structure
(see e.g. [8] and [9]): side view (left panel) and top view (right panel). An initial layer of
water 1 cm deep exists on the bottom of the tank.
Figure 12: 3D impact against a tall structure after a dam-break. Left: whole particle
distribution over the fluid domain; the colors represent the pressure. Right: free-surface
particles detected by the algorithm at same time instant.
where nFNis the normal to the free surface evaluated in FN. For each node
it is now possible to define a level-set function φ(xN):
φ(xN) =
1dNFN≤ −2h
dNFN/2h2h < dNFN<2h
+1 dNFN2h
(7)
This function is positive inside the fluid, negative outside it and equal to 0
along the free surface where dN FN= 0. More precisely, under the assumption
that the actual free-surface location is at a distance dx/2 from the center of
mass of particles belonging to F, the value of φon the free surface has to be
φ=dx/4hand not zero anymore.
14
-1.00 -0.50 0.00 0.50 1.00
φ=-(dx/2)/2h
φ
Figure 13: Contour plot of function φfor the particle distribution shown in figure 3.
Free-surface particles (black dots) and free-surface contour level (red dash-dotted curve).
At the computational level, the procedure to evaluate φcan be executed
in a fast manner. At each node we first identify the particles present within
a 2h-distance. We denote N2hthis subset of particles through which we can
evaluate the function φ(xN) as:
1N2h=
+1 N2h6=,N2hF=
dNFN/2hN2h6=,N2hF6=, λFN0.1
−|xNxFN|/2hN2h6=,N2hF6=, λFN<0.1
(8)
where λFNis the minimum eigenvalue of the matrix B1(see eq. 1) for the
particle FN. For λFN<0.1 the nearest free-surface particle for the node N
is a solitary particle. In such a case the vector nFNis null (see eq. 3) and
consequently the scalar product dN FNis meaningless. Therefore, the latter
is directly substituted with the distance |xNxFN|. Further, to smooth out
the function φon the whole mesh, a Gaussian filter on the nodes is performed
once φis evaluated by equation (8).
In figure 13 the contour plots of function φfor the two time instants of
figure 3are shown. The free surface is represented by the red dash-dotted
line which corresponds to the contour level φ=dx/4h, in close agreement
with the free-surface particles positions if they were shifted by dx/2.
In 3D simulations the interpolation on a regular mesh clearly brings
15
higher benefits. Indeed, the visualization and the flow analysis of a 3D
SPH simulation is generally quite difficult. This is highlighted in figure 14
where a spherical fluid domain with three concentric toroidal cavities and a
small spherical cavity of 3hdiameter is considered. Even though only the
free-surface particles are shown (left panel), it is obvious how difficult it is to
detect the geometry of the fluid domain. On the right side of the same figure,
the iso-surface φ=dx/4hrepresenting the free surfaces conversely gives
a clear representation of the fluid domain, thanks to transparency features
which are a standard visualization tool on a regular mesh.
Figure 14: Spherical fluid domain with three toroidal cavities and a spherical cavity of 3h
diameter. Left: free-surface particles. Right: iso-surface φ=dx/4h.
Some interpolation results of the impact flow shown in figure 12 are
presented in the following. This operation has been carried out with a
Moving-Least Square (MLS) interpolator that exactly interpolates a linear
field on a regular grid from scattered points, see e.g. [10]. The representation
of the free surface is given by the iso-contour φ=dx/4hin figure 15. In
particular, the pressure distribution during the impact is evidenced through
contours interpolated on a vertical plane inside the domain. Finally, the
last plots of figure 15 show how it is possible to analyze flow internal details
through the reconstruction of the free surface as an iso-surface. In particular,
entrapped bubbles and a large tube cavity due to a strong wave breaking are
clearly identifiable.
16
5. Conclusion
An efficient algorithm capable to detect the free surface in SPH methods
has been proposed in 2D and 3D simulations. It is composed of two stages.
The first stage consists in detecting the particles composing the free surface.
From this information, it is possible to define a level-set function throughout
the domain in a second stage. This function can be used to interpolate flow
quantities on a cartesian grid, which makes possible the visualization and
analysis of flow features using standard visualization tools. The two stages
have been carefully validated on test cases of increasing complexity, up to
real 3D impact flow.
On these test cases it has been shown how the method allows detecting
flow details such that thin jets, drops, entrapped air structures, etc. as well as
to recover contour slices, iso-surfaces, etc. in an efficient way. The algorithm
proposed in the present paper could be exploited to impose specific conditions
on the free surface, or to extend remeshing techniques to free-surface flow
problems.
17
Figure 15: 3D Flow impact against a tall structure after a dam-break. Top: two views of
the free surface represented by iso-surface φ=dx/4h. Middle: free-surface and pressure
contours interpolated on a vertical plane at two different time instants. Bottom: two
views of the free-surface iso-surface at a later stage of the flow evolution; on the right plot
a detail of the cavity generated in front of the column is given (seen from below).
18
6. Notation
B= Renormalization Matrix
x= Spatial position
W = Kernel function
V= Particle volume
λ= Minimum eigenvalue of B1
N= Set of all the fluid particles
F= Set of the particles belonging to the free surface
E= Set of particles with λ0.20
B= Set of particles with 0.20 < λ 0.75
I= Set of particles with 0.75 < λ
h= Kernel smoothing lenght
dx = Average particle spacing
n= Unit vector normal to the free surface
τ= Unit vector tangential to the free surface
φ= Level set function
Acknowledgments
This work was partially supported by Programma Ricerche INSEAN
2007- 2009 and Programma di Ricerca sulla Sicurezza funded by Ministero
Infrastrutture e Trasporti.
The research leading to these results has received funding from the
European Community’s Seventh Framework Programme (FP7/2007-2013)
under grant agreement n225967 “NextMuSE”.
19
A. Appendix
A.1. Motivation for the shape of the scan region adopted
The choice of the shape of the scan region, composed by a half circle
and a half square rather than by a simple circle for instance, is explained in
the following. In top sketch of figure 16 a uniform distribution of particles
is considered. In such a configuration only the first row of particles should
be detected as free surface. In the left part of the sketch the scan region
is reported for a particle belonging to the second row. Two particles are
present in the scan region which means that the second row is not detected
as free surface. On the right part of the same sketch circles with diameter
equal to hhave been reported in order to show that also the arc-method
proposed in [1] gives the same result. In the bottom sketch of figure 16
Figure 16: Sketch of the scan region applied on uniform distribution (top panel) and on
free-divergence stretched distribution (bottom panel). On the right a comparison with the
arc method, see [1].
20
a divergence-free stretching is applied to the previous particle distribution.
Due to this stretching, the horizontal distances between the particles are
equal to 2dx while the vertical ones are equal to dx/2. There is hence a
ratio 2 between these two distances. We can consider it a limiting case: for a
ratio 2 or higher, the considered particle of the “second row” belongs to the
free surface, for a lower ratio it does not belong to it. Using the procedure
described in [1] an arc of 12ois not covered by other neighbor circles; hence
the particles of the second row are considered as free-surface particles. This
occurs also using the proposed algorithm since the scan region is now empty.
If a fully circular shape was used as scan region, the particles of the second
row would not be detected as free-surface particles. Other shapes could be
adopted as scan region. Anyway, in order to correctly detect the free surface,
two requirements have to be satisfied: a) the detection of circular cavities of
diameter equal to 2h, b) in the example discussed above the second row of
particles in bottom plot of figure 16 has to be detected as free-surface.
References
[1] Dilts, G.A. 2000 Moving least-squares particle hydrodynamics II:
conservation and boundaries Int. J. Numer. Meth. Engng 48, 1503-1524.
[2] Aamer, H. & Dilts, G.A. 2007 Three-dimensional boundary detection
for particle methods J. Comp. Phys. 226, 1710-1730.
[3] Chaniotis, A. K. Poulikakos, D. Koumoutsakos, P. 2002
Remeshed smoothed particle hydrodynamics for the simulation of viscous
and heat conducting flows J. Comp. Phys. 182, 67-90.
[4] Randles, P.W. & Libersky, L.D. 1996 Smoothed Particle
Hydrodynamics: Some recent improvements and applications Comput.
Methods Appl. Mech. Engng. 139, 375-408.
[5] Colagrossi, A. & Landrini, M. 2003 Numerical simulation of
interfacial flows by Smoothed Particle Hydrodynamics J. Comp. Phys..
191, 448-475.
[6] Doring, M. 2005 D´eveloppement d’une m´ethode SPH pour les
applications `a surface libre en hydrodynamique PhD Thesis, Ecole
Centrale Nantes.
21
[7] Bonet, J. & Lok, T.-S.L. 1999 Variational and momentum
preservation aspects of Smooth Particle Hydrodynamic formulations
Comput. Methods Appl. Mech. Engrg. 180, 97-115.
[8] Raad, P. Mitigation of local Tsunami effects,
http://engr.smu.edu/waves/project.html
[9] Gomez-Gesteira, M. & Dalrymple, R.A. 2004 Using a Three-
Dimensional Method for wave impact on a tall structure J. of Waterway,
Port, Coastal and Ocean Engineering 130, 63-69.
[10] Fries, T.P.& Matthies, H.G., “Classification and Overview of Meshfree
Methods”, Informatikbericht 2003-03, Institute of Scientific Computing,
Technical University Braunschweig, Brunswick, Germany, (2004)
22
... As discussed in the previous subsections the PST implies the detection of the particles belonging to the free surface. One of the most widely used algorithms is the one proposed in [171]. This method uses a two-stage procedure. ...
... This form was then used in [258] for the evaluation of the surface tension for single-phase flow, see section 7.8. This free-surface particle detection algorithm of [171] applies to both 2D and 3D frameworks and does not need any complex operation linked to the geometrical distribution and intersections of the particles modeled as spheres, conversely to in [72,107]. Furthermore, this algorithm can also be used for post-processing purposes and for assigning a LS function on underlying Cartesian meshes. ...
... where S F denotes the region of the fluid domain close to the free surface, that is the free-surface particles and their neighbor particles. The free surface particles are detected through the algorithm described in [171], see section 10.6. Equation (138) corresponds to a switch from the 'plus' formulation (namely, p j + p i ) to the 'minus' formulation (that is, p j -p i ) when the pressure p i is negative inside the fluid region. ...
Article
Full-text available
The smoothed particle hydrodynamics (SPH) method is expanding and is being applied to more and more fields, particularly in engineering. The majority of current SPH developments deal with free-surface and multiphase flows, especially for situations where geometrically complex interface configurations are involved. The present review article covers the last 25 years of development of the method to simulate such flows, discussing the related specific features of the method. A path is drawn to link the milestone articles on the topic, and the main related theoretical and numerical issues are investigated. In particular, several SPH schemes have been derived over the years, based on different assumptions. The main ones are presented and discussed in this review underlining the different contexts and the ways in which they were derived, resulting in similarities and differences. In addition, a summary is provided of the recent corrections proposed to increase the accuracy, stability and robustness of SPH schemes in the context of free-surface and multiphase flows. Future perspectives of development are identified, placing the method within the panorama of Computational Fluid Dynamics.
... The pre-condition of imposing such treatment is the identification of free surface particles. In this work, the free surface detection method proposed by Marrone et al. [49] is applied, based on which the shifting modification in + -SPH model is applied [48]. If particle i is identified as the free surface particle, the particle shifting vector in Equation (42) is modified into the following form ...
Article
In coastal and offshore engineering, the intense water-soil motion poses significant challenges to the safety of buildings and structures. The smoothed particle hydrodynamics (SPH) method, as a mesh-free Lagrangian solver, has considerable advantages in the numerical resolution of such problems. SPH models for the water-soil two-phase flow can be categorized into the multilayer type and the single-layer type. Although the single-layer model envisions a simpler algorithm and higher computational efficiency, its accuracy, stability, and recovery of interfacial details are far from satisfactory. In the present work, an improved single-layer model is established to alleviate these limitations. First, the soakage function, which takes effect near the phase interface, is introduced to characterize the two-phase coupling status. Additionally, the stress diffusion term and a modified density diffusion term applicable in density discontinuity scenario are introduced to ease the numerical oscillation. Finally, to remove the unphysical voids in the interfacial region, the particle shifting technique with special treatment tailored for free-surface particles is implemented. Validations of the proposed model are carried out by a number of numerical tests, including the erodible dam-break problem, the wall-jet scouring, the flushing case, and the water jet excavation. Appealing agreements with either experimental data or published numerical results have been achieved, which verifies the accuracy, stability, and robustness of the proposed model for water-soil two-phase flows.
... The level-set function is obtained using the algorithm described in [39] based on interpolation of the particles set on a Cartesian mesh. Fig. 1 depicts an example of the level-set function for a 2D liquid square droplet (see Section 4.1) . ...
Article
Machine learning (ML) has the potential to accelerate particle-based Lagrangian fluid simulations. However, previous studies have not sufficiently validated the generalization performance of ML-based surrogate models across different fluid phenomena. In addition, most surrogate models have been verified under the Courant-Friedrichs-Lewy (CFL) condition, similar to traditional CFD methods, which limits their ability to drastically reduce computation time. Furthermore, many existing studies focus solely on the final methodology and results, without clarifying the effect of different feature settings on the outcomes. In this paper, we present a particle-based surrogate model that can handle flexible time step sizes and different fluid phenomena, along with its gradual improvement. Our proposed method, a graph network-based simulator with wall boundary nodes and pressure estimation (GNS-WP), was first evaluated step-by-step on dam-break and sloshing tests. Then, we demonstrated the model's convergence properties with respect to time step and particle sizes. Finally, the GNS-WP model, trained in a sloshing scenario, was validated on three benchmark tests with different wall boundaries and flow dynamics. The proposed method achieved accuracy equal or better than the particle method used as the teacher, with substantial computational speedups.
Article
Explicit surface reconstruction is useful for treating challenging boundary-related problems in smoothed particle hydrodynamics (SPH), for example, high-accuracy contact treatment. In this work, an efficient local surface reconstruction method (LSRM) is proposed. It first identifies boundary layer particles and then employs the Delaunay triangulation technique to reconstruct explicit surfaces from the boundary layer particles. The surface reconstruction efficiency of the LSRM is examined by two-dimensional and three-dimensional test cases and compared with that of a global surface reconstruction method (GSRM) proposed previously. Compared with the GSRM, the LSRM shows an increasing advantage in efficiency as the number of particles increases, and its efficiency can be dozens of times higher when the number of particles is large. The LSRM is incorporated into SPH for contact treatment and is used to simulate some typical contact problems. The simulation results show that the LSRM is applicable to solid-solid contact problems involving friction and large deformation and fluid-rigid body interaction problems with complex free surface phenomena. Compared with the GSRM, the LSRM can produce simulation results with similar accuracy and significantly improve the overall efficiency of SPH simulation.
Article
Smoothed particle hydrodynamics (SPH), a fully Lagrangian particle method, has been widely used in various applications, such as the simulation of incompressible flow with a free surface. For highly viscous flow, which typically appears in polymer processing, a fully implicit scheme, which implicitly treats both the predictor and corrector procedures of the projection method in the SPH framework, is efficient and numerically stable. This study proposes a simple and efficient fully implicit scheme that improves predictive accuracy for highly viscous flow. The proposed scheme utilizes a recently developed scheme for highly viscous flow that performs the pressure calculation before the viscosity diffusion calculation, unlike the conventional projection method. This study further improves the viscosity diffusion calculation by considering a viscous diffusion term that is usually ignored due to the continuity equation. Including this term enables us to correctly perform calculations for non‐Newtonian flows. The increase in the computational cost that results from the inclusion of the term is alleviated by introducing a two‐step method for calculating the viscous diffusion terms. The developed scheme is applied to injection molding of a polymer melt between two parallel plates. The results show that the proposed two‐step implicit scheme reproduces the fountain flow behavior near the advancing front. In addition, a three‐dimensional molding simulation of a plate with a hole shows a significant improvement in the prediction of the filling pattern in the mold.
Article
Full-text available
An implementation of the smoothed particle hydrodynamics (SPH) method is presented to treat two-dimensional interfacial flows, that is, flow fields with different fluids separated by sharp interfaces. Test cases are presented to show that the present formulation remains stable for low density ratios. In particular, results are compared with those obtained by other solution techniques, showing a good agreement. The classical dam-break problem is studied by the present two-phase approach and the effects of density-ratio variations are discussed. The role of air entrapment on loads is discussed.
Chapter
Mitigation is the translation of direct and interactive vulnerabilities into public policies to reduce risks; such mitigation policies tend to be multi-faceted. Communities vulnerable to tsunami impacts generally have administrative structures and planning procedures that can be adapted to guide land use and building practices in the hazard zone. To be effective, however, these policies and regulations must be based on a clear understanding of local tsunami effects, including both direct and interactive characteristics.
Conference Paper
Planning and mitigating for local tsunami effects were discussed. The damage characteristics were analyzed to reduce the impacts of tsunamis. It was suggested that engineers and planners should integrate the heightened awareness of the attributes of tsunamis caused damage to improve public awareness. A set of factors that was useful in development of performance based standards for coastal facilities located in probable tsunami risk zones were described.
Article
The impact of a single wave generated by a dam break with a tall structure is modeled with a three-dimensional version of the smoothed particle hydrodynamics method. The method is used to analyze the propagation of a long wave and the force it exerts on a tall structure located in a region with vertical boundaries. Velocities and forces obtained from a numerical model are shown to be in good agreement with laboratory measurements. The effect of having a dry bed in front of the dam prior to the dam break versus a wet bed in the experiment is discussed.
Article
The three-dimensional exposure method for the detection of the boundary of a set of overlapping spheres is presented. Like the two-dimensional version described in a previous paper, the three-dimensional algorithm precisely detects void opening or closure, and is optimally suited to the kernel-mediated interactions of smoothed-particle hydrodynamics, although it may be used in any application involving sets of overlapping spheres. The principle idea is to apply the two-dimensional method, on the surface of each candidate boundary sphere, to the circles of intersection with neighboring spheres. As the algorithm finds the exact solution, the quality of detection is independent of particle configuration, in contrast to gradient-based techniques. The observed CPU execution times scale as O(MNϵ), where M is the number of particles, N is the average number of neighbors of a particle, and ϵ is a problem-dependent constant between 1.6 and 1.7. The time required per particle is comparable to the amount of time required to evaluate a three-dimensional linear moving-least-squares interpolant at a single point.
Article
Previous work by the author has shown that the consistency of the SPH method can be improved to acceptable levels by substituting MLS interpolants for SPH interpolants, that the SPH inconsistency drives the tension instability and that imposition of consistency via MLS severely retards tension instability growth. The new method however was not conservative, and made no provision for boundary conditions. Conservation is an essential property in simulations where large localized mass, momentum or energy transfer occurs such as high-velocity impact or explosion modeling. A new locally conservative MLS variant of SPH that naturally incorporates realistic boundary conditions is described. In order to provide for the boundary fluxes one must identify the boundary particles. A new, purely geometric boundary detection technique for assemblies of spherical particles is described. A comparison with SPH on a ball-and-plate impact simulation shows qualitative improvement. Copyright © 2000 John Wiley & Sons, Ltd.
Article
We present an extension of the classical scheme of smoothed particle hydrodynamics (SPH) for the accurate handling of diffusion terms in the momentum and energy equation of viscous and heat conducting flows. A key aspect of the present SPH approach is the periodic reinitialization (remeshing) of the particle locations, which are being distorted by the flow map. High-order moment conserving kernels are being implemented for this remeshing procedure leading to accurate simulations. The accuracy of the proposed SPH methodology is tested for a number of benchmark problems involving flow and energy transport. The results demonstrate that the proposed SPH methodology is capable of DNS quality simulations while maintaining its robustness and adaptivity.
Article
This paper presents a new variational framework for various existing Smooth Particle Hydrodynamic (SPH) techniques and presents a new corrected SPH formulation. The linear and angular momentum preserving properties of SPH formulations are also discussed. The paper will show that in general in order to preserve angular momentum, the SPH equations must correctly evaluate the gradient of a linear velocity field. A corrected algorithm that combines kernel correction with gradient correction is presented. The paper will illustrate the theory presented with several examples relating to simple free surface flows.
Article
The Smoothed Particle Hydrodynamics (SPH) computing technique has features which make it highly attractive for simulating dynamic response of materials involving fracture and fragmentation. However, full exploitation of the method's potential has been hampered by some unresolved problems including stability and the lack of generalized boundary conditions. We address these difficulties and propose solutions. Continuum damage modeling of fracture is discussed at length with scalar and tensor formulations proposed and tested within SPH. Several recent applications involving fracture with predicted fragment patterns and mass distributions are compared with experiment.