Professional Documents
Culture Documents
Abstract: Smoothed Particle Hydrodynamics is surface flows, specially wave propagation [Mon-
a purely Lagrangian method that can be applied to aghan (1994); Monaghan and Kos [1999]; Mon-
a wide variety of fields. The foundation and prop- aghan and Kos (2000)] and solid simulation [Benz
erties of the so called dynamic boundary particles and Asphaug, (1994); Benz and Asphaug (1995);
(DBPs) are described in this paper. These bound- Vignjevic, De Vuyst and Campbell (2006)]. Re-
ary particles share the same equations of continu- cently, SPH has been used for wave impact
ity and state as the moving particles placed inside studies on offshore structures [Dalrymple, Knio,
the domain, although their positions and veloci- Cox, Gómez-Gesteira and Zou (2002); Gómez-
ties remain unaltered in time or are externally pre- Gesteira and Dalrymple (2004); Gómez-Gesteira,
scribed. Theoretical and numerical calculations Cerqueiro, Crespo and Dalrymple (2005); Cre-
were carried out to study the collision between spo, Gómez-Gesteira and Dalrymple (2007a)].
a moving particle and a boundary particle. The The main advantages of SPH come from its purely
boundaries were observed to behave in an elastic Lagrangian nature. The method can easily deal
manner in absence of viscosity. They allow the with the existence of large voids without a spe-
fluid particles to approach till a critical distance cial treatment and prevent the appearance of grid
depending on the energy of the incident particle. generating numerical diffusion. In addition the
In addition, a dam break confined in a box was method can handle large deformations from the
used to check the validity of the approach. The initial configuration and permits the description of
good agreement between experiments and numer- complex media where the substance under scope
ical results shows the reliability of DBPs. (e.g.. star gas, fluid or solid) can be splitted into
multiple connected regions, which can eventually
Keyword: Meshfree methods, SPH, smoothed
recover their continuous nature without need of
particle hydrodynamics, boundary conditions
sophisticated and rather unphysical approaches.
From a numerical point of view, the method can
1 Introduction be used in a 1D, 2D or 3D configuration with little
Smoothed Particle Hydrodynamics, SPH, is a effort. Finally, multiphase media (e.g. liquid-gas
purely Lagrangian method developed during sev- or fluids withh different densities) can also be de-
enties [Lucy (1977); Gingold and Monaghan scribed by the method.
(1977)] to avoid some of the limitations of finite In the particular case of fluids, SPH integrates the
difference methods. The numerical method has dynamical equations of motion for each particle
been shown to be robust and applicable to a wide in the Lagrangian formalism. It computes the rel-
variety of fields. It has been successfully used evant physical quantities for each particle as an
in astrophysical applications [Gingold and Mon- interpolation of the values of the nearest neigh-
aghan (1977)] and hydrodynamical problems as boring particles, and then moves the particles ac-
the study of gravity currents [Monaghan (1996); cording to those values.
Monaghan, Cas, Kos and Hallworth (1999)], free The foundation of SPH is interpolation theory.
1 Grupo de Fk.sica de la Atmósfera y del Océano, Facultad The conservation laws of continuum fluid dynam-
de Ciencias, Universidad de Vigo, Spain. ics, in the form of partial differential equations,
2 Department of Civil Engineering, Johns Hopkins Univer-
are transformed into integral equations through
sity, Baltimore, USA.
174 Copyright
c 2007 Tech Science Press CMC, vol.5, no.3, pp.173-184, 2007
the use of an interpolation function that gives the 2.1 Choice of weight function
kernel estimate of the field variables at a point.
Weight functions play a fundamental role in SPH
Computationally, information is known only at
method. They should be constructed follow-
discrete points, so that the integrals are evaluated
ing several conditions such as positivity, compact
as sums over neighboring points.
support, normalization, monotonically decreasing
Since the first applications of the SPH method to and delta function behavior [Benz (1990); Mon-
hydrodynamical problems considerable effort has aghan (1992); Liu (2003)]. A cubic spline kernel
been devoted to the boundary conditions. Actu- developed by Monaghan and Latanzio (1985) was
ally, the boundaries are constituted by particles used in our simulation:
that exert repulsive forces on fluid particles. Thus, ⎧
central forces are a natural choice [Monaghan ⎪1 − 3 q2 + 34 q3 if 0 ≤ q ≤ 1
(1992)]. Nevertheless, the same author found that 1 ⎨1 2
Wab = 3 4 (2 − q)3 if 1 ≤ q ≤ 2 (3)
a better approach can be obtained by means of an πh ⎪ ⎩
0 otherwise
interpolation procedure, in such a way that the
force exerted is normal to the boundary [Mon- where q = rab /h, being rab the distance between
aghan and Kos (1999)]. particles a and b, and h the smoothing length in
The aim of this manuscript is the study of the SPH. This smoothing length, often called influ-
role of the so called Dynamic Boundary Particles ence domain or smoothing domain, controls the
(DBPs from now on). These particles share the size of the area around particle a where contribu-
same properties as the fluid particles. They fol- tion from the rest of the particles cannot be ne-
low the same equations of state and continuity, glected. Other kernel choices as those described
but they are not allowed to move or they move in Liu (2003) can be used with similar results.
according to some external input. Due to the particular choice of the cubic spline
kernel, whose first derivative goes to cero with
2 The SPH method q, the tensile instability correction proposed by
Monaghan (2000) was used to prevent particle
The main features of the SPH method, which is clumping. In addition, the kernel was modified
based on integral interpolants, are described in following the linear method proposed by Bonet
detail in [Benz (1990); Monaghan (1982); Mon- and Kulasegaram (2000) in order to assure the
aghan (1992); Liu (2003); Vignjevic, Reveles and normalization property, particularly near the free
Campbell (2006)] and we will only refer here to surface. Using this normalized cubic spline ker-
the representation of the constitutive equations in nel, the basic equations of conservation can be
SPH notation. The key idea is to consider that a represented in SPH notation as follows Monaghan
function A(r) can be approximated by (1992).
2.2 Momentum equation
A(r) = A(r )W(r −r , h) dr (1)
Different approaches have been considered in
SPH method to describe momentum equation
where his the smoothing length. This approxima-
due to the different formulations of the diffusive
tion, in discrete notation, leads to:
terms.
Ab The artificial viscosity proposed by Monaghan
A(r) = ∑ mb Wab (2) (1992) has been classically used due to its sim-
b ρb
plicity. In SPH notation, the momentum equation
can be written as
where a and b are particles, mb and ρb are mass
and density respectively and Wab = W (ra − rb , h) dva Pb Pa
= − ∑ mb + + Πab ∇aWab + g̃ (4)
is the weight function or kernel. dt b ρb2 ρa2
Boundary Conditions Generated by Dynamic Particles in SPH Methods 175
where g=(0, 0, -9.81) ms−2 is the gravitational ac- 2.5 Moving the particles
celeration.
Particles are moved using the XSPH variant due
Πab is the viscosity term: to Monaghan [Monaghan (1989)].
−α cab μab +β μab
2
dra mb
ρab vabrab < 0 =va + ε ∑ vabWab (8)
Πab = (5)
0 vabrab > 0
dt b ρab
Latanzio (1985). Thus, for a particle located in- When a real particle is close to a contour (at a
side a cell, we only have to consider the interac- distance shorter than the kernel smoothing length)
tions with the particles of neighboring cells. In then a virtual (ghost) particle is generated outside
this way the number of calculations for time step of the system, constituting the specular image of
and, therefore, the computational time diminish the incident one. Both particles have the same
considerably, from N 2 operations to N log N density and pressure, but opposite velocity. Thus,
the number of boundary particles varies in each
time step, which complicates its implementation
2h
in the code
2h
schematic nature of the test, it proves that the par- of the incoming particle. Note how the fluid par-
ticle can be kept inside the box due to the repul- ticle suffers the effect of the boundary when the
sive force without losses in the mechanical energy distance particle boundary is shorter than 2h.
of the system.
Different tests were carried out with numerical 1300
model to study the evolution of a single particle
Density (kg/m 3 )
inside a box (0.5×0.5 m). The boundary particles 1200
were placed in two rows forming a staggered grid
as shown in Figure 2. 1100
(a)
1000
0.8 1 1.2 1.4 1.6 1.8 2
4
x 10 Position/h
4
Pressure (N/m 2 )
3
dx dx 2
dz/2 1
(b)
dx/2
0
0.8 1 1.2 1.4 1.6 1.8 2
Position/h
Figure 2: Sketch of the interaction between a fluid 1
particle (empty circle) and a set of boundary par-
ticles (full circles). The boundary particles are
NPT
(c)
Z axes the distance will be measured from the Figure 3: Variation of density (a), pressure (b) and
boundary particles. The first experiment was the normalized pressure term (c) for a moving particle
fall of a particle from (X0 , Z0 ) = (0.25, 0.3) m approaching a solid boundary. Calculations were
without initial velocity and zero viscosity (α =0). run without viscosity.
The particle was initially far from the boundaries,
in such a way that gravity was the only initial
force on the particle. This particle does not feel Figure 4 represents the movement of the particle
the interaction of the boundary particles until it using the SPH method (circles) in good agreement
approaches the bottom of the box. It is impor- with the theoretical results (line) obtained from
tant to note that the boundary particle is situated Eq. (21). The position and velocity are observed
exactly at the same X position as the moving par- to be periodic. The particle trajectory in phase
ticle, but at Z=0. space follows a cycle. The collision is observed
Figure 3 shows the repulsion mechanism. The to be elastic. During most of the time, from 0
incoming particle, a, increases the density lo- to A and from B to 0, the particle is under grav-
cally (Fig. 3a) according to Eq.(6), which re- itational forces. Only from A to B the particle is
sults in an increase in pressure following Eq.(7) under the force exerted from the boundary, verify-
(Fig. 3b) and in an increase of the pressure term ing Vz(2h−) = −Vz(2h+), where the superscripts -
(P/ρ 2 ) in
Eq.(4).
The normalized
pressure term, and + refer to before and after the collision. Thus,
NPTz = P/ρ z / P/ρ R , is represented in Fig.
2 2 the particle apparently conserves the mechanical
3c, where z refers to the distance from the incom- energy, showing a closed trajectory and bouncing
ing particle to the wall and R to the return point in a elastic manner.
Boundary Conditions Generated by Dynamic Particles in SPH Methods 179
0.9 0.9
0.8 0.8
0.7 0.7
0.6 0.6
E (J)
0.5 0.5
0.4 0.4
0.3 0.3
0.2 0.2
0.1 0.1
0 0
-0.1 -0.1
0 0.25 0.5 0.22 0.26
time (s) time (s)
100
99.98
Zn
99.96
99.94
99.92
-dx/2 0 +dx/2
Figure 8: Dependence of the return point on the
fall position.
1m
Figure 10: Collapse of a water column in a tank
simulated with SPH model showing the particle
2m velocities.
4m
Figure 9: Initial configuration of the water column the fluid collision against the right wall.
and the tank. On the one hand, the movement of the fluid in-
side the box depends on the interaction between
the fluid and the boundary apart from the geomet-
This laboratory test case will allow checking rical constraints of the initial water parcel. Thus,
different properties of DBPs, namely, the fluid a proper boundary treatment will generate a real-
movement parallel to the left wall and bottom and istic water height decrease near the left wall and
182 Copyright
c 2007 Tech Science Press CMC, vol.5, no.3, pp.173-184, 2007
5 2 4 Summary
4
1.5
H (m)
X (m)
1
Dynamic boundary particles (DBPs) have been
2 considered to study the movement of fluid par-
0.5 ticles inside a container in the framework of a
1 SPH method. These boundaries are constituted by
fixed particles placed in a staggered grid manner
0 0 and follow the same equations of state and con-
0 0.5 1 0 0.5 1 1.5
t (s) t (s) tinuity as the fluid particles. From the computa-
tional point of view, the treatment of the system is
Figure 11: Collapse of a water column in a tank
considerably simplified, since no special consid-
simulated with SPH model (solid line) comparing
erations are necessary for the boundary particles.
with experimental data (circles).
In the looping over the particles they are simply
marked with an index.
The validity of the method has been checked in
an oversimplified geometry where a single parti-
cle impinges a boundary. The moving particle is
an accurate water velocity near the dam toe. On observed to bounce due to the local increase of
the other hand, the boundaries must prevent fluid pressure terms in momentum equation. Thus, the
escape through the right wall, which suffers the boundaries retain the main features of the physi-
most energetic water collision in the experiment. cal process: (a) they only exert a normal force on
the fluid particles when approaching at a certain
the Figure 10, velocity magnitude (v =
In
distance (r < 2h); (b) the exerted force is almost
v2x + v2z ) is depicted at different instants of dam
evolution. The colorbar is common to all snap- independent of the particular position where the
shots. Distances are in meters and velocities in incident particle collides with the boundary; (c)
meters per second. Each particle is represented the mechanical energy of the incident particle is
by a color corresponding to its instantaneous ve- conserved in absence of viscosity (α = 0).
locity. At T =0.4s the maximum dam break ve- The validity of the approach has also been
locities are observed near the toe. The toe veloc- checked in a dam break experiment. There, DBPs
ity evolution will be compared with experimen- prevent fluid to leave the container and guarantee
tal data in next figure. At T =0.8s the wave front a proper water movement close to the walls.
has collided with the right wall. In T =1.1s wa- Finally, DBPs can also be applied to mimic
ter climbed onto the right wall. At T =1.8s water obstacles inside the computational domain and
starts to fall over. The water height decrease near solid boundaries whose movement is exter-
the left wall, which can be observed during the nally imposed. In particular, DBPs have been
whole dam break, will also be compared to exper- used to generate wave mitigating dikes [Crespo,
imental data in Fig. 11. Gómez-Gesteira and Dalrymple (2007a)], slid-
As we mentioned above, an accurate water height ing doors [Crespo, Gómez-Gesteira and Dalrym-
(H) decreases near the left wall and dam toe ad- ple (2007b)] and wavemakers [Crespo, Gómez-
vance (X) prove the proper behavior of bound- Gesteira and Dalrymple (2007c)].
ary conditions. Fig. 11 shows how Hand X fit
data provided by Koshizuka and Oka (1996) ex- Acknowledgement: This work was partially
periment in an accurate way. Experimental points supported by Xunta de Galicia under the proyect
were digitalized from Violeau and Issa (2006). PGIDIT06PXIB383285PR.
Boundary Conditions Generated by Dynamic Particles in SPH Methods 183