Modeling Low Reynolds Number Incompressible Flows Using SPH PDF
Modeling Low Reynolds Number Incompressible Flows Using SPH PDF
ARTICLE NO.
CP975776
The method of smoothed particle hydrodynamics (SPH) is extended to model incompressible flows of low Reynolds number.
For such flows, modification of the standard SPH formalism is required to minimize errors associated with the use of a quasi-incompressible equation of state. Treatment of viscosity, state equation,
kernel interpolation, and boundary conditions are described. Simulations using the method show close agreement with series solutions for Couette and Poiseuille flows. Furthermore, comparison
with finite element solutions for flow past a regular lattice of cylinders shows close agreement for the velocity and pressure fields.
The SPH results exhibit small pressure fluctuations near curved
boundaries. Further improvements to the boundary conditions may
be possible which will reduce these errors. A similar method to that
used here may permit the simulation of other flows at low Reynolds
numbers using SPH. Further development will be needed for cases
involving free surfaces or substantially different equations of
state. Q 1997 Academic Press
1. INTRODUCTION
those obtained using grid-based methods tailored for specific problems. Moreover, SPH can be more computationally expensive than alternative techniques for a given application.
For typical astrophysical applications, SPH is used to
model compressible fluids at high Reynolds number (usually Re $ 103 [4]). Although SPH has been used to model
free surface flows of inviscid incompressible fluids [3], and
some research has been performed using SPH for compressible gases with Reynolds numbers down to five [5],
low Reynolds number (Re # 1) incompressible flows have
not been modeled using SPH. The objective of this paper
is to present modifications of the standard SPH formalism
needed to simulate such flows. Treatment of viscosity,
equation of state, kernel interpolation, and boundary conditions are described. Simulations using the method show
close agreement with series solutions for Couette and
Poiseuille flows and with finite element solutions for flow
past a regular lattice of cylinders.
2. THE METHOD
2.1. Background
Using SPH the fluid is represented by particles, typically
of fixed mass, which follow the fluid motion, advect contact
discontinuities, preserve Galilean invariance, and reduce
computational diffusion of various fluid properties including momentum. The equations governing the evolution of
the fluid become expressions for interparticle forces and
fluxes when written in SPH form. Using the standard approach to SPH [6, 7], the particles (which may also be
regarded as interpolation points) move with the local fluid
velocity. Each particle carries mass m, velocity v, and other
fluid quantities specific to a given problem. The equations
governing the evolution of fluid quantities are expressed
as summation interpolants using a kernel function W with
smoothing length h. For example, the density at particle
a, ra , may be evaluated using
ra 5
Om W
b
ab ,
(1)
(2)
215
and
rab 5 ra 2 rb ,
(3)
S D
urab u
1
f
,
s
h
h
(4)
S D O S
1
=p
r
52
mb
pa pb
1
=W ,
r 2a r 2b a ab
Om v
b ab ? =aWab .
pd 5 pt 2 ph ,
(7)
(5)
dra
5
dt
(6)
Our test cases do not involve free surfaces, and thus (1)
may be used to evolve particle densities. One disadvantage
of this approach is that r must be evaluated by summing
over the particles before other quantities may be interpolated. However, (6) allows r to be evolved concurrently
with particle velocities and other field quantities, thus significantly reducing the computational effort. While (6)
does not conserve mass exactly ((1) does, provided the
total number and mass of particles are constant), this is
1
1
1
2 =pt 5 2 =pd 2 =ph ,
r
r
r
(8)
1
5 2 =pd 1 F,
r
where F is a force per unit mass. Using this approach,
pressure gradient driven flow through a periodic lattice can
be easily simulated (see Section 3.3). Periodic boundary
conditions are applied to all fluid quantities and the flow
is driven by the effective body force. The dynamic pressure
is modeled using the equation of state (see (10) in Section
2.4). For simplicity, p is used in the following sections to
denote the dynamic pressure pd .
2.4. Equation of State
Most grid-based techniques model the flow of water
as incompressible since the speed of sound in water is
usually large compared with bulk fluid motions (i.e., a very
low Mach number). Using SPH, fluid pressure is an explicit
function of local fluid density and particle motions are
driven by local density gradients. Therefore, it is necessary
to use a quasi-incompressible equation of state to model
such flows with SPH. Since the actual equation of state for
water would require a prohibitively small time step for
stability (by the CFL condition [8]), an artificial state equation is used. The chosen sound speed is low enough to be
practical, yet high enough to limit density fluctuations to
within 3%. A similar approach has been used in grid-based
techniques to model steady incompressible flow [911].
Previous applications of SPH to incompressible flows
216
HS D J
r
r0
21 ,
(9)
where c 5 7 and a zero subscript denotes reference quantities. The choice of c 5 7 in (9) causes pressure to respond
strongly to variations in density. Thus, perturbations to the
density field remain small, even at high Reynolds numbers.
However, as the density fluctuations increase, small errors
in density correspond to increasingly larger errors in pressure. For lower Reynolds numbers, more accurate pressure
estimates are obtained using SPH if c is taken to be unity
(as it is in [911]), since errors in density and pressure
remain proportional.
In previous work involving incompressible fluids, the
subtraction of 1 in (9) was introduced to remove spurious
boundary effects at a free surface. It is well established
that SPH is unstable when attractive forces act between
particles [1417, 29]. Consequently, for the simulations
presented in Section 3, this subtraction was found to lead to
numerical instabilities in regions of sustained low pressure.
Since the test simulations (and many applications) have
particles filling all space, this work uses
p 5 c 2r,
(10)
dv
1
5 2 =p 1 n =2v 1 F,
dt
r
(11)
V 20 nV0 FL0
,
,
,
d L0d d
(12)
Dr
.
r0
(13)
where
d5
217
(14)
b 5 min bmax , 1 1
dB
.
da
(15)
O m Srp 1 rp 1 P D = W
b
a
2
a
b
2
b
ab
ab ,
(16)
218
where
2ace ab 1 be 2ab
, if vab ? rab , 0;
rab
Pab 5
0,
DJ O
a
(19)
rab Wab
urab u ra
(20)
DJ O
a
b
2
b
ab
ab
(22)
ab
a b
(18)
=aWab 5
1
= ? e= v
r
a
2
a
ab
where e 5 rn is the dynamic viscosity. This hybrid expression combines a standard SPH first derivative with a finite
difference approximation of a first derivative. By taking a
Taylor expansion about particle a, it can be shown that this
expression is appropriate [26]. This formulation conserves
linear momentum exactly, while angular momentum is only
approximately conserved. If the kernel takes the form of
(4) then
HS
(17)
otherwise,
hvab ? rab
e ab 5 2
,
r ab 1 0.01h2
HS
O m Srp 1 rp D = W
m (e 1 e )v
1 W
1O
S
D1F ,
rr
r r
dva
52
dt
(21)
f (s) 5
10
7f
if 1 # s , 2;
(23)
if s $ 2
0,
f (s) 5
7
478f
0 # s , 1;
(3 2 s) 2 6(2 2 s) ,
1 # s , 2;
(3 2 s)5,
2 # s , 3;
0,
s $ 3,
(24)
219
h
,
c
(25)
SD
h
fa
1/2
h2
.
n
S D S
y 2V
V0
nf
n2f 2
0
y1
(21)n sin
y exp 2n 2 t ,
L
L
L
n51 nf
(28)
(26)
(27)
Equation (27) is based upon the usual condition for an explicit finite difference method simulating diffusion. At sufficiently high resolution (small h) or large viscosity, (27) is
typically the dominant time constraint. The choice of kernel
and the arrangement of particles influences the coefficients
in (25)(27). In particular, different splines can have different effective resolution lengths for the same value of h.
For example, use of a cubic spline (which is narrower than
a quintic for the same smoothing length) may require
slightly smaller coefficients in the above expressions.
(29)
V0L
.
n
y
4FL2
F
y(y 2 L) 1
3
3
2n
n50 n f (2n 1 1)
sin
D S
(30)
fy
(2n 1 1) f n
(2n 1 1) exp 2
t .
L
L2
2
220
FIG. 2. Comparison of SPH and series solutions for Couette flow (Re 5 1.25 3 1022).
FIG. 3. Comparison of SPH and series solutions for Poiseuille flow (Re 5 1.25 3 1022).
221
222
FIG. 7. Contour plots of velocity magnitude using (a) FEM and (b) SPH for Re 5 1 (contour lines are labeled in units of 1024m/s).
223
FIG. 9. Contour plots of pressure using (a) FEM and (b) SPH for Re 5 1 (contour lines are labeled in units of 1026Pa).
FIG. 10. Final particle positions corresponding to the results presented for Re 5 0.03. Fluid and boundary particles are shown in black
and gray, respectively.
FIG. 11. Comparison of SPH and FEM velocity profiles along paths
1 and 2 for Re 5 0.03.
224
FIG. 12. Contour plots of velocity magnitude using (a) FEM and (b) SPH for Re 5 0.03 (contour lines are labeled in units of 1024m/s).
Extensions of the method of smoothed particle hydrodynamics (SPH) have been presented which allow the simulation of incompressible flows for low Reynolds numbers.
Results suggest that the proposed equation of state, viscosity formulation, boundary conditions, and interpolation
FIG. 13. Comparison of SPH and FEM pressure profiles along paths
3 and 4 for Re 5 0.03.
225
FIG. 14. Contour plots of pressure using (a) FEM and (b) SPH for Re 5 0.03 (contour lines are labeled in units of 1023Pa).
REFERENCES
1. L. B. Lucy, A numerical approach to the testing of the fission hypothesis, Astron. J. 83, 1013 (1977).
9.
10.
11.
12.
13.
14.
17. J. P. Morris, Stability Properties of SPH, Publ. Astron. Soc. Aust. 13,
97 (1996).
6. W. Benz, Smooth particle hydrodynamics: A review, in NATO Workshop, Les Arcs, France, 1989.
19. J. J. Monaghan, Improved modelling of boundaries, Applied Mathematics Reports and Preprints 95/30, Monash University, Melbourne,
Australia, 1995. (unpublished)
226
Applied Mathematics Reports and Preprints 95/18, Monash University, Melbourne, Australia, 1995. (unpublished)
27. Schoenberg, I. J., Contributions to the problem of approximation of
equidistant data by analytic functions, Q. Appl. Math. 4, 45 (1946).
28. Monaghan, J. J. and Lattanzio, J. C., A refined particle method for
astrophysical problems, Astron. Astrophys. 149, 135 (1985).
29. J. P. Morris, Analysis of Smoothed Particle Hydrodynamics with Applications, Ph.D. thesis, Monash University, Melbourne, Australia, 1996.
30. N. Epstein and J. H. Masliyah, Creeping flow through clusters of
spheroids and elliptical cylinders, Chem. Enj. J. 3, 169 (1972).
31. J. E. Drummond and M. I. Tahir, Laminar viscous flow through
regular arrays of parallel solid cylinders, Int. J. Multiphase Flow 10,
515 (1984).
32. G. W. Jackson and D. F. James, The permeability of fibrous porous
media, Can. J. Chem. Eng. 64, 364 (1986).