Modeling of Water Flows around a Circular Cylinder with the SPH Method

Similar documents
Transformation of Long Waves in a Canal of Variable Section

Fundamentals of Fluid Dynamics: Elementary Viscous Flow

Advective and Diffusive Turbulent Mixing

Smoothed Particle Hydrodynamics

Total energy in volume

UNSTEADY POISEUILLE FLOW OF SECOND GRADE FLUID IN A TUBE OF ELLIPTICAL CROSS SECTION

P = ρ{ g a } + µ 2 V II. FLUID STATICS

Fluid Dynamics. Part 2. Massimo Ricotti. University of Maryland. Fluid Dynamics p.1/17

Game Physics. Game and Media Technology Master Program - Utrecht University. Dr. Nicolas Pronost

An initiation to SPH

Smooth Particle Hydrodynamic (SPH) Presented by: Omid Ghasemi Fare Nina Zabihi XU Zhao Miao Zhang Sheng Zhi EGEE 520

Smoothed Particle Hydrodynamics (SPH) 4. May 2012

MODELLING OF FLOW IN POROUS MEDIA AND RESIN TRANSFER MOULDING USING SMOOTHED PARTICLE HYDRODYNAMICS

A Stable and Convergent Finite Difference Scheme for 2D Incompressible Nonlinear Viscoelastic Fluid Dynamics Problem

Travel Grouping of Evaporating Polydisperse Droplets in Oscillating Flow- Theoretical Analysis

Computational Astrophysics

Simulation of wave mitigation by coastal vegetation using smoothed particle hydrodynamics method

Applications and Analysis

n v molecules will pass per unit time through the area from left to

Effect of Uniform Horizontal Magnetic Field on Thermal Instability in A Rotating Micropolar Fluid Saturating A Porous Medium

cen29305_ch08.qxd 11/30/05 3:05 PM Page 451 INTERNAL FORCED CONVECTION CHAPTER 8 Liquid or gas flow through pipes or ducts is commonly used in heating

Chapter 1. Governing Equations of GFD. 1.1 Mass continuity

Soft Bodies. Good approximation for hard ones. approximation breaks when objects break, or deform. Generalization: soft (deformable) bodies

EFFECTS OF STRONG TEMPERATURE GRADIENT ON A COMPRESSIBLE TURBULENT CHANNEL FLOW

2. FLUID-FLOW EQUATIONS SPRING 2019

APPLICATION OF THE CONDITIONAL QUADRATURE METHOD OF MOMENTS FOR THE SIMULATION OF COALESCENCE, BREAKUP AND MASS TRANSFER IN GAS-LIQUID STIRRED TANKS

SIMILARITY METHODS IN ELASTO-PLASTIC BEAM BENDING

BOUSSINESQ-TYPE MOMENTUM EQUATIONS SOLUTIONS FOR STEADY RAPIDLY VARIED FLOWS. Yebegaeshet T. Zerihun 1 and John D. Fenton 2

On Temporal Instability of Electrically Forced Axisymmetric Jets with Variable Applied Field and Nonzero Basic State Velocity

DEFORMATION AND FRACTURE ANALYSIS OF ELASTIC SOLIDS BASED ON A PARTICLE METHOD

Boundary Conditions Generated by Dynamic Particles in SPH Methods

Numerical simulation of landslide impulsive waves by incompressible smoothed particle hydrodynamics

Section 8.5. z(t) = be ix(t). (8.5.1) Figure A pendulum. ż = ibẋe ix (8.5.2) (8.5.3) = ( bẋ 2 cos(x) bẍ sin(x)) + i( bẋ 2 sin(x) + bẍ cos(x)).

- Marine Hydrodynamics. Lecture 4. Knowns Equations # Unknowns # (conservation of mass) (conservation of momentum)

Estimation of Hottest Spot Temperature in Power Transformer Windings with NDOF and DOF Cooling

Flood Routing by the Non-Linear Muskingum Model: Conservation of Mass and Momentum

Fluid Mechanics II Viscosity and shear stresses

INTERNATIONAL JOURNAL OF APPLIED ENGINEERING RESEARCH, DINDIGUL Volume 2, No 2, 2011

Rational derivation of the Boussinesq approximation

Homework 6: Energy methods, Implementing FEA.

Chapter 3. Theoretical Discussion and Development of Model Equations. 3.1 Introduction. 3.2 General discussion

7 The Navier-Stokes Equations

Simulation of mixing of heterogeneous HE components

Schwarzschild s Metrical Model of a Liquid Sphere

CHAPTER 4. Basics of Fluid Dynamics

Mathematical Background

Quick Recapitulation of Fluid Mechanics

INDEX 363. Cartesian coordinates 19,20,42, 67, 83 Cartesian tensors 84, 87, 226

Effects of mass layer dimension on a finite quartz crystal microbalance

Discussion panel 1: Enforcing incompressibility in SPH

Critical value of the total debt in view of the debts. durations

FLOW AND HEAT-TRANSFER MODELLING OF THREE-DIMENSIONAL JET IMPINGEMENT ON A CONCAVE SURFACE

Exact Shape Functions for Timoshenko Beam Element

Improvement of Calculation Stability for Slow Fluid Flow Analysis Using Particle Method *

CH.9. CONSTITUTIVE EQUATIONS IN FLUIDS. Multimedia Course on Continuum Mechanics

Characteristics of flow over the free overfall of triangular channel

1 Wave propagation in arteries

Numerical simulation of a small-scale snow avalanche tests using non-newtonian SPH model

Simulating Interfacial Tension of a Falling. Drop in a Moving Mesh Framework

Numerical Heat and Mass Transfer

Fluid Dynamics: Theory, Computation, and Numerical Simulation Second Edition

This article appeared in a journal published by Elsevier. The attached copy is furnished to the author for internal non-commercial research and

BAE 820 Physical Principles of Environmental Systems

Drained Against Undrained Behaviour of Sand

Boundary Conditions in Fluid Mechanics

Exercise: concepts from chapter 10

KELVIN-HELMHOLTZ INSTABILITY BY SPH

ASEISMIC DESIGN OF TALL STRUCTURES USING VARIABLE FREQUENCY PENDULUM OSCILLATOR

Explicit algebraic Reynolds stress models for internal flows

6.2 Governing Equations for Natural Convection

Rigid Body Kinetics :: Force/Mass/Acc

Numerical Study of Heat Propagation in Living Tissue Subjected to Instantaneous Heating

BALKANTRIB O5 5 th INTERNATIONAL CONFERENCE ON TRIBOLOGY JUNE Kragujevac, Serbia and Montenegro

Convection. forced convection when the flow is caused by external means, such as by a fan, a pump, or atmospheric winds.

A NEW ANALYTICAL BRIDGE PIER SCOUR EQUATION

meters, we can re-arrange this expression to give

An internal crack problem in an infinite transversely isotropic elastic layer

Summary of the Equations of Fluid Dynamics

Comparison of Numerical Method for Forward. and Backward Time Centered Space for. Long - Term Simulation of Shoreline Evolution

Introduction to Marine Hydrodynamics

Engineering Thermodynamics. Chapter 3. Energy Transport by Heat, Work and Mass

Sample Solutions from the Student Solution Manual

A METHOD TO ASSESS IMPACT DAMAGE USING A SMOOTHED PARTICLE HYDRODYNAMICS AND FINITE ELEMENT COUPLED APPROACH

Essential Maths 1. Macquarie University MAFC_Essential_Maths Page 1 of These notes were prepared by Anne Cooper and Catriona March.

V (r,t) = i ˆ u( x, y,z,t) + ˆ j v( x, y,z,t) + k ˆ w( x, y, z,t)

ASYMPTOTIC ESTIMATION FOR MINIMAL PLASMA RADIUS IN A SPHERICALLY SYMMETRIC MAGNETIZED TARGET FUSION REACTOR MODEL

Topological structures and phases. in U(1) gauge theory. Abstract. We show that topological properties of minimal Dirac sheets as well as of

Navier-Stokes Equation: Principle of Conservation of Momentum

CENG 501 Examination Problem: Estimation of Viscosity with a Falling - Cylinder Viscometer

Buckling Behavior of Long Symmetrically Laminated Plates Subjected to Shear and Linearly Varying Axial Edge Loads

The University cannot take responsibility for any misprints or errors in the presented formulas. Please use them carefully and wisely.

COMPRESSIBILITY AND FLOW PROPERTIES OF A COHESIVE LIMESTONE POWDER IN A MEDIUM PRESSURE RANGE

On Vertical Variations of Wave-Induced Radiation Stress Tensor

Quadratic non-condon effect in optical spectra of impurity paramagnetic centers in dielectric crystals

1.1 a.) Suppose we have a conductor and place some charge density within it. For a surface S inside the conductor enclose the charge density!

Dusty gas with SPH II. Implicit timestepping and astrophysical drag regimes

Euler equation and Navier-Stokes equation

Applying Contact Angle to a 2D Multiphase Smoothed Particle Hydrodynamics Model

A unifying model for fluid flow and elastic solid deformation: a novel approach for fluid-structure interaction and wave propagation

FUNDAMENTAL STUDY OF BINGHAM FLUID BY MEANS OF DAM-BREAK FLOW MODEL

Transcription:

Archives of Hydro-Engineering and Environmental Mechanics Vol. 61 (2014), No. 1 2, pp. 39 60 DOI: 10.1515/heem-2015-0003 IBW PAN, ISSN 1231 3726 Modeling of Water Flows around a Circular Cylinder with the SPH Method Kazimierz Szmidt, Benedykt Hedzielski Institute of Hydro-Engineering, Polish Academy of Sciences, ul. Kościerska 7, 80-328 Gdańsk, Poland, e-mail: jks@iwpan.gda.pl (Received May 21, 2014; revised Novemer 05, 2014) Astract The paper descries the SPH modeling of a plane prolem of fluid flow around a rigid circular cylinder. In the model considered, the cylinder is placed in a rectangular fluid domain at a certain distance from a horizontal plane oundary, and it is sujected to fluid flow forces. The fluid motion is induced y a piston type generator. The generator fluid system starts to move from rest at a certain moment of time. The work aims at a discrete description of the fluid flow around the cylinder and, at the same time, calculation of the pressure distriution along the circumference of the cylinder and the resultant of the pressure on the cylinder. In order to solve the initial value prolem considered, a new SPH formulation of oundary conditions on the cylinder surface is proposed which match the physical condition for the fluid velocity at this oundary. For a viscous fluid, an approximate description of the stress tensor is formulated which allows to reduce the differentiation of field functions to the first order in calculating the shear forces in the SPH approach. Key words: transient water wave, SPH modeling, oundary conditions, approximation of shear forces 1. Introduction Wave induced flows around a cylinder and associated hydrodynamic forces on it have een of special interest in offshore engineering and, at the same time, in theoretical hydrodynamics. The general prolem of the flows for viscous fluids seems to e constantly in question, ecause of the complicated flow regimes, which depend on the amient velocity distriution, turulence and the presence of a free surface. On the other hand, in analysis of the water waves, the fluid viscosity is important only in a very small vicinity of the fluid oundary (within oundary layers of very small thickness) and therefore, in description of the waves, it is justified to neglect to fluid viscosity. As concerns the waves, serious difficulties emerge in theoretical description of finite (ig) displacements of fluid particles and in cases of the fluid fragmentation. Therefore, in analysis of such prolems we usually resort to simplified models of description of the phenomenon. In these descriptions, we frequently resort to discrete

40 K. Szmidt, B. Hedzielski methods in which continuum is sustituted y a numer of nodal points. Field variales of a prolem such as pressure, density and momentum are represented y point variales associated with chosen points. With respect to the prolem considered, the Smooth Particle Hydrodynamics (SPH) formulation seems to e of practical interest, since it serves equally well for continuous and discontinuous media. The SPH is a purely Lagrangian mesh free method in which the motion of the fluid is simulated y a motion of a numer of material particles. The method aims at computing distriution of these particles and associated field variales at chosen moments of time. The literature on the suject is considerale. In the last two decades a numer of papers has appeared where particular numerical solvers of the method have een developed and successfully applied to various prolems of hydrodynamics. Fundamentals of the SPH method are presented in the important works of Monaghan (1992, 2005). A detailed discussion on the SPH application to various prolems of hydrodynamics may e found in Liu and Liu monograph (2006) which also contains a vast iliography on the suject. The SPH formulation has een successfully applied in analysis of the interfacial flows (Colagrossi and Landrini 2003), in simulation of near-shore solitary mechanics (Lo and Shao 2002) and in analysis of the dam reak prolem (Bonet and Lok 1999, Staroszczyk 2010, Grenier et al 2009) and in the description of multi-phase flows (Hu and Adams 2006). As concerns the flow around a circular cylinder, Morris et al (1997) considered a periodic flow past a cylinder for very low Reynolds numers. The SPH simulation was run for material particles placed on a hexagonal lattice with a very dense spacing equal to 0.002 m. The solutions otained were compared with results of the finite element method. A good agreement was otained for ulk of the flow, although small discrepancies emerge in the SPH description of velocities near the cylinder. A similar prolem of the flow past a periodic lattice of cylinders was investigated y Ma and Ge (2008). These authors investigated the SPH solutions for different values of smoothing length h and isothermal sound speeds. For the length h smaller than 1.2d, where d denotes spacing of the material particles, some deviations of results were oserved for a set of formulations considered. With respect to the non-linear water waves, considered in this paper, the advantage of the SPH approach over another discrete methods of descriptions is that this method serves equally well for small and finite displacements of fluid particles from their initial positions. The method suffers from its relative weakness in descriing oundary conditions, especially at the fluid solid oundary, and prolems, where field variales depend on higher order space derivatives of the velocity field. Therefore, in application of the method to analysis of flows around the cylinder, a special care must e taken in formulating oundary conditions at the fluid cylinder interface. At the same time, in descriing dissipative forces for viscous fluids, it is desirale to construct a consistent approximation of viscous terms entering momentum equations. In order to answer the question aout usefulness of the method in description of the fluid flows around a cylinder, some particularly simple examples, of the initial-value prolems considered, are presented in this paper. The main attention of this research

Modeling of Water Flows around a Circular Cylinder... 41 is paid on formulations of the oundary conditions and approximations in the description of shear forces. 2. Governing Equations of Hydrodynamics In order to keep the further discussion clear, we attach here some fundamental equations of theoretical hydrodynamics. The principle of mass conservation of moving fluid leads to the equation of continuity dρ ρ + ρ div u = + div(ρ u) = 0. (1) dt t For the viscous compressile fluid, the equations of motion are ρ dui dt = ρ i + T i j x j, (2) where i denotes the ody force, and T i j is the stress tensor, dependent on the rate of the deformation tensor D i j = 1 ( u i + u j ). (3) 2 x j x i For isotropic incompressile fluids, the stress tensor may e written in the following form T i j = pδ i j + 2µD i j, (4) where p denotes the fluid pressure, δ i j is the Kronecker delta and µ is the dynamic viscosity coefficient. For the incompressile fluids, the momentum equations read ρ dui dt = p x i + ρ i + µ 2 u i. (5) With respect to the SPH formulation, the pressure density relation for the fluid is usually adopted in the following form (Monaghan 1992) [( ) γ ] ρ p(ρ) = P 0 1. (6) ρ 0 In this equation, P 0 and ρ 0 denote the reference pressure and density, and the parameter γ is usually taken as 7 for water and 1.4 for air (Colagrossi and Landrini 2003). The corresponding sound speed c s is given y γp 0 c s =. (7) ρ 0 The employment of the equation of state (6) simplifies calculation of the pressure for a prolem considered, which is usually reduced to the unknown velocity components and the fluid density.

42 K. Szmidt, B. Hedzielski 3. The SPH Formulation The SPH is an interpolation method ased on the concept of integral representation of a function, say f (r), y the following integral < f (r) >= f (r )W ( r r, h ) ds, (8) S where S is the domain of integration, and W( r r, h) is the so called smoothing function, or smoothing kernel function, or interpolating kernel, or simply kernel in the SPH literature. The parameter h in this equation is the smoothing length responsile for a shape of the kernel. The left hand side of equation (8) is called the interpolant of f (r) (Monaghan 1992), since it is only a certain approximation of the original function. With respect to this approximation, in what follows, we omit the rackets on the left hand side of the integral formula. In the case the kernel is the Dirac delta function δ(r r ), the equation defines the well known identity f (r) = f S (r )δ(r r )ds. The kernel W(r r, h) in equation (8) is usually chosen to e an even function, which should satisfy a numer of conditions. The first of them is the unity condition W(r r, h)ds = 1. (9) The second one is the delta function property S lim W(r h 0 r, h) = δ(r r ). (10) For practical reasons, the kernel should also satisfy the compact condition W(r r, h) = 0 when r r > R, (11) where R is the radius of a circular support domain centred at r for a two dimensional case, or a spherical support domain in a three dimensional case. In addition to the aove conditions, the kernel is assumed to e the non-negative function within the support domain. It is also desired this function should monotonically decrease with the increasing distance away from the field point r. Finally, the kernel function should e continuous and sufficiently smooth to ensure accurate approximation of a function and its space derivatives. In literature on the suject there exist various forms of the kernel functions with certain restrictions imposed on them to ensure desired properties, listed aove. Frequently used are spline functions of a chosen order; for example: quadratic, cuic or quartic spline functions. Among others, a Gaussian function is of primary importance. For the two-dimensional case, considered in this paper, the Gaussian kernel reads W(r, h) = 1 πh 2 exp ( q 2), where q = r h, r2 = x 2 + y 2. (12)

Modeling of Water Flows around a Circular Cylinder... 43 According to Monaghan (1992), it is always est to assume the kernel is a Gaussian, and thus, in the further part of this work we will only consider the Gaussian kernels. In general, at points of the oundary of a finite support domain, the Gaussian kernel function is different from zero and, at the same time, the integral of the kernel over the support domain does not equal to unity. Therefore, in order to overcome this inconsistency, it is reasonale to take into account the normalized kernel (Colagrossi, Landrini 2003) 1 [ ( ) exp q 2 exp ( R 2)] W N = πh 2 1 [ ( ) exp q 2 exp ( R 2)] = ds πh 2 S [ ( ) exp q 2 exp ( R 2)] = [ ( exp q 2 ) exp ( R 2)] ds, R = δ h. S One can check that this equation satisfies the unity condition (9). In the SPH formulation, the continuum is replaced y a set of material particles and the continuous integral interpolation is approximated y a discrete summation interpolation. In the discrete approach, the infinitesimal volume (surface) ds in the integrand (8) is replaced y the finite volume V of a particle. Thus, the elementary volume V, the density ρ and the mass m of this particle are related y (13) m = ρ V. (14) With respect to this formula, the continuous SPH representation for f (r) is sustituted y the discrete particle approximation expressed in the following form N m f (r) = f (r) a = f a = f (r ) W(r r, h), (15) ρ =1 where denotes the particle lael and the summation is taken over all particles in the finite support domain of a point (particle) r a. For example, the aove interpolation formula gives the following estimate for the density at the point r = r a m ρa = ρ W a = m W a. (16) ρ With respect to the discrete formulation considered, the unity condition of the kernel function is preserved y the transformation of the kernel W a into another form, known as the Shepard function (Shepard kernel), defined y W S a = W a. (17) N V W a =1

44 K. Szmidt, B. Hedzielski The essential feature of the discrete interpolant is that it enales us to construct a differentiale approximation of a function from its values at particle nodal points y means of the differentiale kernel. In the discrete approximation of fundamental equations of fluid dynamics one needs to construct approximations of the gradient and divergence differential operators. Following the interpolation, mentioned aove, such operators may e otained y a direct differentiation of the kernel function. A more detailed discussion on differential operators with desired properties may e found in papers y Monaghan (1992, 2005). To make the further discussion clear, we attach here interpolations of the gradient and divergence operators given in that papers. The interpolation of the gradient of a scalar function f at particle a reads f a = ρ a m f a + f ρ 2 a W a (18) a and, the divergence of a vector field, say velocity field u at particle a, can e found from ( u) a = 1 m (u u a ) a W a. (19) ρ a It should e stressed that in the SPH approach we have no unique formulation of equations descriing field variales. For instance, the divergence of the velocity field descried y equation (19) may e also written in a simple way as or in the symmetrical form ρ 2 div (u a ) = ( u) a = 1 m u a W a, (20) ρ a div (u a ) = ( u) a = ρ a m u a ρ 2 a + u a W a. (21) At the same time, for a Gauss kernel of the form W = 1 [ ( r 2 ] exp, (22) K 2 h) where K 2 corresponds to the denominator in equation (13), simple manipulations give ρ 2 a W a = 2 h 2 (r r a ) W a. (23) From sustitution of this result into equation (19) it follows ρ a ( u) a = 2 m h 2 (u a u ) (r a r ) W a. (24)

Modeling of Water Flows around a Circular Cylinder... 45 This equation shows, that the contriution from particle to the divergence of the velocity at particle a is descried y the symmetric formula 2m (u a u ) (r a r ) W a h 2. (25) It may e seen that this contriution is positive if the particles are moving away from each other, as it should e. The vorticity at the particle a is otained in a similar way y ρ a ( u) a = 1 m (u u a ) a W a. (26) ρ a By virtue of the equation of continuity, the density evolution is descried y the following interpolation formula (Monaghan 1992) dρ dt = m (u a u ) a W a. (27) a For a non-viscous, slightly compressile fluid, the interpolation of the momentum equations gives du a = m P a + P dt ρ 2 a ρ 2 x (W a), du a = m P a + P (28) dt ρ 2 a y (W a) g, where u a = (u a, v a ) and g is the gravitational acceleration. Sustituting equation (19) into the last relations one otains du a m a = 2 m am p a + p (r dt h 2 ρ 2 a r )W a m a g, (29) a where g = (0, g). From the last equation it follows that the force on the particle a from the particle is F a = 2 m am p a + p (r h 2 ρ 2 a r ) W a, (30) a which shows that the pressure gradient in the SPH formulation produces a symmetric central force etween pairs of particles. ρ 2 ρ 2 ρ 2 4. Boundary Conditions In applications of the SPH method to water wave mechanics, the prolem of a particle formulation of oundary conditions at the fluid oundary emerges. Since the method

46 K. Szmidt, B. Hedzielski applies for collection of material particles moving in space, the fluid oundary is defined as a set of conditions imposed on particles reaching points at this oundary. A relatively simple, is the description of the free surface of the fluid which, in the material description, employed in the SPH approach, is defined y positions of the material particles forming this surface. It should e stressed however, that only particles at, - or near the oundary, contriute to the summation of the particles interactions. With respect to these particles, their finite supports are usually truncated y this oundary, and thus, some discrepancies in calculating the pressure and the fluid density may occur. Even more serious prolems are met in formulation of the SPH oundary conditions at solid, fixed or moving, oundaries of the fluid domain. For a solid (rigid), free-slip oundary, the normal component of the velocity field should e equal to zero. An example of such a oundary is the case of a straight line solid oundary, usually met in analysis of gravitational waves propagating in water of finite depth, as illustrated in Fig. 1. Fig. 1. Straight line oundary and virtual particles. The support domain of particle P is defined y a circle of radius R In order to solve oundary condition at this oundary, additional, virtual (ghost) particles are placed outside the fluid domain, as it is marked in this figure. Such a model of solution of the oundary condition with additional mirror particles has een used y Lo and Shao (2002) in simulating near-shore solitary wave mechanics and y Staroszczyk (2010) in simulating water flow, generated y a dam reak. Since in the SPH approach we deal with finite support domains, the additional particles are distriuted within a strip of finite width δ, which equals to the assumed radius of a typical support domain within the fluid. The additional particles have the same mass, density and velocity as their counterparts in the fluid domain, with ovious restriction that normal components of the velocity have equal values and opposite signs. For

Modeling of Water Flows around a Circular Cylinder... 47 a viscous fluid also the tangent components of the velocity field within the fluid and at virtual particles have opposite signs. In the case shown in Fig. 1, the use of the mirror particles corresponds directly to solution of a symmetrical prolem in continuum where the ottom line is the symmetry line of a prolem domain considered. A remark is needed. The SPH equations are usually written for particles inside the fluid domain. Therefore, for the inner particles placed near the oundary, the contriution of virtual particles in the interpolation over the support domain is necessarily less than that of the inner particles (the contriution is the same only for particles at the oundary). It means that in the SPH model, a phenomenon of attraction of the fluid particles y solid oundaries may occur. Such an attraction is induced y forces, resulting from non-equal contriutions of pressure gradients, which act on material particles near the oundary. In the literature on the suject several attempts have een made to prevent the inner fluid particles from accumulating in the vicinity of solid oundaries. Usually, additional oundary particles are employed to generate repulsive forces on fluid particles (Morris et al 1997, Monaghan 2005, Ataie-Ashtiani et al 2008, Monaghan and Kajtar 2009). These repulsive forces prevent the real particles from penetration of the oundary. A way to specify the forces is to use a Lenard-Jones force acting etween the centers of the particles (Monaghan 2005). On the other hand, such forces, acting on particles moving parallel to the oundary may cause large disturances to flow near the oundary. In fact, such repulsive forces do not result from a solution in fluid dynamics, and therefore their employment should e made with a great care. The prolem ecomes more complicated in the case of a oundary formed y a set of segments intersecting at corner points or in the case of a curved oundary. If the segments intersect at right angles, the est solution is to use mirror reflection of material particles within a strip along the oundary. In the case of an aritrary angle of intersection, or in the case of curved oundary however, it is not possile to find a unique distriution of virtual (additional) particles to solve the oundary conditions. As far as curved oundaries are concerned, a special oundary treatment is descried in Liu and Liu (2009), where except real particles within a circular fluid domain, virtual oundary (type I) and, - exterior (type II) particles are used to solve the oundary conditions at the domain circumference. Despite of several attempts mentioned aove, the prolem of a proper formulation of oundary conditions in the SPH method is still an open question. In the following, an approximate solution of oundary conditions at curved oundary is presented, which may e also used for oundaries formed y intersecting straight segments. For a curved fluid solid oundary, shown schematically in Fig. 2, it is not possile to employ the aove mentioned approach directly, and therefore another method of solution is proposed. Like in the aove mentioned case, the normal components of the velocity field should e equal to zero at this oundary. In order to solve this oundary condition in the SPH approach, let us consider the case of non-viscous fluid and a set of artificial particles placed at this oundary or near the oundary on the solid side. The spacing of these particles is assumed to e equal to

48 K. Szmidt, B. Hedzielski Fig. 2. Curved oundary and additional particles. The support domain of particle P is defined y a circle of radius R the spacing of the fluid particles at the initial moment of time. The positions of the oundary particles are fixed in space and time. For a given instant of time, the normal velocity components at the oundary points, following the fluid particles in the SPH method, are in a general case different from zeros. These additional artificial oundary particles are assumed to have such normal velocities, unknown at this moment, that the final velocity, dependent oth on the fluid particles and the additional particles, are equal to zeros at these oundary points. Since the interpolation in the SPH method is a linear operation, one can divide the particle contriution to the velocity field into two parts, each of which corresponds either to the fluid or to the oundary particles. With respect to the description in Fig. 2, it is sufficient to assume that all velocities of these artificial particles are normal to the oundary. A normal velocity component at the space point r of the oundary is expressed in the following form v r = fluid virtual m v f ρ cos β rw r + k V k v n k cos α rkw rk, (31) where v f is the velocity of a fluid particle placed in support domain, β r is the angle etween the fluid velocity and the normal direction to the oundary at the space point r, V k = V = const. is an elementary volume associated with the virtual particles v n k is the unknown, normal velocity of virtual particle and α rk is the angle etween the normal directions to the oundary at the space points r and k, respectively. The second part of the right hand side of this equation denotes the contriution of the unknown normal components of the virtual particles. Equations (31) are written for all points of the oundary. The system of equations otained in this way enales us to calculate the normal components of the velocity of the virtual particles. In the case

Modeling of Water Flows around a Circular Cylinder... 49 of a viscous fluid, oth the normal and tangent components of the velocity field at the oundary points should e equal to zero. In this case, two sets of equations of the form (31) are written for the oundary points, each of which corresponds to chosen components of the velocity vectors at these points. It should e stressed however, that the accuracy of the formulation depends on the numer of particles within the support domain for each point of the oundary and therefore, one must expect a relative discrepancy in the solution accuracy in the vicinity of corner points. The solution to the oundary conditions presented aove leads to a certain extension of computation time and thus it may e cumersome to apply it, especially for complicated geometry of the oundary. Meanwhile, the proposal descried y equation (31) has een used in solution to the oundary conditions at the cylinder surface in illustration examples presented in the further section of this paper. 5. Viscous Fluids SPH Treatment of Shear Forces In equation (2), descriing the viscous fluid motion, the term with the stress tensor is sustituted with the following one 1 T i j ρ x j = ( ) T i j x j + T i j ρ ρ x j. (32) From sustitution of this relation into equation (2) one otains dv i = i + m dt T a i j ρ 2 a + T i j ρ 2 ρ 2 x j (W a). (33) The formula is similar to equations (28), written for non-viscous fluids. The stress tensor components, entering equations (33), depend on the rate of deformation tensor as it is descried y equation (4). With respect to the SPH formulation, the components of the momentum equations are du a dt = m P a ρ 2 a µ a D1 + m a j ρ 2 a dv a dt = m P a ρ 2 a µ a D2 + m a j ρ 2 a + P ρ 2 x (W a) + (W a ), + µ D 1 j ρ 2 x j a + P y (W a) + ρ 2 + µ D 2 j ρ 2 (W xa j a ) g. Equations (34) suggest, that in order to calculate the velocity of material points in the prolem domain, it is necessary to perform the two steps calculations: in the (34)

50 K. Szmidt, B. Hedzielski first step the components of the rate of the deformation tensor should e otained and then in the second step, the shear tensor components should e defined. With such a procedure however it is not possile to otain proper results in the areas of fluid close to the fluid oundary. On the other hand, a direct calculation of the second order space derivatives of the velocity field, entering equation (5), leads to interpolation with the second order derivative of the kernel function. The letter approach however does not fulfil the so called reproducing conditions, and thus, such a method of solution is not admissile. Therefore, with respect to these difficulties for viscous fluids, it is reasonale to resort to approximate description of the stress tensor y a direct calculation of its components y means of mechanics of individual material particles carrying the mass and momentum and interacting with each other. Thus, let us consider two material particles shown schematically in Fig. 3. Fig. 3. Shear forces etween two material particles Interaction forces etween these particles are reduced to the central force with direction defined y positions of the particles in space and the second force normal to the first one. The central force is associated with the average pressure and the transverse force with the shear force etween these particles. To simplify the discussion, let us consider the case of incompressile fluid and the corresponding, viscous term of the stress tensor ( v T i j i = µ x j + v j ) x i. (35) For the two particles (a, ) in the figure, it is convenient to introduce the unit vector e = r a r a = r r a r = 1 r [ (x x a ) i + (y y a ) j + (z z a ) k ]. (36)

Modeling of Water Flows around a Circular Cylinder... 51 At the same time, v i x j = vi r r x j = vi (x x a ) j r r vi (x x a ) j r r From sustitution of (37) into equation (35) one otains 1 r 2 (v v a ) j (x x a ) j. (37) T i j µ r [ ei V j a + e jv i a], (38) where V j a = (v v a ) j. (39) The stress tensor is assumed to vary continuously etween the points a and, and therefore, in the midpoint m, the following condition should e satisfied µ k [ ei (V am ) j + e j (V am ) i] = µ l [ ei (V m ) j + e j (V m ) i], (40) where µ k and µ l denote the viscosity coefficients at points a and, and V am = V m V a, V m = V V m, V am + V m = V V a = V a. (41) With respect to the midpoint m, the components of the stress tensor ecomes T i j am = µ k r am [ ei (V am ) j + e j (V am ) i], T i j m = µ l r m [ ei (V m ) j + e j (V m ) i]. These components are equal to each other and therefore, from sustitution of (41) into the last formulae, the following relations are otained (V am ) j = µ l µ k + µ l (V a ) j, (V am ) i = Knowing that Tam i j = T i j m = T i j a we arrive at the following result (42) µ l µ k + µ l (V a ) i. (43) T i j a = 2 µ k µ l [ ei (V a ) j + e j (V a ) i]. (44) r µ k + µ l For the case µ k = µ l = µ the equation simplifies to the form T i j a = µ [ ei (V a ) j + e j (V a ) i]. (45) r The last formulae are similar to descriptions of the inter-particle averaged shear tensors T ν i j presented in Hu and Adams (2006), and in Grenier et al (2009).

52 K. Szmidt, B. Hedzielski In accordance with equation (44), for the two-dimensional prolem considered, the momentum equations for the incompressile viscous fluid are written in the following form du dt = m p a + p W a + x a + m T a 11 ρ 2 a + T 11 ρ 2 ρ 2 a W a + x a ρ 2 T a 12 ρ 2 a + T 12 ρ 2 W a y a dv dt = m p a + p W a g+ ρ 2 a ρ 2 y a + m T a 21 + T 21 W a + T a 22 + T 22 ρ 2 a ρ 2 x a ρ 2 a ρ 2 where the components of the shear forces are T 11 a = 2 µ a µ [2(x r 2 x a )(u u a )], µ a + µ µ a µ T 12 a = 2 r 2 W a y a,. µ a + µ [(x x a )(v v a ) + (y y a )(u u a )], T 22 a = 2 µ a µ [2(y r 2 y a )(v v a )], µ a + µ where T a = T a = T for each pair of individual material particles. In the discussion on shear forces in viscous fluids presented so far, the shear stress tensor was otained y means of sustitution of exact differentiation of the velocity components, entering the formulae for the rate of the deformation tensor, y quotients of differences of the velocity components at material particles contriuted in the interpolation procedure applied. Such a procedure seems to e justified, provided that the distance etween a pair of particles is not too ig, and, at the same time, the velocity distriution over a support domain of a given particle is sufficiently smooth. 6. Numerical Experiments In order to illustrate the discussion presented in the preceding sections, in what follows we will consider some numerical experiments for a fluid flow in a plane, rectangular asin of water as it is shown schematically in Fig. 4. The motion of the incompressile fluid is induced y a piston-type generator placed at the left hand side of the fluid domain. The generator fluid system starts to move at a certain moment of time. The generator velocity is assumed in the following form (Wilde and Wilde 2001) v g (t) = dx g dt = A m {1 (46) (47) [1 + τ + τ2 2! + + τn n! ] exp( τ) }, τ = ηt, (48)

Modeling of Water Flows around a Circular Cylinder... 53 Fig. 4. Rectangular fluid domain with circular cylinder where A m is the velocity amplitude, η is a positive parameter responsile for a growth in time of the generator velocity, and τ is the dimensionless time. One can check that at t = 0, the generator velocity, together with its acceleration and time derivatives up to thenorder are all equal to zeros. With growing value of time the velocity (48) goes to the velocity amplitude (the expression within the rackets goes to unit value). With the assumed velocity, two cases of flow generation are considered. The first one, shown schematically in Fig. 5a, descries a half pulse of the generator plate and the second one, shown in Fig. 5, denotes a finite pulse with zeros velocity and displacement at the end point of time. In the numerical solution, the distriution of material particles in the prolem domain together with their velocities and pressure distriution over the circular cylinder are calculated at chosen moments of time. The calculations have een performed for the non-viscous and viscous fluid as well. The discrete solution of the prolem is reduced to integration in time of the continuity and momentum equations written for all the material particles. For each particle, we have the following system of differential equations dρ a du a dx a = M a, = F a, = G a, (49) dt dt dt where: M a = m (u a u ) a W a (50) and F a = m p a ρ 2 a + p a W a + a + T a. (51) In this equation a = (0, g) denotes the gravity acceleration vector, and T a descries the shear forces for the viscous fluid. The term G a in the third equation in (49) denotes ρ 2

54 K. Szmidt, B. Hedzielski Fig. 5. Velocity and displacement of the generator plate a corrected velocity of particle a. The velocity correction is assumed in the form as proposed y Monaghan (1992) m a G a = u a + (u u a )W a, (52) ρ a + ρ which aims at smoothing velocity of a given particle. For consistency, the corrected velocities are also used in equation (50). Similar correction is performed for the density field at chosen moments of time y means of

Modeling of Water Flows around a Circular Cylinder... 55 the formula ρ a = m W a. (53) The evolution equations (49) are integrated numerically in the discrete time domain y applying an explicit two steps predictor corrector scheme. Thus, in the first step, the mid-step value of the particle density, velocity and position are calculated ρ k+1/2 a = ρ k a + t 2 Mk a, ua k+1/2 = u k a + t 2 Fk a, x k+1/2 a = x k a + t 2 Gk a, (54) where t = t k+1 t k is the time step length. Then, in the second, final step, the values of the dependent variales are calculated according to the formulae ρ k+1 a = ρ k a + t Ma k+1/2, u k+1 a = u k a + t F k+1/2 a, x k+1 a = x k a + t G k+1/2 a. (55) In order to ensure the staility of the numerical integration, the time step t should satisfy the so called CFL condition that the speed of the initial particle spacing e greater than the reference speed (in our case the sound speed) (Toro 1997). With respect to a arotropic fluid with the ulk modulus κ and the sound speed c = γκ/ρ 0, the use of the real ulk modulus for water in the equation of state would result in extremely small time steps (Bonet and Lok 1999). Therefore, an artificial smaller ulk modulus has een used in such a way, that, instead of the sound speed, a certain maximum velocity given y equation (7) with ρ 0 = 10 3 Pa and ρ 0 = 10 3 kg/m 3 was taken into account. The evolution equations (49) were integrated with the time step of length t = 2 10 4 s. The initial conditions at t = 0 were those for the generator fluid system at rest. Numerical solutions have een conducted for the non-viscous (T a = 0 in equation (51)), and viscous (T a 0) fluids, as well. As it has een expected, the differences etween solutions for the viscous and non-viscous fluids were so small (the differences were of second order small quantities) that in analysis of the aforementioned prolem, the laminar viscosity of the fluid may e ignored. In fact, the spacing of the material particles was to ig to descrie changes within oundary layers of very mall thickness, where theinfluence of fluid viscosityon finial results may e significant.important. Some of the results otained in computations are presented in the susequent figures. The plots in figures 6 and 7 show the evolution in time of positions of the material particles and their dimensionless velocities, calculated according to the formula u e = u u max, u max = (u2 + v 2) max, (56) velocities for the generation presented in these plots correspond to the flow generation as presented in Fig. 5, respectively 5a. The next figure (8) shows the distriution of pressure over the cylinder for the flow generation presented in Fig. 5a. And finally,

56 K. Szmidt, B. Hedzielski Fig. 6. The evolution in time of the material particles a), and their velocities ) for the generation presented in Fig. 5a

Modeling of Water Flows around a Circular Cylinder... Fig. 7. The evolution in time of the material particles a), and their velocities ) for the generation presented in Fig. 5 57

58 K. Szmidt, B. Hedzielski Fig. 8. The distriution of pressure over the cylinder for the generation presented in Fig. 5a Fig. 9. The distriution of pressure over the cylinder for the generation presented in Fig. 5 the plots in Fig. 9 illustrate the evolution of pressure for the flow generation as illustrated in Fig. 5. From the plots it may e seen, that the SPH formulation seem to e sufficiently accurate to descrie main features of ehaviour of the fluid ody, even for the case of ig displacements of the fluid particles. It is difficult however to access the method accuracy, since it may e different in different areas of the fluid domain. For instance, it is reasonale to expect a lower accuracy in description of the flow

Modeling of Water Flows around a Circular Cylinder... 59 within areas close to the fluid oundaries. Nevertheless, the SPH formulation seems to e advantageous over mesh methods, especially in descriing ig displacements and possile discontinuities of fluid flows. The weak side of the method is that it needs a relatively large numer of fluid particles to simulate a fluid flow and thus it needs a large time of computer work. 7. Concluding Remarks The paper presents a discussion on oundary conditions and approximations in the description of shear forces for viscous fluids in the SPH description of water flows in the rectangular fluid domain with a circular cylinder in it. Close attention has een paid on oundary conditions at curved solid fluid oundaries of the prolem domain. In order to calculate the shear forces for viscous fluids, approximate description of interaction forces for a pair of particles was formulated in which differentiation of the stress components has een sustituted y difference quotients of associated shear forces. Such a formulation reduces the order of the space differentiation of the velocity field y one. In this way, the solution to the viscous fluids is similar in nature to solution for non-viscous fluids. The numerical examples illustrate the aility of the SPH method to descrie flows around a circular cylinder for the non-viscous and viscous fluids, as well. The SPH formulation is capale to descrie the main features of the flow around the cylinder. It leads to accurate results in the fluid domain, except for the solid oundary areas where a certain deterioration of the numerical results may occur. It should e stressed that this solution to the oundary conditions at the fluid cylinder interface is only a certain approximation, consistent with the discrete method employed. References Ataie-Ashtiani B., Shoeyri and Farhadi L. (2008) Modified incompressile SPH method for simulating free surface prolems, Fluid Dynamics Research, 40, 637 661. Bonet J. and Lok T.-S. L. (1999) Variational and momentum preservation aspects of Smooth Particle Hydrodynamic formulations, Comp. Methods in Appl. Mech. Engrg., 180, 97 115. Colagrossi A. and Landrini M. (2003) Numerical simulation of interfacial flows y smoothed particle hydrodynamics, J. Comp. Phys., 191 (2), 448 475. Dalrymple R. A. and Rogers B. D. (2006) Numerical modeling of water waves with the SPH Method, Coastal Engineering, 53, 141 147. Gomez-Gesteira M., Cerqueiro D., Crespo C. and Dalrymple R. A. (2005), Green water overtopping analysed with a SPH model, Ocean Engineering, 32, 223 238. Grenier N., Antuono M., Colagrossi A., Le Touze D. and Alessandrini B. (2009) An Hamiltonian interface SPH formulation for multi-fluid and free surface flows, J. Computational Physics, 228, 8380 8393. Hu X. Y. and Adams N. A. (2006) A multi-phase SPH method for macroscopic and mesoscopic flows, J. Computational Physics, 213, 844 861. Landau L. D. and Lifszyc J. M. (2009) Hydrodynamika (in Polish), PWN, Warszawa.

60 K. Szmidt, B. Hedzielski Liu G. R. and Liu M. B. (2009) Smoothed Particle Hydrodynamics: A Mesh-free Particle Method, World Scientific, Singapore. Lo E. Y. M. and Shao S. (2002) Simulation of near-shore solitary wave mechanics y an incompressile SPH method, Applied Ocean Research, 24, 275 286. Monaghan J. J. and Gingold R. A. (1983) Shock Simulation y the Particle Method SPH, J. of Computational Physics, 52, 374 389. Monaghan J. J. (1992) Smoothed Particle Hydrodynamics, Annual Rev. Astrophysics, 30, 543 574. Monaghan J. J. (2005) Smoothed Particle Hydrodynamics, Reports on Progress in Physics, 68, 1703 1759. Monaghan J. J. and Kajtar J. B. (2009) SPH particle oundary forces for aritrary oundaries, Computer Physics Communications, 180, 1811 1820. Monaghan J. J. (2012) Smoothed Particle Hydrodynamics and Its Diverse Applications, Ann. Rev. Fluid Mech., 44, 323 346. Morris J. P., Fox P. J. and Zhu Y. (1997) Modeling Low Reynolds Numer Incompressile Flows Using SPH, J. Computational Physics, 136, 214 226. Staroszczyk R. (2010) Simulation of Dam-Break Flow y a Corrected Smoothed Particle Hydrodynamics Method, Archives of Hydro-Engineering and Environmental Mechanics, 57 (1), 61 79. Toro E. F. (1997) Rieman Solvers and Numerical Methods for Fluid Dynamics, Springer-Verlag, Berlin, Heidelerg. Wilde P. and Wilde M. (2001) On the generation of water waves in a flume, Archives of Hydro-Engineering and Environmental Mechanics, 48 (4), 69 83.