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)