a hybrid solid boundary treatment algorithm for smoothed...

13

Upload: truongdan

Post on 02-Dec-2018

224 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: A hybrid solid boundary treatment algorithm for smoothed …scientiairanica.sharif.edu/article_1968_cdb8c58c1e895d1a... · A hybrid solid boundary treatment algorithm for smoothed

Scientia Iranica A (2015) 22(4), 1457{1469

Sharif University of TechnologyScientia Iranica

Transactions A: Civil Engineeringwww.scientiairanica.com

A hybrid solid boundary treatment algorithm forsmoothed particle hydrodynamics

A. Mahdavi� and N. Talebbeydokhti

Department of Civil and Environmental Engineering, Shiraz University, Shiraz, Iran.

Received 23 May 2014; received in revised form 6 October 2014; accepted 1 December 2014

KEYWORDSSPH;Solid boundarycondition;Free surface ow;Dam break;Sharp-crested weir.

Abstract. This study presents a new hybrid algorithm for treating solid walls in thecontext of a weakly-compressible SPH model. The basic concept is to �ll an imperviousregion with some layers of dummy particles for improving the solution accuracy, and asingle layer of repulsive particles to impose a no-penetration condition along the solid- uid interface. The latter consists of a new repulsion mechanism that, unlike the well-known Lennard-Jones model, induces no pressure oscillation close to the wall. This hybridboundary treatment technique is implemented in conjunction with a parameter-free SPHscheme to provide a Lagrangian solver for 2D Navier-Stokes equations. The accuracy ofthe model is veri�ed by recourse to challenging numerical tests in free surface hydraulics,including a dam break surging over a dry bed, with and without obstacles, as well as a freefalling water jet from a sharp-crested weir. Comparison with relevant numerical and/orexperimental data from the literature shows fair agreement in each case.c 2015 Sharif University of Technology. All rights reserved.

1. Introduction

Smoothed Particle Hydrodynamics (SPH) is a mesh-free, Lagrangian scheme, invented for astrophysi-cal simulations independently by Gingold and Mon-aghan [1], and Lucy [2]. In the course of development,the scheme has been successfully examined in a broadrange of applications, including solid mechanics [3],complex free surface ows [4], and wave-structureinteractions [5], among others. The interested readeris referred to the works of Liu and Liu [6], andMonaghan [7,8] for a comprehensive review of therelevant applications and theoretical background of themethodology.

Concerning free surface modeling, which is atthe focus of this study, SPH has an elegant feature.It automatically delineates a free surface, no matter

*. Corresponding author. Mobile: +98 918 348 6596;Fax: +98 711 647 3161E-mail addresses: [email protected] (A. Mahdavi);[email protected] (N. Talebbeydokhti)

how complex it is in shape. The uid continuum isdecomposed into a �nite set of particles that completelydetermine the state of the system at a discrete level.These particles are free to move, but only accordingto movement dictated by the governing equations of uid motion. Wetting-drying fronts can, thus, betracked straightforwardly, without extra e�ort, suchas mapping [9] or remeshing techniques. These allhighlight the Lagrangian nature of the method.

Although the SPH method has been proven ef-�cient in capturing free surface boundaries, carefulattention should be given to properly model solid wallsthat surround the ow region. Improper implemen-tation of such solid interfaces may lead to seriouscontamination of the entire computational domain,and thus, to erroneous predictions. This may alsocause numerical instability as time evolves. Besides,it is crucial to prevent unphysical penetration of uidparticles into the solid boundary.

Several methods have been proposed for dealingwith solid boundaries in SPH. A number of well-known techniques are brie y revisited herein, from the

Page 2: A hybrid solid boundary treatment algorithm for smoothed …scientiairanica.sharif.edu/article_1968_cdb8c58c1e895d1a... · A hybrid solid boundary treatment algorithm for smoothed

1458 A. Mahdavi and N. Talebbeydokhti/Scientia Iranica, Transactions A: Civil Engineering 22 (2015) 1457{1469

view point of their applicability, limitation, and merit.A very simple technique for treating solid walls canbe constituted by considering the fact that a uidparticle approaching a solid wall experiences an elasticbounce, so that a fraction of its kinetic energy will bedissipated [10]. However, this technique reduces thesolution accuracy, since it signi�cantly distorts the ow�eld in the vicinity of solid boundaries [11].

Some authors have adopted the ghost particletechnique to represent a solid wall [12,13]. To thisend, additional particles are generated outside a solidboundary by instantaneously mirroring nearby uidparticles, with respect to that boundary line. Theseparticles tend to mimic the solid boundary with den-sity, pressure and velocity deduced from neighboring uid particles. In this way, either free-slip or no-slip boundary condition can be implemented in thecode. However, the position and the number ofghost particles may change every time step, leadingto di�culties in computer implementation. Moreover,mirroring a particle, with respect to a boundary line,requires knowledge about local normal vectors to thatboundary. This represents the main drawback ofthe approach, particularly in the presence of irregularboundaries or sharp edges.

In an alternative approach, dynamic particles aredistributed in some two or more layers outside the solidboundary in a uniform or staggered pattern [5,14]. Theposition of dynamic particles remains �xed during theentire simulation time while their density and pressureare evolved similar to a real uid particle, namely,by satisfying the mass conservation law and equationof state. Although this technique is very simple toimplement, numerical experiments show the unphysicalstick of uid particles on the solid- uid interface, asreported in [15].

According to the repulsive force method, a line ofparticles located along the solid- uid interface exertsrepulsion on the approaching uid particles to preventtheir penetration of the wall. Basically, these forcesstem from inter-molecular potentials and act along theline connecting two particles. The Lennard-Jones forceis an example [16]. Despite its ease of implementation,this technique produces high magnitude repulsion wheninter-particle distance becomes very small. This, inturn, disturbs pressure distribution near the wall.Improved models to overcome this issue can be foundin the works of Rogers and Dalrymple [17], and Shaoet al. [18].

In the context of incompressible SPH, a number oftechniques, such as mirror particles [19] and �xed wallparticles [20], have been developed to implement theno-slip or free-slip, and Neumann boundary conditionsfor a solid boundary. More recently, Liu et al. [21]proposed an improved mirror particle that signi�cantly

enhances numerical accuracy and stability by reducingpressure oscillations in the vicinity of the solid wall.

When a uid particle reaches a solid boundary,accuracy of the related SPH approximations decreases,since no particle exists outside the boundary to con-tribute in particle interaction. This is often referredto as the density de�ciency problem in SPH litera-ture [16]. In addition, some approaching uid particlesmay penetrate a solid wall in an unphysical manner,leading to an arti�cial mass loss or even instability ofcomputation.

This study aims to alleviate the above-mentionedissues by combining the dummy particles and a softrepulsive force model in favor of accurate ow predic-tions near the solid walls. This new hybrid boundarytreatment is e�cient and simple to implement. Theorganization of the paper is as follows: In section 2,the governing equations of uid motion are provided.Section 3 brie y reviews the basics of SPH modeling,and subsequently proposes the hybrid boundary treat-ment in detail. Three numerical tests are consideredin Section 4 to assess the validity of the methodas adopted herein. These include simulation of adam break surging over a dry bed, with and withoutobstacle, as well as a free falling water jet from a sharp-crested weir. The paper ends with concluding remarksand some ideas for further work in Section 5.

2. Governing equations

This study focuses on numerical solution of Navier-Stokes equations, employing a Lagrangian descriptionof motion:

d�dt

= ��~r:~u; (1)

d~udt

= �1�~rp+ ~F : (2)

The above equations express the fundamental laws forconservation of mass and momentum, respectively inwhich, t is time, � is uid density, ~u is ow velocity, pis pressure and ~F is the external force per unit mass,which typically includes contribution from gravity, ~g,and repulsive boundary forces, as discussed later.

Owing to the Lagrangian nature of the SPH,it is possible to follow the trajectory of individual uid parcels that advect with the ow. This featuremay be considered the key advantage of the method,particularly in the presence of moving boundaries, suchas a free surface. In other words, there is no needfor a special free surface tracking scheme, such asvolume of uid. Moreover, the Lagrangian momentumequation contains no convection term and the position

Page 3: A hybrid solid boundary treatment algorithm for smoothed …scientiairanica.sharif.edu/article_1968_cdb8c58c1e895d1a... · A hybrid solid boundary treatment algorithm for smoothed

A. Mahdavi and N. Talebbeydokhti/Scientia Iranica, Transactions A: Civil Engineering 22 (2015) 1457{1469 1459

of particles is simply updated as follows:

d~xdt

= ~u; (3)

where ~x denotes the time-dependent position of the uid particle. The global ow motion is determinedafter integrating Eq. (3) in time for each uid particleinvolved in the computation. It is common practiceto take the SPH uid as weakly-compressible. Thisassumption allows pressure to be uniquely determinedfrom the density �eld by introducing an Equation OfState (EOS). It is worth mentioning that using an EOSconsiderably reduces the computational costs requiredto obtain the pressure �eld, since it eliminates the needfor solving an extra Poisson equation, which constitutesan essential component of any incompressible SPHsolver [22]. The Tait EOS is commonly chosen indealing with free surface ows [4]. It is given by:

p = b0��

��0

� � 1�; (4)

where �0 is the reference density of the uid phaseat atmospheric pressure (�0 = 1000 kg/m3 in whatfollows). The exponent, , is commonly taken asequal to 7 for free surface ows [13]. The coe�cient,b0, relates to the speed of sound, and it is selectedsuch that allowable density variations stay to within1% during the entire simulation time [23]. Thisrequirement is consistent with the nature of assumedweakly-compressible uid.

3. Numerical procedure

3.1. SPH discretization schemeThe basic idea behind the SPH technique is to de-compose uid continuum into a �nite set of discreteLagrangian particles, each carrying individual physicalquantities and obeying the governing equations of uid motion. These ever-changing particles are ofteninitially distributed on a Cartesian lattice, forming anequally-spaced pattern. Detailed ow features can bedescribed well by increasing the number of particlesinvolved, but at the cost of increased computationaltime. Each particle is assigned a constant mass, m,though it occupies a time-dependent volume of space,V = m=�, due to density variations inherent in aweakly-compressible uid.

The SPH particles essentially act as moving in-terpolation points. During ow evolution, the physicalquantities associated with each particle are interpo-lated from the information at its neighbors, usingsmoothing kernel W as a weighting function. Theneighboring particles for a generic particle, i, are thosethat locate within its support domain, which delineatesa circle of radius, kh, centred at ~xi for 2D problems.

In other words, this de�nes a cuto� radius, kh, beyondwhich the kernel function vanishes.

Among several options proposed in the literature,a modi�ed Gaussian kernel [13] is preferred here dueto its improved stability aspects and enhanced codee�ciency. This kernel function preserves the desiredproperties of the conventional Gaussian kernel, whilepossessing a certain compact support. It is given by:

Wij =

8>>>><>>>>:exp(�q2

ij)�exp(�k2)2�h2

R k0 (exp(� 2)�exp(�k2))d

for 0 � qij � k

0 for qij > k

(5)

Here, qij = j~xij j =h, where ~xij = ~xi � ~xj is the vectorconnecting two interacting particles, i and j. In thepresent study, the characteristic smoothing length, h,is set equal to initial inter-particle spacing, denoted by�, also, k = 3 is adopted.

It is well known that the weakly-compressibleSPH model su�ers from unphysical uctuations in thepressure and density �elds. This may lead to tensileinstability and even divergence in extreme cases. Itis common practice to introduce an arti�cial viscos-ity term in order to prevent instabilities in a SPHsimulation [4]. This term is supposed to embody thee�ect of real viscosity. Such e�ects tend to smooth out uctuations in the uid density, thereby, stabilizing thepressure �eld. The arti�cial viscosity term proposedby Monaghan [4] conserves both linear and angularmomentum. However, it contains two adjustableparameters that need to be carefully calibrated beforeperforming any simulation.

In this study, the density �eld is stabilized follow-ing the method proposed by Ferrari et al. [23], whichis free from any calibration parameter and easy toimplement. This technique employs the intrinsic nu-merical viscosity associated with the Rusanov ux [24]to remove spurious oscillations in the ow �eld. Thecontinuity equation, therefore, reads:

d�idt

=�iXj

Vj(~ui � ~uj):~riWij

+Xj

(cijVj(�j � �i))~nij :~riWij ; (6)

where ~nij = ~xji= j~xjij. The SPH summation extendsover the set of nearby particles (denoted by thesubscript, j) whose locations fall within the supportdomain of particle, i. Therefore, all interacting pairssurrounded by a support domain have to be identi�edin each computational stage. This can be e�cientlyaccomplished via the link list search algorithm [16].The gradient of the smoothing kernel is computed with

Page 4: A hybrid solid boundary treatment algorithm for smoothed …scientiairanica.sharif.edu/article_1968_cdb8c58c1e895d1a... · A hybrid solid boundary treatment algorithm for smoothed

1460 A. Mahdavi and N. Talebbeydokhti/Scientia Iranica, Transactions A: Civil Engineering 22 (2015) 1457{1469

respect to particle i and is denoted by ~riWij . It is easyto verify that ~riWij = �~rjWij .

Eq. (6) will set up su�cient penalization toremedy spurious density uctuations, which is requiredto achieve a less noisy and more stable pressure �eld.Here, cij = max(ci; cj) determines the maximum wavecelerity between each pair of interacting particles.With the assumption of weakly-compressible uid, thewave celerity is explicitly linked to the pressure anddensity �elds:

ci =�b0 �0

� 12��i�0

� �12

; (7)

which is actually ci = [(@p=@�)i]1=2. Numerical

experiment based on this approach con�rmed that itavoids the highly disordered particles without requiringadditional treatment to correct particle movement,such as XSPH [4].

Several SPH discretization schemes may beadopted for the pressure gradient term in the mo-mentum equation. The scheme proposed by Hu andAdams [25] is utilized herein, where the momentumequation takes the following form:

d~uidt

=� 1mi

Xj

�V 2i +V 2

j���jpi+�ipj

�i + �j

�~riWij+ ~Fi:

(8)

This approach introduces density-weighted inter-particle-averaged pressure in the velocity evolutionequation. The antisymmetry property of the pressuregradient term in Eq. (8) guarantees that the pressureforce between particles i and j is equal in magnitude,and opposite in sign to that between particles j andi, ensuring Newton's third law and the momentumconservation properties of the scheme.

3.2. A new hybrid solid boundary treatmentTo accurately model a solid wall is a critical issuefrequently investigated by the SPH community sincethe invention of the method. In fact, this representsa drawback of many particle methods compared tothe conventional grid based techniques, which behaverather simply in the solid boundary treatment. Anew hybrid solid boundary treatment algorithm isschematically depicted in Figure 1 and outlined in whatfollows.

To compensate for the density de�ciency near asolid boundary, several layers of equally-spaced dummyparticles are con�gured outside the boundary line. Thenumber of layers depends on the radius of the supportdomain of an approaching uid particle. For example,three layers of dummy particles are su�cient if k =3. The dummy particles are assigned zero velocity tomimic a stationary solid wall. Other ow variables haveto be properly assigned too. As shown by Adami et

Figure 1. A sketch of the proposed algorithm for solidboundary treatment: The approaching uid particle a (�)interacts with other uid and dummy particles locatedwithin its support domain (the shaded area enclosed bydashed line) and experiences a repulsion, ~fas, from theinterfacial dummy particle, s, if their inter-particledistance satis�es j~xasj � ksh.

al. [26], the pressure of a stationary dummy particle,s, inspired by a single approaching uid particle, a, iscomputed as:

ps = pa + �ag(ya � ys): (9)

The quantities corresponding to dummy and approach-ing uid particles are denoted by respective subscripts,hereafter. The second term on the right hand sideof Eq. (9) is the hydrostatic component caused bythe elevation di�erence between the uid and dummyparticles, ya � ys. In the SPH convention, Eq. (9) isexpressed as:

ps =Pa (pa + �ag(ya � ys))WsaVaP

aWsaVa: (10)

Eq. (10) constitutes a corrective kernel approximationfor ps in which the summations extend over the uidparticles that interact with particle s. The densityof a dummy particle is computed from its pressure,according to EOS.

Although this method ensures a continuous ow�eld close to the boundary, under extreme circum-stances, single approaching uid particles could pos-sibly penetrate through the solid walls and even escapethe computational domain. To avoid this, the dummyparticles located right on the solid- uid interface areconsidered to exert repulsion on the approaching uid

Page 5: A hybrid solid boundary treatment algorithm for smoothed …scientiairanica.sharif.edu/article_1968_cdb8c58c1e895d1a... · A hybrid solid boundary treatment algorithm for smoothed

A. Mahdavi and N. Talebbeydokhti/Scientia Iranica, Transactions A: Civil Engineering 22 (2015) 1457{1469 1461

particles. These repulsive forces apply along the radialline connecting the two particles. Without loss ofgenerality, both the uid and repulsive particles areassigned an identical mass. As mentioned earlier,the commonly used model, i.e. the Lennard-Jonesmolecular force, is known to produce high-magnituderepulsions that cause pressure disturbances near theboundary region. This problem can be alleviated byapplying a �nite-magnitude repulsive force as proposedherein. Accordingly, the approaching uid particle, a,experiences a force (per unit mass) due to the actionof the single interfacial dummy particle, s, as given by:

~fas = K(qas)~xasj~xasj2 : (11)

The factor, K = 0:01b0 =�0, represents an estimate ofthe maximum force necessary to stop a uid particlemoving at the estimated maximum speed [7]. Toavoid any wall penetration, function (qas) is de�nedso that it monotonically increases as its argument,qas = j~xasj=h, decreases:

(qas) =

8><>:exp(�3q2

as)�exp(�3k2s)

1�exp(�3k2s) for 0 � qas � ks

0 for qas > ks (12)

With this choice, the uid particle experiences a �nite-magnitude repulsion if its separation distance from aboundary particle is lower than the cuto� radius, ksh,as referred to in Figure 1. The resultant force can beevaluated by summing the contributions from individ-ual interfacial dummy particles whose set is denoted byIDPs. With this notation, the external force exertedon particle a, due to boundary e�ects, is evaluatedas ~Fa =

Ps2IDPs ~fas. Numerical experiments based

on this formulation con�rmed the formation of softinter-particle repulsions without a�ecting near wallpressure distribution, provided that ks = 1 � 1:5.The computational results were found to be globallyinsensitive to the value of ks when it varies in theabovementioned range. The following computationsare carried out with ks = 1:5, unless otherwise stated.

It is worth mentioning that the repulsive particletechnique can also be adopted for the case of rigidbodies interacting with an ambient uid. This 2Dmovement is completely uid-driven and characterizedby translational-rotational degrees of freedom. Thetranslational motion can be tracked by summing theforces exerted on the interfacial boundary particles foran entire body. This formalism enjoys the principleof equal and opposite action and reaction (i.e., ~fsa =�~fas), due to the antisymmetry property of Eq. (11).The rotational motion is determined by the torqueof the forces about the centre of mass of the rigidbody. Following the work of Monaghan [7] and Khayyer

et al. [27], it is straightforward to verify that boththe linear and angular momentum of the system arepreserved at the discrete level.

3.3. Time integration and stabilityconsideration

The SPH ow equations form a system of OrdinaryDi�erential Equations (ODEs) that can be explicitlymarched in time to determine the dynamics of ow.Although any stable time integration scheme for ODEsmay be implemented, in practice, those possessinga broader range of stability with a reduced memoryrequirement are usually preferred. Each ow equationcan be cast in a generic form given by:

dUdt

= L(U): (13)

In the present study, the conventional four stageRunge-Kutta method integrates resulting ODEs alongthe time axes. Although this scheme requires a highernumerical cost compared to the predictor-correctorscheme, it is more stable, and the computed time stepscan be considerably longer than those allowed by thepredictor-corrector scheme [28]. This time integratoris fully explicit and may be expressed in the compactform as:

U (k)i =U (0)

i + �k�t�L�U (k�1)i

�+ 2�kL

�U (k�2)i

�+ 2�kL

�U (k�3)i

�+ �kL

�U (k�4)i

��for k = 1; :::; 4 (14)

with U (0)i = Uni and Un+1

i = U (4)i . Superscripts n

and n + 1 refer to the current and next time levels,respectively. The integration weighting coe�cientssatisfy �3 = 2�1 = 2�2 = 6�4 = 1, and the switchingintegers, �k, are zero, except for �4 = 1. For stabilityreasons, the magnitude of time step, �t, should beconstrained, according to the Courant-Friedrichs-Lewy(CFL) criterion, expressed as:

�t = Cnmini

�hci;hj~uij�; (15)

with Cn being the well-known CFL number.

4. Results and discussion

4.1. Dam break ooding over horizontal bedIn the �rst computational test, the present scheme isadopted to investigate the ow �eld generated by thecollapse of a dam, and the subsequent impact of thepropagating water front against a rigid vertical wall,

Page 6: A hybrid solid boundary treatment algorithm for smoothed …scientiairanica.sharif.edu/article_1968_cdb8c58c1e895d1a... · A hybrid solid boundary treatment algorithm for smoothed

1462 A. Mahdavi and N. Talebbeydokhti/Scientia Iranica, Transactions A: Civil Engineering 22 (2015) 1457{1469

Table 1. A pseudo-code describing the steps involved in the computation of a dam break wave.

Step 1: De�ne problem geometry in terms of discrete particles for the uid and surrounding solid

boundaries. Particles are initially distributed in an evenly-spaced pattern.

Step 2: Initialize the system by assigning mass, density, velocity and pressure to each particle.

Set t = 0.

Step 3: Perform link list search to identify all interacting pairs of

particles, based on the current particle positions.

Step 4: Impose boundary conditions, Eqs. (10) and (11).

Step 5: Compute the rate of change of density for each uid particle according to the mass

conservation law, Eq. (6).

Step 6: Use EOS, Eq. (4), to evaluate pressure for each uid particle.

Step 7: Compute the rate of change of velocity (acceleration) for each uid particle according to

the momentum conservation law, Eq. (8).

Step 8: Apply CFL criterion, Eq. (15), to dynamically adjust the time step, �t.

Step 9: Based on the four stage Runge-Kutta method, Eq. (14), and the results already obtained

in Steps 5 and 7, evolve density, velocity and position of uid particles to the new

time level, t = t+ �t. Note that Step 3 to Step 7 should be performed successively in

each Runge-Kutta stage.

Step 10: Check whether the desired simulation time is achieved. If so, go to Step 11. Otherwise,

jump to Step 3.

Step 11: Save the results for visualization or post-processing, End.

Figure 2. Schematic representation of dam breakproblem with L = 2H, D = 3H and d = 5:366H (afterZhou et al. [29]).

positioned downstream of the dam. This problem, de-spite its simple con�guration, may o�er useful insightsinto more complex hydrodynamic phenomena, such aswave-impact loading on coastal structures [5,14], orsloshing loads in uid containers [18,28].

Figure 2 depicts a de�nition sketch of the prob-lem, where a dam (wall) separates a column of waterwith height H and length L = 2H, from an initially drytank in the downstream side. The Cartesian coordinatesystem (x; y) has its origin at the lower left corner ofthe tank, with the x-axis along the tank and the y-axisvertically upward. The same setup withH = 0:6 m has

been investigated experimentally by Zhou et al. [29],and it is broadly accepted as a benchmark for verifyingnumerical schemes (e.g., [13,23,26,30]). Table 1 sum-marizes a pseudo-code describing the steps involved inthis SPH simulation.

Initially, the water body behind the dam is underhydrostatic equilibrium with null velocity everywhere.The dam suddenly collapses at t = 0 and the waterparcels have the opportunity to move in the tankunder the action of gravity, producing in time a highlydynamical ow.

Figure 3 shows snapshots of the generated owat di�erent nondimensional times, t(g=H)1=2 in whichparticles are colored according to their local nondimen-sional pressure, p=(�0gH). This case involves a set of96 � 192 uid particles (corresponding to H=� = 96).The released water impacts the right wall of the tankprior to t(g=H)1=2 = 2:48. The impact is accompaniedby a narrow jet of water that runs up along the wall,overturns and falls back thereafter (t(g=H)1=2 = 2:48to 5:47). The overturning tip then hits the underly-ing water (t(g=H)1=2 = 6:18), forming a big splash(t(g=H)1=2 = 7:54) that rebounds almost vertically inair. The splash curls and eventually plunges forwardinto the water body, giving rise to a highly distortedand broken free surface pro�le (t(g=H)1=2 = 9:01).The ow gradually becomes quiescent afterwards. Thesimulation was continued until t(g=H)1=2 � 40, which

Page 7: A hybrid solid boundary treatment algorithm for smoothed …scientiairanica.sharif.edu/article_1968_cdb8c58c1e895d1a... · A hybrid solid boundary treatment algorithm for smoothed

A. Mahdavi and N. Talebbeydokhti/Scientia Iranica, Transactions A: Civil Engineering 22 (2015) 1457{1469 1463

Figure 3. Evolution of free surface ow after break of a dam. The colormap varies from blue to red indicating the rangeof nondimensional pressure, p=(�0gH), between zero and one.

covers several wave impacts on the tank walls. This en-sures the long-term stability of the boundary treatmentmethod proposed herein.

Figure 4 depicts a close-up view of the com-puted free surface pro�le for the instant at whichthe overturning jet hits the underlying water. Alsoshown in this �gure is the numerical result obtainedby the Boundary Element Method (BEM) at the sameinstant [13]. The BEM relies on the irrotational motionof inviscid uid in the context of potential ow theory.From the qualitative aspects, both models agree fairlywell in predicting the extent of entrapped cavity, aswell as the location of the jet impact point.

A further veri�cation has been provided by com-paring water depth time series with experimental mea-surements and other numerical solutions in Figure 5.

Figure 4. Present result (gray symbols) versus BEMcomputation [13] (solid line) for dam break problem.

Page 8: A hybrid solid boundary treatment algorithm for smoothed …scientiairanica.sharif.edu/article_1968_cdb8c58c1e895d1a... · A hybrid solid boundary treatment algorithm for smoothed

1464 A. Mahdavi and N. Talebbeydokhti/Scientia Iranica, Transactions A: Civil Engineering 22 (2015) 1457{1469

Figure 5. Time series of water depth at (a)(x=H)1 = 3:713 and (b) (x=H)2 = 4:542. Comparisonbetween the present result (H=� = 96) and otherexperimental and numerical approaches.

These include Fluent simulation results from [31] andclassical SPH predictions from [13], which is computedbased on periodic density renormalization. Two wavegauges were installed at (x=H)1 = 3:713 and (x=H)2 =4:542 to record water depths, h1 and h2, during thewhole experiment [29]. The evaluation of water depthhas been carried out in the post-processing of SPHresults by subtracting the height of the possibly presententrapped cavity from the total water level. Thisalgorithm is motivated by the fact that the standardcapacitive wave gauges installed in the experimental ume were sensitive to the wet part of the wire [13].From Figure 5(a) and (b), it is evident that allnumerical results satisfactorily agree with experimentalmeasurements until the collapse of the entrapped aircavity. Afterwards, however, the experimental waterdepth reveals an increasing trend, but, the numerical

Figure 6. Time series of pressure at y=H = 0:19 on theright wall. The present results are computed for di�erentparticle resolutions (H=� = 96, 144) and compared withother experimental and numerical approaches.

counterparts appear to decrease, except for Fluentpredictions in case of h1.

Figure 6 compares the computed pressure timeseries on the right wall with experimental data from[29] and two-phase SPH computation from [13]. Themeasuring point is positioned at y=H = 0:19 onthe wall in accordance with the work of Adami etal. [26]. All uid particles approaching this point con-tribute to computing the pressure through a correctiveSPH interpolant, based on the aforementioned kernelfunction. The computed pressure pro�les oscillatemostly around the experimental data, implying properprediction of the main pressure plateau by the presentmodel. As Figure 6 indicates, a �ner particle resolution(H=� = 144 corresponding to 144�288 uid particles)noticeably reduces the magnitude of oscillations, which,in turn, produces a smoother pressure pro�le.

The experimental pressure pro�le is characterizedby two peaks. The �rst pressure peak occurs whenthe advancing wave front hits the measuring pointon the wall, while the second peak is due to theformation of the air cavity. The latter is slightlydelayed because the air compressibility e�ect is notaccounted for by the present single- uid model. Thedelay is less pronounced in the case of the two-phasemodel, due to the inclusion of the air e�ect, thoughan overestimation of the second peak can be observed.On the other hand, the magnitude of this peak is fairlyclose to the experimental one for the present results,with H=� = 144.

4.2. Dam break wave impinging on obstacleThis numerical test considers the problem of a dambreak wave interacting with an obstacle block, asschematically depicted in Figure 7. One may regard

Page 9: A hybrid solid boundary treatment algorithm for smoothed …scientiairanica.sharif.edu/article_1968_cdb8c58c1e895d1a... · A hybrid solid boundary treatment algorithm for smoothed

A. Mahdavi and N. Talebbeydokhti/Scientia Iranica, Transactions A: Civil Engineering 22 (2015) 1457{1469 1465

Figure 7. Schematic representation of dam break withobstacle (after Koshizuka et al. [32]).

the obstacle as a protecting dike that mitigates waveimpact loads on the rigid structure that is resembledby the downstream wall of the tank. The sameproblem has been studied experimentally by Koshizukaet al. [32] and, later, numerically, by Larese et al. [33]via the Particle Finite Element Method (PFEM). Thedam keeps a rectangular column of water with thewidth of L and height of 2L initially, at rest, andunder hydrostatic pressure distribution. A bottom-mounted obstacle of dimension hR � 2hR is positioneddownstream of the dam, at the middle of the tank. Inthe experimental setup, L = 0:146 m and hR = 0:024 mwere adopted. In the numerical setup, the uid domainwas discretized into 29� 58 SPH particles.

Figure 8 depicts several snapshots of wave evo-lution after the sudden removal of the dam at t = 0.Also shown in this �gure are photos from the physicalexperiment [32] and PFEM results [33] at the sametime instants. The particle con�guration at t = 0:1 sindicates an unphysical detachment of ow from thevertical wall on the left hand side. This spurious gap ise�ciently removed by adopting a smaller cuto� radius,ks = 1, as shown in Figure 8. Apart from this, however,the SPH predictions reveal an overall similar patternfor both ks = 1 and 1.5 as ow evolves. The water frontimpinges on the obstacle after about t = 0:1 s and,subsequently, initiates a jet splash-up. Upon hittingthe right wall of the tank, the bulk of the jet runs downand starts a reverse motion to completely inundate dryportions of the tank.

As expected, no particle penetration occurs dur-ing violent collisions between the uid and solid phases.Also, individual uid particles appear to instanta-neously bounce back upon collision, without gettingstuck to the solid faces. Such behavior again con�rms,at least qualitatively, proper implementation of wallboundary conditions, as proposed in this study.

Referring to Figure 8, the wave pro�les obtainedfrom the present model match satisfactorily with boththe experimental and PFEM results prior to t = 0:4 s.However, discrepancies arise between the numerical so-lutions and experimental data after this instant. Such

di�erences can be mainly attributed to air entrapmente�ects (air cavity) in the experiment, which is notexplicitly accounted for in either of these numericalschemes. On the other hand, the experimental resultsare reproduced well by the present model, whilst the uid particles are being settled down in the tank. Thisis the case at t = 1:0 s, where the present modelbehaves rather better than PFEM in reproducing theexperimental pro�le.

4.3. Flow over sharp-crested weirThe over ow water jets are highly complex to benumerically treated, due to the large deformationof the generated ow �eld and the presence of twosimultaneous free surfaces (upper and lower nappe) inthe air. From a numerical point of view, simulationof such overtopping jets requires the proper treatmentof non-hydrostatic pressure �elds triggered by rapidlyvarying ows. Moreover, the numerical model shouldbe capable of e�ciently capturing moving and arbitraryshaped boundaries along the water-air interface. Froma practical point of view, the standard spillways areoften shaped in accordance with the pro�le of a free jetfalling from a sharp-crested weir.

This test is, therefore, aimed at comparing theresults of the present SPH model with an empiricallyderived nappe pro�le for sharp-crested weirs, as re-ported in [34]. Accordingly, the geometry of the lowernappe may be delineated as:

Y = �X lnX�

1 +16X�; (16)

where X = 1:5(x=h0) and Y = 3:5(y=h0) refer tonondimensional coordinates characterizing the lowernappe trajectory; h0 is the head on the weir; and x; yis the Cartesian coordinate system with the origin atthe weir crest, being related to the previously de�nedcoordinate system, as x = x�L and y = y �w, wherew is the weir height. The head, h0, should be measuredfar enough upstream from the weir to suppress thestreamline curvature e�ects near the weir crest.

To set up this SPH simulation, a reservoir,L = 2:4 m in length, is �lled with water up to a heightof H = 0:6 m. The water body is initially at rest andseparated from a dry downstream channel via a verticalthin plate, whose upper half is suddenly removed att = 0. The lower half of the plate remains �xed to thetank bottom because it is intended to serve as a sharp-crested weir; w = 0:3 m in height. The procedureadopted herein was originally proposed by Ferrari [35].This simulation involves a set of 96�384 uid particlescorresponding to H=� = 96.

The ow �eld is entirely dominated by the mutualinteraction of gravitational and inertial forces. Closeexamination of Figure 9 reveals that the lower nappedetaches from the weir plate at the upstream crest

Page 10: A hybrid solid boundary treatment algorithm for smoothed …scientiairanica.sharif.edu/article_1968_cdb8c58c1e895d1a... · A hybrid solid boundary treatment algorithm for smoothed

1466 A. Mahdavi and N. Talebbeydokhti/Scientia Iranica, Transactions A: Civil Engineering 22 (2015) 1457{1469

Figure 8. Experimental water pro�les [32] (column a) versus PFEM [33] (column b), and present results for ks = 1:5(column c) and ks = 1 (column d) at the same times.

edge, reaches its maximum altitude and then fallsdownwards. Concurrently, the overtopping jet developsfreely in air before hitting the downstream bed ataround t = 0:28 s. The impact is characterized byan increase in the local pressure �eld. After that,a portion of overtopped uid initiates a reverse owtowards the weir, forming a vortical ow beneath

the nappe (t = 0:64 to 2:5 s). The drawdown ofthe water surface at the weir site also produces anegative wave that gradually declines the reservoirlevel, while propagating upstream into the uid at rest.Mathematically speaking, this ow �eld never reachesa purely steady state condition. Nevertheless, a quasi-steady behavior prevails at around t = 1:0 s, with a

Page 11: A hybrid solid boundary treatment algorithm for smoothed …scientiairanica.sharif.edu/article_1968_cdb8c58c1e895d1a... · A hybrid solid boundary treatment algorithm for smoothed

A. Mahdavi and N. Talebbeydokhti/Scientia Iranica, Transactions A: Civil Engineering 22 (2015) 1457{1469 1467

Figure 9. Evolution of nappe ow over a sharp-crested weir as predicted by the present model. The colormap varies fromblue to red indicating the range of nondimensional pressure, p=(�0gH), between zero and one.

Figure 10. Comparison between the SPH solution (graysymbols) and the empirical lower nappe pro�le [34] (reddashed line).

corresponding head of h0 = 0:22 m in the reservoir.This condition forms a basis for the comparison carriedout in Figure 10 where a reasonably good agreementis achieved. Clearly, the aforementioned features as-sociated with the lower nappe trajectory (detachmentpoint, rising and falling limbs) are correctly capturedby this weakly-compressible SPH model. The instan-taneous discharge per unit length of the crest is foundto be qweir = 0:198 m2/s, which agrees fairly wellwith the semi-empirical prediction, qweir = 0:203 m2/s,by the well known head-discharge formula, qweir =23

�0:611 + 0:075h0=w

�p2gh0

3=2.It is to be noted that the numerical models relying

on the hydrostatic pressure assumption fail to resolvesuch ow features, due to large streamline curvatures

Figure 11. Pressure pro�le computed along x = 0 fort = 10 s versus exact linear hydrostatic pro�le.

occurring in the nappe pro�le. Also, free falling jetstend to violate the underlying assumptions of depth-integrated ow solvers, such as the one developedin [36].

On the other hand, the ow in the reservoireventually recovers hydrostatic equilibrium far awayfrom the weir where the pressure �eld counterbalancesthe gravitational e�ect. Figure 11 compares thecomputed pressure distribution on the upstream wallof the reservoir with the linear hydrostatic pro�le.The SPH results, which refer to pressure at interfacialdummy particles along x = 0 for t = 10 s, are

Page 12: A hybrid solid boundary treatment algorithm for smoothed …scientiairanica.sharif.edu/article_1968_cdb8c58c1e895d1a... · A hybrid solid boundary treatment algorithm for smoothed

1468 A. Mahdavi and N. Talebbeydokhti/Scientia Iranica, Transactions A: Civil Engineering 22 (2015) 1457{1469

in very close agreement with the theoretical pressureover ow depth. As expected, the computed pressuresremain strictly zero for the interfacial particles locatedabove the free surface level. These, again, con�rm theaccuracy of the solid boundary treatment algorithmproposed in this study.

5. Conclusion

A new hybrid algorithm was proposed for dealing withsolid, impervious walls in SPH. For this purpose, solidregions were discretized with some layers of dummyparticles to compensate for the density de�ciency nearthe wall and to improve solution accuracy therein.The �rst layer of dummy particles, located right onthe solid- uid interface, was considered to produce thedesired repulsion mechanism. Such a combination ofboundary particles ensures not only a continuous ow�eld near the walls, but also no particle penetrationthrough the solid faces. This hybrid method wasincorporated into a parameter-free SPH scheme toachieve a more accurate pressure �eld. Motivated byits enhanced stability, an explicit multi-stage Runge-Kutta method was implemented for time-marching.

The e�ciency of the present formulation wasdemonstrated through three numerical tests, each char-acterized by strongly deforming free surface and/orviolent collisions between the uid and solid wall. Thecases studied include simulation of a dam break surgingover a dry bed, with and without obstacles, in thedownstream channel, as well as a free falling water jetfrom a sharp-crested weir.

This new boundary treatment is stable, easy toimplement and introduces relatively small computa-tional e�ort. Moreover, it o�ers exibility in treatingcomplex solid boundaries because no information aboutthe boundary unit normal vectors is required. Theproposed scheme can be extended to account for: (i)moving walls with prescribed motion, which may serveas wave makers in a numerical wave ume, and (ii) uid-solid interactions, wherein the moving solid obeysrigid body motion with translational-rotational degreesof freedom. These are left as topics for future researchwork.

References

1. Gingold, R.A. and Monaghan, J.J. \Smoothed par-ticle hydrodynamics-theory and application to non-spherical stars", Monthly Notices of the Royal Astro-nomical Society, 181, pp. 375-389 (1977).

2. Lucy, L.B. \A numerical approach to the testing of the�ssion hypothesis", The Astronomical Journal, 82, pp.1013-1024 (1977).

3. Libersky, L.D., Petschek, A.G., Carney, T.C., Hipp,J.R. and Allahadi, F.A. \High strain Lagrangian

hydrodynamics: A three-dimensional SPH code fordynamic material response", Journal of ComputationalPhysics, 109(1), pp. 67-75 (1993).

4. Monaghan, J.J. \Simulating free surface ows withSPH", Journal of Computational Physics, 110(2), pp.399-406 (1994).

5. G�omez-Gesteira, M. and Dalrymple, R.A. \Using athree-dimensional smoothed particle hydrodynamicsmethod for wave impact on a tall structure", Journalof Waterway, Port, Coastal, and Ocean Engineering,130(2), pp. 63-69 (2004).

6. Liu, M.B. and Liu, G.R. \Smoothed particle hydrody-namics (SPH): An overview and recent developments",Archives of Computational Methods in Engineering,17(1), pp. 25-76 (2010).

7. Monaghan, J.J. \Smoothed particle hydrodynamics",Reports on Progress in Physics, 68(8), pp. 1703-1759(2005).

8. Monaghan, J.J. \Smoothed particle hydrodynamicsand its diverse applications", Annual Review of FluidMechanics, 44, pp. 323-346 (2012).

9. Mahdavi, A., Hashemi, M.R. and Talebbeydokhti, N.\A localized di�erential quadrature model for movingboundary shallow water ows", Journal of HydraulicResearch, 50(6), pp. 612-622 (2012).

10. Souto-Iglesias, A., P�erez-Rojas, L. and ZamoraRodr��guez, R. \Simulation of anti-roll tanks and slosh-ing type problems with smoothed particle hydrody-namics", Ocean Engineering, 31(8-9), pp. 1169-1192(2004).

11. Souto-Iglesias, A., Delorme, L., P�erez-Rojas, L. andAbril-P�erez, S. \Liquid moment amplitude assessmentin sloshing type problems with smooth particle hydro-dynamics", Ocean Engineering, 33(11), pp. 1462-1484(2006).

12. Randles, P.W. and Libersky, L.D. \Smoothed particlehydrodynamics: Some recent improvements and appli-cations", Computer Methods in Applied Mechanics andEngineering, 139(1), pp. 375-408 (1996).

13. Colagrossi, A. and Landrini, M. \Numerical simulationof interfacial ows by smoothed particle hydrodynam-ics", Journal of Computational Physics, 191(2), pp.448-475 (2003).

14. Crespo, A.J.C., G�omez-Gesteira, M. and Dalrymple,R.A. \3D SPH simulation of large waves mitigationwith a dike", Journal of Hydraulic Research, 45(5),pp. 631-642 (2007).

15. G�omez-Gesteira, M., Rogers, B.D., Dalrymple, R.A.and Crespo, A.J. \State-of-the-art of classical SPHfor free-surface ows", Journal of Hydraulic Research,48(S1), pp. 6-27 (2010).

16. Liu, G.R. and Liu, M.B., Smoothed Particle Hydrody-namics: A Meshfree Particle Method, World Scienti�c,Singapore (2003).

17. Rogers, B.D. and Dalrymple, R.A. \SPH Modelingof tsunami waves", In Advanced Numerical Models

Page 13: A hybrid solid boundary treatment algorithm for smoothed …scientiairanica.sharif.edu/article_1968_cdb8c58c1e895d1a... · A hybrid solid boundary treatment algorithm for smoothed

A. Mahdavi and N. Talebbeydokhti/Scientia Iranica, Transactions A: Civil Engineering 22 (2015) 1457{1469 1469

for Tsunami Waves and Runup, World Scienti�c,Singapore (2008).

18. Shao, J.R., Li, H.Q., Liu, G.R. and Liu, M.B. \Animproved SPH method for modeling liquid sloshingdynamics", Computers and Structures, 100, pp. 18-26(2012).

19. Lo, E.Y.M. and Shao, S.D. \Simulation of near-shoresolitary wave mechanics by an incompressible SPHmethod", Applied Ocean Research, 24, pp. 275-286(2002).

20. Shao, S.D. and Lo, E.Y.M. \Incompressible SPHmethod for simulating Newtonian and non-Newtonian ows with a free surface", Advances in Water Re-sources, 26, pp. 787-800 (2003).

21. Liu, X., Xu, H., Shao, S.D. and Lin, P. \An improvedincompressible SPH model for simulation of wave-structure interaction", Computers and Fluids, 71, pp.113-123 (2013).

22. Ghadampour, Z., Talebbeydokhti, N., Hashemi, M.R.,Nikseresht, A.H. and Neill, S.P. \Numerical simulationof free surface mud ow using incompressible SPH",Iranian Journal of Science and Technology, Transac-tions of Civil Engineering, 37(C1), pp. 77-95 (2013).

23. Ferrari, A., Dumbser, M., Toro, E.F. and Armanini, A.\A new 3D parallel SPH scheme for free surface ows",Computers and Fluids, 38, pp. 1203-1217 (2009).

24. Toro, E.F. Riemann Solvers and Numerical Methodsfor Fluid Dynamics, 3th Edn., Springer, Germany(2009).

25. Hu, X.Y. and Adams, N.A. \A multi-phase SPHmethod for macroscopic and mesoscopic ows", Jour-nal of Computational Physics, 213(2), pp. 844-861(2006).

26. Adami, S., Hu, X.Y. and Adams, N.A. \A general-ized wall boundary condition for smoothed particlehydrodynamics", Journal of Computational Physics,231(21), pp. 7057-7075 (2012).

27. Khayyer, A., Gotoh, H. and Shao, S.D. \Correctedincompressible SPH method for accurate water-surfacetracking in breaking waves", Coastal Engineering, 55,pp. 236-250 (2008).

28. Delorme, L., Colagrossi, A., Souto-Iglesias, A.,Zamora-Rodriguez, R. and Botia-Vera, E. \A set ofcanonical problems in sloshing, Part I: Pressure �eldin forced roll-comparison between experimental resultsand SPH", Ocean Engineering, 36(2), pp. 168-178(2009).

29. Zhou, Z.Q., Kat, J.O.D. and Buchner, B. \A nonlinear3D approach to simulate green water dynamics ondeck", In 7th International Conference on NumericalShip Hydrodynamics, Nantes (1999).

30. Khayyer, A., Gotoh, H. and Shao, S.D. \Enhancedpredictions of wave impact pressure by improved in-compressible SPH methods", Applied Ocean Research,31(2), pp. 111-131 (2009).

31. Abdolmaleki, K., Thiagarajan, K.P. and Morris-Thomas, M.T. \Simulation of the dam break problemand impact ows using a Navier-Stokes solver", In15th Australasian Fluid Mechanics Conference, Sydney(2004).

32. Koshizuka, S., Tamako, H. and Oka, Y. \A particlemethod for incompressible viscous ow with uid frag-mentation", Computational Fluid Dynamic Journal, 4,pp. 29-46 (1995).

33. Larese, A., Rossi, R., O~nate, E. and Idelsohn, S.R.\Validation of the particle �nite element method(PFEM) for simulation of free surface ows", Engi-neering Computations, 25(4), pp. 385-425 (2008).

34. Vischer, D.L. and Hager, W.H., Dam Hydraulics,Wiley, UK (1998).

35. Ferrari, A. \SPH simulation of free surface ow overa sharp-crested weir", Advances in Water Resources,33, pp. 270-276 (2010).

36. Mahdavi, A. and Talebbeydokhti, N. \Modeling ofnon-breaking and breaking solitary wave run-up usingshock-capturing TVD-WAF scheme", KSCE Journalof Civil Engineering, 15(6), pp. 945-955 (2011).

Biographies

Ali Mahdavi received a BS degree in Civil Engineer-ing from Shahid Chamran University, Ahvaz, Iran, in2004, and an MS degree in Hydraulic Structures, in2008, from Shiraz University, Iran, where he is cur-rently a PhD degree student in the Department of Civiland Environmental Engineering. His research interestsinclude mathematical modeling in groundwater andfree surface hydraulics.

Nasser Talebbeydokhti is Professor of Hydraulicand Environmental Engineering in the Departmentof Civil and Environmental Engineering at ShirazUniversity, Iran, where he is currently head of theEnvironmental Research and Sustainable DevelopmentCenter. He has published more than 80 journal papersand 150 conference papers. His main areas of interestinclude: hydraulic engineering, sediment transport,environmental engineering and hydraulic structures.Professor Talebbeydokhti is Editor-in-Chief of the Ira-nian Journal of Science and Technology, as well asAssociate Editor for many other Iranian journals.