This site uses cookies. By continuing to use this site you agree to our use of cookies. To find out more, see our Privacy and Cookies policy. Close this notification
Brought to you by:
Paper

Stability and accuracy analysis for viscous flow simulation by the moving particle semi-implicit method

and

Published 8 April 2013 © 2013 The Japan Society of Fluid Mechanics and IOP Publishing Ltd
, , Citation Guangtao Duan and Bin Chen 2013 Fluid Dyn. Res. 45 035501 DOI 10.1088/0169-5983/45/3/035501

1873-7005/45/3/035501

Abstract

Viscosity is an important property of fluids but it is not easy to simulate, especially for flows where viscous forces are dominant or comparable with other forces, because numerical viscosity may interfere. The paper mainly discusses the effect of setting up time step and space step on the stability and accuracy of the viscosity term in the moving particle semi-implicit (MPS) method. Two principles, the stability condition of the viscosity term and the accuracy condition of the viscosity term, are proposed for setting up time step and space step. The former can guarantee the stability of the viscous simulation by introducing extra numerical viscosity and the latter can produce a realistic and accurate simulation of the viscosity term without numerical viscosity interference. The simulated results for Poiseuille flow show that the simulation cases set up according to the stability condition of the viscosity term are stable and that the simulation cases set up according to the accuracy condition of the viscosity term are the most accurate. The proposed conditions can guide one to stable and accurate simulation for viscous flow by the MPS method.

Export citation and abstract BibTeX RIS

1. Introduction

The moving particle semi-implicit (MPS) method (Koshizuka and Oka 1996) is a kind of meshless approach to simulate incompressible flows with a free surface. As a fully Lagrangian technique, the fluid is discretized as numerous particles which move according to the Navier–Stokes (N–S) equations. Since the interface can be easily traced by the motion of Lagrangian particles, the MPS method shows great potential in free surface flows and multiphase flow, which are difficult to simulate by the conventional grid method. Differential operators in the governing equations, such as gradient, divergence and Laplacian operators, can be discretized by the interaction models among particles. Therefore, it is relatively easy to introduce new physics into MPS formulation. Up to now, the MPS method has been applied to many problems, such as fluid–structure interaction (Chikazawa et al 2001), elastic deformation (Chikazawa et al 2001, Iribe et al 2010), varied free surface flows (Koshizuka et al 1998, Shakibaeinia and Jin 2010, Sun et al 2011), multiphase flows (Liu et al 2005, Morita et al 2010) and microflow (Rong and Chen 2010). More applications can be found in the review by Koshizuka (2011). Although the MPS method is versatile, its accuracy is sometimes less than the conventional grid-based method. In this paper, the MPS method is extended to model viscous shear flow.

Viscosity is an important property of fluids and the study of viscous flow has applications to many physical problems. Many applications to the fields of nuclear, environmental, chemical, mechanical and petroleum engineering likewise involve incompressible viscous shear flow through channels, filters, porous materials and substrates. In most viscous shear flows, viscosity plays an important role and the viscous forces are usually dominant and comparable with other forces.

Viscosity is not easy to simulate accurately, especially for the particle method, because the viscosity term in the N–S equation is a second-order derivative. The smoothed particle hydrodynamics (SPH) method (Gingold and Monaghan 1977, Lucy 1977) is a particle method developed much earlier than the MPS method and its basic theory, applications and advances have been well reviewed by many scholars (Monaghan 1992, Randles and Libersky 1996, Li and Liu 2002). One main difference between SPH and MPS lies in the different discrete schemes. The discrete scheme of SPH is based on the derivative of the smooth kernel function but that of MPS is based on the weighed average process by the weight function. For the SPH method, the artificial viscosity model had been developed earlier to improve the shock simulations (Monaghan and Gingold 1983, Monaghan 1992). Monaghan (1989) introduced an extra numerical viscosity term which produces extra dispersion to avoid the penetration problem in the SPH method. Even though the numerical viscosity can help to produce stable and smooth simulation, the realistic fluid viscosity term is more difficult to simulate because the numerical viscosity may interfere. So Morris et al (1997) developed a new viscosity formula and other modifications for SPH to model the low Reynolds number incompressible viscous flows.

Up to now, most references on the stability of the MPS method focus on the stability and accuracy issues caused by the pressure term. Different approaches, such as designing a conservational gradient model (Khayyer and Gotoh 2009, 2011), deriving a higher order Laplacian model (Khayyer and Gotoh 2010, 2011) and developing a new source term of the pressure Poisson equation (Khayyer and Gotoh 2011, Kondo and Koshizuka 2011), are tried to suppress the pressure oscillations. On the other hand, few references can be found especially for flows where the viscous forces are dominant or comparable with the inertial forces even though the viscosity term can be easily introduced in the MPS method. Because the Laplacian model for the viscosity term is well modeled from the diffusion dynamics, this paper mainly discusses the effect of configurations of time step and space step on stability and accuracy. When the particle method is adopted for viscous shear flow, the viscosity term will affect the stability because the pure Courant stability condition (CFL) cannot always guarantee stability. Usually, the stability condition of the viscosity term in the grid method will be adopted to alleviate the instability. For example,

Equation (1)

where Δt is the time step, l0 is the space step or initial particle distance in the particle method and ν is the kinematic viscosity, is adopted by Morris et al (1997) to model the low Reynolds number viscous flow by SPH. Lo and Shao (2002) adopted

Equation (2)

to stabilize their turbulent SPH algorithm where ν is the summation of laminar kinematic viscosity and turbulent eddy viscosity. Ellero and Tanner (2005) and Suzuki et al (2006) used

Equation (3)

to stabilize the viscous flow in the SPH and MPS methods, respectively. Conditions (1)–(3) are borrowed from the grid method but they differ in the constant on the right-hand side, which is still not determined for the particle method. In this paper, a stability condition of the viscosity term specially for the MPS method is proposed from the theoretical analysis of the viscosity term. Moreover, a condition for realistic and accurate simulation of the viscosity term without extra numerical viscosity interference is also present in this paper. This condition is addressed as the accuracy condition of the viscosity term, which is a variant of the stability condition of the viscosity term. The different configurations of space and time steps in Poiseuille flow are simulated to validate the improvements of stability and accuracy in the MPS method.

2. The MPS method

Before we analyze the viscosity term, the MPS method (Koshizuka and Oka 1996) is briefly described here. The governing equations of incompressible viscous flow are

Equation (4)

Equation (5)

In equations (4) and (5) ρ is fluid density, u is the velocity vector, P is pressure, ν is laminar kinematic viscosity and g is gravity acceleration.

In the MPS method, the fluids are modeled as an assembly of interacting particles, the motion of which represents the fluid flow. The differential operators in the governing equation are discretized by the particle interaction models (Koshizuka and Oka 1996) in MPS. The hyperbolic weight function which is widely used in the interaction models is proposed by Koshizuka and Oka (1996) as follows:

Equation (6)

where r is the distance between two particles and re is the interaction radius of the reference particle. re is usually selected to be several initial particle distances l0, i.e. re = kl0 . The parameter k is usually given and selected from 2.0 to 5.0 because it is very hard to configure boundary conditions when k is too large or the results will fluctuate heavily and even become unstable when k is too small. The particle number density (PND) n is defined as

Equation (7)

where r is the position vector, subscript i is the label of the reference particle and subscript j is the label of the neighbor particle. The gradient and Laplacian models are

Equation (8)

and

Equation (9)

respectively, where ϕ is the scalar variable, d is the number of space dimensions, n0 is the PND based on the initial uniform particle configuration and λ is the diffusion coefficient which is defined as

Equation (10)

The MPS method adopted the semi-implicit algorithm to solve the viscosity term and the pressure gradient term. Firstly, the temporary velocity field is obtained by calculating the viscosity term and gravity term explicitly. The temporary position of particles is updated with the temporary velocity field. Then the pressure is solved by the pressure Poisson equation (PPE) (Tanaka and Masunaga 2010) as follows:

Equation (11)

where ni* is the PND based on the temporary particle position, α is the artificial compressibility and superscript k is the label of the time layer. The temporary velocity field is revised by the pressure gradient term to produce the final velocity field at every time layer.

3. Analysis of the viscosity term

3.1. Theoretical solution of the diffusion model

The viscosity term, which is the explicit part of the MPS method, is analyzed here. In this section, the term 'viscosity' and 'diffusion' can replace each other freely because they have similar physical mechanisms. To simplify the analysis, the one-dimensional diffusion or viscosity problem is considered as follows:

Equation (12)

where ϕ is also an arbitrary scalar variable and ν is the diffusion coefficient. Given an initial scalar field $\left. \phi \right|_{t = {\rm{0}}} = \phi _0 \left( x \right)\,\left( { - \infty < x < + \infty } \right)$ , ϕ will vary with time according to equation (12). The theoretical solution of equation (12) is obtained from the Fourier transformation as follows:

Equation (13)

where the kernel function G(x,t;ξ,0) is a Gaussian function whose symmetric center is ξ. So the Gaussian function is a theoretical weight function in the Laplacian model. The specific expression of the Gaussian function is

Equation (14)

where Δt is the diffusion time. When d = 1, equation (14) is the solution for the one-dimensional problem described by equation (12). The diffusion time, Δt, is a key parameter affecting the shape of the Gaussian function. As depicted in figure 1, with the increase of diffusion time Δt, the Gaussian function is dumpier, which means the effective range of diffusion is longer.

Figure 1.

Figure 1. Shape of the Gaussian functions with different diffusion time Δt. The effective range of diffusion increases with diffusion time.

Standard image

The effective range of diffusion is defined quantitatively as below. σ, which is the root-mean-square deviation of the Gaussian function, is defined as follows:

Equation (15)

Here dx is the distance, area, volume of a point in one dimension, two dimensions, three dimensions, respectively. Take the heat diffusion problem as an example. In the diffusion time Δt, 99.7% of the heat diffused from the heat source at the symmetric center is still in the range of three times root-mean-square deviation (3σ) from the symmetric center as shown in figure 2. So the diffusion or viscosity is a local effect and 3σ is the effective range of diffusion. Moreover, 3σ is the effective range of the Gaussian function and 3σ should be the interaction radius in the Laplacian model.

Figure 2.

Figure 2. Ratio of the diffused heat in the range of 1σ, 2σ and 3σ to the diffused heat in the whole range is 0.683, 0.954 and 0.997, respectively. Most diffused heat (99.7%) is still in the local range of 3σ.

Standard image

We can rewrite the Gaussian function as follows and deduce a Laplacian model based on the Gaussian function:

Equation (16)

The increase of ϕi at particle i can be expressed as follows:

Equation (17)

Note that $n_G^0 = \sum\nolimits_{j,i} {G(\sigma ,| {{\bf{r}}_j - {\bf{r}}_i } |)}$ , where label i is one of the summation index j. So the Laplacian model can be transformed to

Equation (18)

The term νΔt above should be substituted by the interaction radius re according to the relationship $r_e = 3\sigma = 3\sqrt {2d\,v\,\Delta t}$ as discussed above. So the Laplacian model based on the Gaussian function is

Equation (19)

The widely used Laplacian model, equation (9), can be obtained by substituting the Gaussian function and (3σ)2 (or re2) in equation (19) by a hyperbolic function and λ (equation (10)) respectively because both σ2 and λ represent the variance of the respective weight function and have the same units. As shown in figure 3, the shape of the Gaussian function is similar to that of the hyperbolic function when their effective radius is the same, which guarantees the accuracy of the conventional Laplacian model with the λ parameter.

Figure 3.

Figure 3. The Gaussian function, which is the theoretical weight function in the Laplacian model, and the hyperbolic function, which is the widely used weight function in the Laplacian model, are similar in shape when their effective radius is the same.

Standard image

3.2. Accuracy condition and stability condition of the viscosity term

Here we discuss how the configurations of time step Δt and space step l0 affect the stability and accuracy of the viscosity term in the MPS method. Firstly, two conditions for stable and accurate simulation of the viscosity term are proposed and then the reasons why the accuracy condition provides the highest accuracy of the viscosity term and why numerical viscosity in the stability condition of the viscosity term is larger than fluid viscosity are explained.

When considering the stability and accuracy issues, one can compare the realistic effective range of viscosity with interaction radius in the Laplacian model. The realistic effective range of fluid viscosity during time step Δt is ${{\rm{3}}\sigma {\rm{ = 3}}\sqrt {{\rm{2}}dv\Delta t} }$ where Δt is the time step and ν is the fluid viscosity. This realistic effective range is shown by the solid line circle B in figure 4. On the other hand, each radius of circles A–C in figure 4 can be selected as the interaction radius of the Laplacian model for the viscosity term. When the realistic effective range (3σ) is selected as the interaction radius (re) for the Laplacian model, the viscosity term will be simulated realistically and accurately. So the relationship

Equation (20)

is termed the accuracy condition of the viscosity term. In this situation, the accuracy of the viscosity term will be highest, which will be explained in the next paragraph. When circle A in figure 4 is adopted in the Laplacian model for the viscous term, the particles in a larger area than the realistic diffusion area will be selected to interact with a central particle. The simulation tends to be stable when the numerical diffusion area is larger than the realistic diffusion area (Anderson 1995). Also, considering that diffusion can average velocity field, the velocity will be over-averaged in a larger area when circle A is adopted, which helps to stabilize the simulation. So the simulation will be stable when the interaction radius for the viscosity term is larger than the realistic effective range. The relationship

Equation (21)

is termed as the stability condition of the viscosity term. Comparing condition (21) with conditions (1)–(3), one can find that the parameter at the right-hand side of condition (21) relates closely with the interaction radius of the Laplacian model. This parameter increases with the interaction radius, re, which is also reasonable. This stability condition is especially for the particle method, so there is no need to borrow the stability condition from the grid-based method.

Figure 4.

Figure 4. Circle B is the realistic effective range of the viscosity term and circles A–C are the interaction area used in the Laplacian model. When the interaction radius (circle B) in the Laplacian model equals the realistic effective range (circle B) of viscosity, the accuracy of the viscosity term will be highest.

Standard image

Now let us turn to the situation where re is adopted as the interaction radius of the viscosity term in the MPS method. One can calculate numerical diffusion time Δtd from the interaction radius (re) of the Laplacian model by the condition ${r_e {\rm{ = 3}}\sqrt {{\rm{2}}dv\Delta t_{\rm{d}} } }$ where ν is regarded as fluid viscosity. From the comparison between the calculated numerical diffusion time Δtd and the time step Δt, the reason why the accuracy condition of the viscosity term produces the highest accuracy of the viscosity term can be explained. From equation (18), one can conclude that the Laplacian model in MPS is the average change rate of a variable during the diffusion time (Δtd) caused by the viscosity term when considering ν as a constant coefficient to adjust units in Newtonian fluid simulations. On the other hand, when calculating the velocity variation Δu caused by the viscosity term during a time step Δt based on the following equation,

Equation (22)

one just wants ${\bar{\bf a}}$ , the average change rate of velocity during the time step Δt. When the average change rate during a longer or shorter time interval than time step Δt is adopted as ${\bar{\bf a}}$ in calculating velocity variation Δu during time step Δt according to equation (22), the accuracy of Δu will decrease so the average change rate during the time step Δt can exactly provide the highest accuracy of velocity variation. When the accuracy condition (20) is adopted to set up Δt and l0 (further setting up re because re = kl0), the calculated numerical diffusion time Δtd is exactly the time step Δt, which means the calculated Laplacian model (namely, the average change rate of velocity during numerical diffusion time Δtd) is exactly the wanted average change rate during the time step Δt. So in this situation, the viscosity term is simulated most accurately and realistically. Otherwise, irrespective of whether circles A or B in figure 4 are adopted, the calculated diffusion time Δtd is either longer (circle A) or shorter (circle C) than the time step Δt causing that the calculated Laplacian model is the average change rate during either longer (circle A) or shorter (circle C) diffusion time Δtd, so that the accuracy of the viscosity term will decrease when this calculated Laplacian model is adopted. Therefore, the accuracy condition of the viscosity term produced the highest accuracy for the viscosity term just because the Laplacian model calculated from re in this situation is exactly the wanted average change rate during time step Δt. This is the reason why condition (20) is addressed as the accuracy condition of the viscosity term.

When stability condition (21) or circle A is adopted, the calculated Laplacian model is over-averaged during a longer time interval (Δtd) than the time step (Δt) so that the simulation tends to be stable. On the other hand, since the circle B in figure 4 provides the highest accuracy of viscosity, the accuracy will decrease a little when circle C is adopted just a little smaller than circle B to setting up Δt and l0. In this situation, the simulation may be stable because the slightly decreased accuracy is not enough to break down the simulation. However, when circle C in figure 4 is much smaller than circle B, the simulation tends to be unstable because of the insufficient diffusion. Therefore, the stability condition of the viscosity term is just a sufficient rather than necessary condition of stable calculation of the viscosity term.

In an alternative perspective, one can calculate a numerical viscosity coefficient νn from the interaction radius (re) of the Laplacian model by the condition ${r_e {\rm{ = 3}}\sqrt {{\rm{2}}dv_{\rm{n}} \Delta t} }$ where Δt is regarded as time step. When the accuracy condition of the viscosity term (${{\rm{3}}\sqrt {{\rm{2}}dv\Delta t} = r_e }$ ) is adopted to set up Δt and l0 (further setting up re because re = kl0), the numerical viscosity νn is exactly the fluid viscosity ν so the viscosity term is realistically and completely modeled without extra numerical viscosity. While the stability condition of the viscosity term (circle C) is adopted for setting up Δt and l0, the calculated numerical viscosity coefficient νn will be larger than the fluid viscosity so extra numerical viscosity is added, which also indicates why the stability condition of the viscosity term provides stable simulation. The over-averaged velocity field in which the stability condition of the viscosity term is adopted indicates extra numerical viscosity. When circle C in figure 4 is adopted in the Laplacian model for the viscous term, the numerical viscosity is even smaller than the fluid viscosity so the simulation may be unstable. The two proposed conditions mainly apply to the flow where viscous forces are dominant or comparable with other forces.

The CFL to stabilize the simulation is

Equation (23)

where umax is the maximal velocity, C0 is the Courant number and Cmax (typically 0.25) is a maximal Courant number in particle methods. Both CFL and the proposed accuracy or stability condition of the viscosity term are necessary to set up time step Δt and space step l0. The CFL condition which is a straight line and the accuracy condition of the viscosity term which is a parabolic curve are plotted in figure 5. The areas A and B are stable areas guaranteed by CFL. The areas B and C are stable areas guaranteed by the stability condition of the viscosity term. So area B is the common and final stable area for viscous flow. The accuracy and stability conditions of the viscosity term are very similar to each other, but they differ as shown in figure 5. The accuracy condition of the viscosity term states that the combinations of l0 and Δt on the curve ${ {\mathord{\buildrel{\lower3pt\hbox{$\frown$}} \over {\rm ode} } } }$ in figure 5 produce the most accurate simulation of the viscosity term as discussed above. When the accuracy condition of the viscosity term is adopted to realistically and accurately simulate the viscosity term causing that the point must be selected on the curve ${ {\mathord{\buildrel{\lower3pt\hbox{$\frown$}} \over {\rm ode} } } }$ , point (e) in figure 5 can be selected to save computational load because Δt and l0 at point (e) are the largest ones on the curve ${ {\mathord{\buildrel{\lower3pt\hbox{$\frown$}} \over {\rm ode} } } }$ in the stable area. The computational load is still very large even though point (e) is selected, which will be discussed in the next subsection. So the accuracy condition of the viscosity term is a very stringent condition because the viscosity term is realistically and accurately simulated. On the other hand, the stability condition of the viscosity term states that the combinations of l0 and Δt in the area B in figure 5 produce stable simulation for viscous flow. Area B in figure 5 is a very large area so that much larger Δt and l0 than Δt and l0 at point (e) can be selected to produce stable simulation. So the stability condition of the viscosity term can save computational load obviously but extra numerical simulation is introduced as discussed above. For the high Reynolds number flows, the combinations of l0 and Δt in the area B are usually selected to save computational load.

Figure 5.

Figure 5. The combination of CFL and accuracy condition of the viscosity term. The combinations of l0 and Δt in the area B guarantee stable viscous simulation. The combinations of l0 and Δt on the curve ${ {\mathord{\buildrel{\lower3pt\hbox{$\frown$}} \over {\rm ode} } } }$ provide the highest accuracy of the viscosity term.

Standard image

3.3. Computational cost of the accuracy condition of the viscosity term

Now, the computational cost when the accuracy condition of the viscosity term is adopted is discussed. To ensure stability of particles' motion and the pressure term, CFL is still necessary. Assuming umax = βu0, re = kl0 and Reynolds number Re = Du0/ν (D is the characteristic length, u0 is the characteristic velocity), l0 and Δt can be set up by coupling the CFL (23) and the accuracy condition of the viscosity term (20). The result is rearranged as follows:

Equation (24)

The above results are stated as follows:

  • (1)  
    D/l0, which represents the number of particles used to discretize characteristic length D, is proportional to Reynolds number, Re.
  • (2)  
    D/(u0Δt), which represents the number of iterations from the initial state to the fully developed state, is also proportional to Reynolds number, Re.

The computational cost shown above is very large because the molecular viscosity is realistically simulated. Assuming that umax is proportional to fluctuating velocity u' and that D is the energetic scale, Reynolds number is redefined as Rel = u'D/v. One can also conclude that D/l0 is proportional to Rel in the particle method. So the computational cost of the accuracy condition of the viscosity term in the MPS method is even larger than that of the theoretical direct numerical simulation (DNS) method, which states that the grid number in one dimension is proportional to (Rel)3/4 (Wilcox et al 1998).

As discussed above, the accuracy condition of the viscosity term actually provides a realistic and complete simulation of the molecular viscosity term without extra numerical viscosity. So when the accuracy condition of the viscosity term is used to set up l0 and Δt for the steady laminar flow simulation, the results will be the most accurate because time step and space step match each other. When the accuracy condition of the viscosity term is adopted for the unsteady turbulent flow simulation, no turbulence model is needed. These simulations can be regarded as DNS in the MPS method. But the authors fail to provide an unsteady turbulent flow simulation because of the unacceptable computational load.

4. Numerical test and discussions

4.1. Test of accuracy and stability condition of the viscosity term by Poiseuille flow

The Poiseuille flow is simulated by the MPS method to evaluate the accuracy and stability condition of the viscosity term because the viscous force is dominant in Poiseuille flow. The initial particle configuration is shown is figure 6. The top and bottom wall is set as the wall boundary condition (Koshizuka and Oka 1996). The inflow boundary condition is similar to Shakibaeinia's setting (Shakibaeinia and Jin 2010) and the outflow boundary is set as a free surface boundary (Koshizuka and Oka 1996). In the simulation, gravity is neglected. The fluid property and some parameters are shown in table 1, where D is the distance between the top and bottom walls and L is the length from inlet to outlet as shown in figure 6. Reynolds number Re is small, so the velocity at 6D's cross-section is fully developed. We compare the simulated velocity profile with the theoretical one from 6.5D to 7.5D in the fully developed area as shown in figure 6. The criterion of accuracy is defined by the mean relative error as follows:

Equation (25)

where i is the label of particles which located between 6.5D and 7.5D at the fully developed time layers and n is the number of all particles in the specific area above. Two simulation cases (simulation case 1 and simulation case 2) of Poiseuille flow are simulated to evaluate the proposed conditions of the viscosity term. In simulation case 1, the uniform mean velocity profile is configured for the inlet particles which are used to push the fluid static particles between the two solid walls until the flow is fully developed. There is always about 5% relative error which cannot be eliminated effectively even though we decrease the initial particle distance (l0). Then all the initial fluid particles are set up with the theoretical fully developed parabolic velocity to test whether the parabolic profile can maintain or not, which is simulation case 2.

Figure 6.

Figure 6. Initial particle configuration of Poiseuille flow. The error testing area is in the fully developed area.

Standard image

Table 1. Fluid property and some parametersa.

ρ (kg m−3) ν (m2 s−1) u0 (m s−1) D (m) L (m) l0 (m) Re re_iccg/l0 re/l0
1000.0 1.0×10−5 0.0050 0.0075 0.0683 3.41×10−4 3.75 3.1 3.1

are_iccg is the radius of a particle's interaction area in solving PPE, while re is the one in calculating PND and viscosity.

The time step Δt is fixed in the simulation so that the effect of the proposed stability and accuracy condition of the viscosity term on stability and accuracy is more obvious. Different setups of initial particle distance l0 and time step Δt are employed to evaluate the stability and accuracy condition of the viscosity term as shown in figure 7. As discussed above in section 3.2, when C0 ⩽ Cmax (Cmax = 0.25) in CFL (equation (23)), the CFL is guaranteed. As shown in figure 7, here we choose CFL with smaller C0 = 0.068 to couple with the accuracy condition to solve the basic Δt and l0 (point (c)) so that when Δt is enlarged (points (d) and (e)) or l0 is reduced (points (f) and (g)), the CFL (C0 ⩽ Cmax) is always guaranteed. In figure 7, only point (c) is on the curve of the accuracy condition of the viscosity term. So the accuracy of the simulation with l0 and Δt at point (c) is expected to be the highest. As shown by the vertical line in figure 7, keeping the space step l0 still and changing the time step can produce four cases: much shorter Δt (point (a)), shorter Δt (point (b)), longer Δt (point (d)), much longer Δt (point (e)), which are expressed in table 2. As shown by the horizontal line in figure 7, keeping the time step Δt still and changing the space step can produce another four cases: much shorter l0 (point (f)), shorter l0 (point (g)), longer l0 (point (h)), much longer l0 (point (i)), which are expressed in table 3. Also we compare the accuracy of the Laplacian model based on the Gaussian function (equation (19)) and the conventional Laplacian model (equation (9)). We combine the two Laplacian models and the two simulation cases to produce four schemes: G1, G2, λ1 and λ2, where G represents the Laplacian model based on the Gaussian function (equation (19)), λ represents the conventional Laplacian model with the λ parameter (equation (9)), 1 is short for simulation case 1 and 2 is short for simulation case 2. So G1 means the viscosity term is modeled by the Laplacian model based on the Gaussian function and that the type of the simulation is simulation case 1. These symbols are also explained in detail as the footnote of tables 2 and 3. In G1 and G2, the Laplacian model based on the Gaussian function is only used to calculate the viscosity term. The simulated results are shown in tables 2 and 3, where points (a)–(i) in figure 7 are also shown.

Figure 7.

Figure 7. Setups of Δt and l0 in evaluating the accuracy and stability condition of the viscosity term. Points (a)–(e) are used in table 2 to show the effect of time step on accuracy and stability. Points (f)–(i) are used in table 3 to show the effect of space step on accuracy and stability.

Standard image

Table 2. Working conditions and simulated results with different time steps. (a)–(e) in the 'case' column represent corresponding points in figure 7.

Case Working condition Mean error
Time step Δt Space step l0 G1a G2 λ1 λ2
(a) Much shorter Δt 8.56×10−4 3.41×10−4 0.054 61 0.056 00 0.069 61 0.064 42
(b) Shorter Δt 1.34×10−3 3.41×10−4 0.049 51 0.051 37 0.056 62 0.055 98
(c) Accuracy condition 3.11×10−3 3.41×10−4 0.042 39 0.033 20 0.045 76 0.039 97
(d) Longer Δt 7.21×10−3 3.41×10−4 Diverge Diverge 0.054 40 0.041 32
(e) Much longer Δt 1.13×10−2 3.41×10−4 Diverge Diverge Diverge Diverge

aG1: Laplacian model based on Gaussian function for simulation case 1; G2: Laplacian model based on Gaussian function for simulation case 2; λ1: conventional Laplacian model with the λ parameter for simulation case 1; λ2: conventional Laplacian model with the λ parameter for simulation case 2.

Table 3. Working conditions and simulation results with different space steps. Points (f)–(i) in the 'case' column represent corresponding points in figure 7.

Case Working condition Mean error
Time step Δt Space step l0 G1a G2 λ1 λ2
(f) Much shorter l0 3.11×10−3 1.00×10−4 Diverge Diverge Diverge Diverge
(g) Shorter l0 3.11×10−3 2.21×10−4 Diverge Diverge 0.048 69 0.044 53
(c) Accuracy condition 3.11×10−3 3.41×10−4 0.042 39 0.033 20 0.045 76 0.039 97
(h) Longer l0 3.11×10−3 5.28×10−4 0.047 51 0.043 01 0.055 62 0.050 87
(i) Much longer l0 3.11×10−3 1.16×10−3 0.052 57 0.059 18 0.062 34 0.059 48

aG1: Laplacian model based on Gaussian function for simulation case 1; G2: Laplacian model based on Gaussian function for simulation case 2; λ1: conventional Laplacian model with the λ parameter for simulation case 1; λ2: conventional Laplacian model with the λ parameter for simulation case 2.

Firstly, the relative error of the simulation with l0 and Δt at point (c) is always the smallest as shown by the bold numbers in tables 2 and 3, because point (c) is on the curve of the accuracy condition of the viscosity term. So the accuracy condition of the viscosity term provides the highest accuracy in the MPS method.

Secondly, comparing figures 5 and 7, one can find that points (a)–(c), (h), (i) in figure 7 are in area B in figure 5, which is the stable area in viscous flow. The simulations with Δt and l0 at points (a)–(c), (h), (i) are all stable which prove that the stability condition of the viscosity term proposed in this paper is effective to provide stable simulation. Points (d)–(g) in figure 7 are in area A in figure 5, where the CFL (C0 ⩽ Cmax) is guaranteed and the stability condition of viscosity is violated. So the simulations at points (d)–(g) in figure 7 are mainly divergent, which is consistent with most results in tables 2 and 3. However, the simulation at point (d) in the 'λ1' and 'λ2' columns in table 2 and simulations at point (g) in the 'λ' and 'λ2' columns in table 3 are stable, which support that the stability condition of the viscous term proposed in this paper is just a sufficient condition rather than a necessary condition.

Thirdly, one can find that in tables 2 and 3, the relative error of simulations at point (c) in the 'G1' and 'G2' columns is smaller than that in the 'λ1' and 'λ2' columns. So the Laplacian model based on the Gaussian function is more accurate than the conventional Laplacian model with the λ parameter. Yet, the former is more unstable than the latter by comparing the number of divergent cases in the 'G1' and 'G2' columns with those in the 'λ1' and 'λ2' columns.

5. Concluding remarks

In this paper, two conditions for the setup of time step (Δt) and initial particle distance (l0) in viscous shear flow simulation by the MPS method are prescribed. These two conditions are especially for the flow simulation where viscous forces are dominant or comparable with other forces by the MPS method. The stability condition of the viscosity term can provide stable simulation, which has been validated by the simulated results of Poiseuille flow. The accuracy condition of the viscosity term can produce the most accurate simulation for steady laminar flow, which is also shown by the results of Poiseuille flow. The accuracy condition of the viscosity term can also provide a realistic and accurate simulation of the molecular viscosity term for the unsteady turbulent flow but the computational cost is very high. So we will focus on parallelizing the MPS method. On the other hand, the stability condition of the viscosity term can help to release the computational load by introducing extra numerical viscosity. In these simulations, a turbulent model is expected, which is also future work.

Acknowledgments

The research is supported by the National Science Foundation of China (grant no. 50976087) and the Specialized Research Fund for the Doctoral Program of Higher Education (grant no. 20090201110001).

Please wait… references are loading.
10.1088/0169-5983/45/3/035501