• No results found

SPH Method and Numerical Model

3.2 Numerical model

The Lagrangian form of Navier-Stokes equation for an incompressible Newtonian fluid is expressed as follows: 𝑑𝒗𝑖 𝑑𝑑 = βˆ’ βˆ‡π‘ƒ πœŒπ‘– + πœ‡ βˆ‡2𝒗𝑖 πœŒπ‘– + 𝑭 , (3.8)

where 𝒗𝑖 is flow velocity, 𝑃 is pressure, 𝜌 is density, πœ‡ βˆ‡2𝒗𝑖

πœŒπ‘– is the viscous term, and 𝑭

corresponds to the total volumetric force acting on unit mass. To represent the conservation of the mass for fluid flow, the continuity equation is usually written in the following form:

π‘‘πœŒ

𝑑𝑑 = βˆ’πœŒβˆ‡ βˆ™ 𝒗𝑖 . (3.9)

Using the definitions of gradients derived above, the Navier-Stokes Eq. (3.8) and (3.9) can be written in SPH form now.

3.2.1 Momentum equation

The approximation of function gradient in Eq. (3.6) can be applied to the pressure gradient term in Eq. (3.8) to have:

βˆ‡π‘ƒπ‘– = βˆ‘π‘šπ‘— πœŒπ‘— 𝑗

π‘ƒπ‘—βˆ‡π‘–π‘Š(π’“π‘–βˆ’ 𝒓𝑗, β„Ž) , (3.10)

This approximation of Eq. (3.10) has the advantage that local pressure gradient becomes zero- valued when the spatially pressure field is constant [84]. However, Eq. (3.10) does not guarantee the conservation of linear or angular momentum and it is difficult to construct a consistent energy equation. Therefore, the pressure gradient should be symmetrised by rewriting βˆ‡π‘ƒ/𝜌 to ensure momentum conservation [65]:

βˆ‡π‘ƒπ‘– πœŒπ‘– = βˆ‡ ( 𝑃 𝜌)𝑖+ 𝑃𝑖 πœŒπ‘–2βˆ‡πœŒπ‘– . (3.11)

By applying approximation of Eq. (3.6), the following equation for the pressure gradient is obtained: βˆ‡π‘ƒπ‘– = πœŒπ‘–βˆ‘ π‘šπ‘—[𝑃𝑖 πœŒπ‘–2+ 𝑃𝑗 πœŒπ‘—2] βˆ‡π‘Š(𝒓𝑖 βˆ’ 𝒓𝑗, β„Ž) 𝑗 , (3.12)

22 and the momentum equation becomes:

𝑑𝒗𝑖 𝑑𝑑 = βˆ’ βˆ‘ π‘šπ‘—[ 𝑃𝑖 πœŒπ‘–2+ 𝑃𝑗 πœŒπ‘—2] βˆ‡π‘Š(𝒓𝑖 βˆ’ 𝒓𝑗, β„Ž) + πœ‡ βˆ‡2𝒗 𝑖 πœŒπ‘– + 𝑭 𝑗 . (3.13)

The viscous term is subjected to modification which will be discussed later in Section 3.3.4. For gravitational flows, the term 𝑭 can be substituted by the vector π’ˆ to represent gravity. Additional external forces, e.g., liquid-solid particle interactions, can be added to the last term in Eq. (3.13) for different scenarios.

3.2.2 Continuity equation

The continuity equation for particle 𝑖 can be written directly with the approximation of Eq. (3.5):

πœŒπ‘– = βˆ‘ π‘šπ‘—π‘Š(𝒓𝑖 βˆ’ 𝒓𝑗, β„Ž) 𝑗

. (3.14)

In this approach, the density of a given particle is directly calculated based on the particle masses of its neighbouring points, which is simple and straightforward. However, Monaghan [65] pointed out that this approach would suffer several major disadvantages when simulating free surface flows. As a result, another approach for computing the density of particle is applied in this work to solve the continuity equation as

π‘‘πœŒπ‘–

𝑑𝑑 = βˆ‘ π‘šπ‘—π’—π‘–π‘—βˆ‡π‘Š(𝒓𝑖 βˆ’ 𝒓𝑗, β„Ž) 𝑗

, (3.15)

where 𝒗𝑖𝑗 = π’—π‘–βˆ’ 𝒗𝑗 is the relative velocity of the π‘–π‘‘β„Ž particle with respect to π‘—π‘‘β„Ž particle.

3.3.3 Equation of State (EOS)

Originally the SPH method was proposed to deal with astrophysical problems [58, 59], which can be handled by applying EOS for the ideal gas. In terms of fluid simulation, the real fluid can be treated as a weakly-compressible fluid, where the compressibility of simulated liquid is artificially controlled by different choices of constants in EOS. In this work, the Tait EOS [64] is applied to define the motion of particle:

𝑃 =𝑐 2𝜌 0 πœ€ [( πœŒπ‘– 𝜌0 ) πœ€ βˆ’ 1] , (3.16)

23

where 𝑐 is artificial speed of sound, 𝜌0 is reference density of fluid, and πœ€ is a constant. According to Morris [85], the artificial sound speed must be chosen carefully to ensure the efficiency and accuracy of SPH solutions. The artificial sound speed should be large enough to ensure the behaviour of the corresponding fluid is sufficiently close to the real fluid, while reasonably small to make the time step practical in the calculation. Adami et al. [86] suggested that the artificial sound speed should be chosen at least one order of magnitude larger than the maximum velocity of particles in order to limit the effect of compressibility on the flow. In this work, we choose the artificial speed of sound as 𝑐 = 10π‘‰π‘šπ‘Žπ‘₯ along with πœ€ = 7, where π‘‰π‘šπ‘Žπ‘₯ is the expected maximum particle velocity during simulations.

3.3.4 Artificial viscosity

In this work, a Monaghan style artificial viscosity [65] is adopted in the proposed model, to model viscous effect, prevent strong shocks and stabilise the numerical algorithm. The artificial viscosity is obtained by writing the momentum equation with following form:

πœ‡βˆ‡ 2𝒗 𝑖 πœŒπ‘– = βˆ’ βˆ‘ π‘šπ‘—[ΠŸπ‘–π‘—]βˆ‡π‘Š(π’“π‘–βˆ’ 𝒓𝑗, β„Ž) 𝑗 , (3.17)

where ΠŸπ‘Žπ‘ is given by:

ΠŸπ‘–π‘— = { βˆ’π›Όπ‘Μ…π‘–π‘—πœ‡π‘–π‘— + π›½πœ‡π‘–π‘—2 πœŒΜ…π‘–π‘— π’—π‘–π‘—βˆ™ 𝒓𝑖𝑗 < 0 0 π’—π‘–π‘—βˆ™ 𝒓𝑖𝑗 > 0 , (3.18) and πœ‡π‘–π‘— = β„Žπ’—π‘–π‘— βˆ™ 𝒓𝑖𝑗 𝒓𝑖𝑗2+ 0.01β„Ž2 , (3.19)

where 𝛼 and 𝛽 are constants, 𝑐̅𝑖𝑗 = (𝑐𝑖+𝑐𝑗)/2 and πœŒΜ…π‘–π‘— = (πœŒπ‘–+πœŒπ‘—)/2 refer to the values of the artificial sound speed and the density averaged between particles 𝑖 and 𝑗, respectively. The viscosity vanishes when two particles move away from each other(𝒗𝑖𝑗 βˆ™ 𝒓𝑖𝑗 > 0), Otherwise, when particles approach each other (𝒗𝑖𝑗 βˆ™ 𝒓𝑖𝑗 < 0), the value of the viscous term is increased, thus stabilizing the numerical solution.

The term involving 𝛼 are responsible for creating shear and bulk viscosity, while the term involving 𝛽 is used to prevent unphysical penetration of particles that approach each other at a

24

high speed. Monaghan suggested the values for 𝛼 and 𝛽 are 1 and 2, respectively, for best results [65]. In this work, we adopt the 𝛼 value while change the value of 𝛽 to 0 as the motion of fluid flow in the simulation is relatively slow (ranging from 0.0002 to 20 mm/s). It should be noted that the implementation of this artificial viscosity could lead to unphysically high shear viscous forces because SPH simulations are stabilized by a fluid’s physical viscosity, and it is challenging to simulate low viscous flows [87]. Therefore, our simulations will be carried out with this high viscous setting, and the apparent viscosity will be calibrated later in Section 4.2.

3.3.5 XSPH correction

An equation of motion called XSPH formulation is added to the momentum equation, continuity equation, and equation of state to close the system of governing equations [65, 88]:

𝑑𝒓𝑖 𝑑𝑑 = 𝒗𝑖 + πœ“ βˆ‘ π‘šπ‘— 2(𝒗𝑖 βˆ’ 𝒗𝑗) πœŒπ‘–+ πœŒπ‘— π‘Š(π’“π‘–βˆ’ 𝒓𝑗, β„Ž) 𝑗 , (3.20)

where πœ“ is constant between 0 and 1. Using this XSPH correction in the equation of motion helps to move particles with average velocity, thus more consistent for the algorithm. This can potentially reduce the noise induced by pressure gradients, thus stabilising the free surface of liquid, and prevent the unphysical penetration of particles passing through each other.

3.3.6 Time integration

The choice of time step βˆ†π‘‘ is important in terms of balancing simulation stability and computational cost. Due to the explicit nature of the time stepping scheme, βˆ†π‘‘ must be smaller than certain values in order to stabilize the simulation. On the other hand, smaller βˆ†t will cost more computational resource for simulation. For the weakly-compressible SPH formulation, the time step βˆ†t must satisfy (1) the CFL-condition based on the maximum artificial sound speed and the maximum flow speed [85]:

βˆ†π‘‘ ≀ 0.25 β„Ž

π‘π‘šπ‘Žπ‘₯+ |π‘’π‘šπ‘Žπ‘₯|, (3.21)

(2) the magnitude of particle acceleration 𝑓𝑖

βˆ†π‘‘ ≀ 0.25

i

minβˆšβ„Ž 𝑓𝑖

25 and (3) the viscous condition

βˆ†π‘‘ ≀ 0.125β„Ž 2

πœ‡ . (3.23)

Related documents