Research Article | Open Access

Ping Zhang, Xiaohua Zhang, "Numerical Modeling of Stokes Flow in a Circular Cavity by Variational Multiscale Element Free Galerkin Method", *Mathematical Problems in Engineering*, vol. 2014, Article ID 451546, 7 pages, 2014. https://doi.org/10.1155/2014/451546

# Numerical Modeling of Stokes Flow in a Circular Cavity by Variational Multiscale Element Free Galerkin Method

**Academic Editor:**Alex Elías-Zúñiga

#### Abstract

The variational multiscale element free Galerkin method is extended to simulate the Stokes flow problems in a circular cavity as an irregular geometry. The method is combined with Hughes’s variational multiscale formulation and element free Galerkin method; thus it inherits the advantages of variational multiscale and meshless methods. Meanwhile, a simple technique is adopted to impose the essential boundary conditions which makes it easy to solve problems with complex area. Finally, two examples are solved and good results are obtained as compared with solutions of analytical and numerical methods, which demonstrates that the proposed method is an attractive approach for solving incompressible fluid flow problems in terms of accuracy and stability, even for complex irregular boundaries.

#### 1. Introduction

The Stokes flow can be considered for a range of engineering processed and natural phenomena, and numerical solution of the Stokes equations for incompressible viscous fluids has been usually dominated by meshbased methods such as finite difference method (FDM), finite volume method (FVM), and finite element method (FEM). Although these methods have been successfully applied to computational fluid dynamics problems, their accuracy depends critically on mesh quality and they have many difficulties in dealing with some complex fluid flow problems. These difficulties can be overcome by meshless of mesh-free methods, which have attracted considerable interest over the past few years. Several review articles [1, 2] and books [3–5] which cover the classification, application, and computer implementation of meshless methods have been reported. In recent years, the meshless methods have become an extensive area of research for solving fluid dynamics problems.

It is well known that the main issues germane to the development of a successful solver for incompressible Stokes flow are proper treatments of incompressibility. Improper treatments may result in spurious oscillations for velocity or pressure solutions. For meshless methods based on Galerkin formulations, the same problems will arise from the treatment of incompressibility constraint [6]; that is, they must either satisfy or avoid the Babuŝka-Brezzi condition. So far, a number of stabilization methods have been developed to overcome numerical problems for meshless methods. The ways to deal with the Babuŝka-Brezzi condition for most of meshless methods based on Galerkin weak from are used with the ideas of finite element method (FEM) to solve such problems, such as streamline-upwind Petrov-Galerkin [7, 8], pressure-stabilizing Petrov-Galerkin (PSPG) [9, 10], Galerkin least-squares (GLS) [11, 12], projection or fractional step method [13, 14] (e.g., characteristic-based split algorithm), and finite calculus approach (FIC) [15, 16]. However, these methods are related to a stabilization parameter and it depends on the problem under consideration and the chosen numerical method. A detailed overview of stabilization approaches for meshless methods can refer to [17].

In the mid-1990s Hughes revisited the origins of the stabilization methods from a variational multiscale viewpoint and presented the variational multiscale method. In this method different stabilization methods appear as special cases of the underlying subgrid modeling concept [18]. Compared with other stabilization methods, the Hughes’ variational multiscale method can get stabilization parameter naturally and allow the equal order interpolation for the velocity and pressure which is convenient for programming. In order to take advantage of meshless method and variational multiscale methods, Zhang et al. combined the meshless method and variational multiscale method which is called variational multiscale element free Galerkin method (VMEFG) for Stokes problems [19], water wave problems [20], and magnetohydrodynamics flow problems [21]. The VMEFG method allows equal order interpolations for the velocity and the pressure field, which are easy to implement but can violate the celebrated Babuŝka-Brezzi condition. Meanwhile, the structure of the stabilization terms is derived consistently and the definition of the stabilization tensor is obtained naturally via the solution of the fine-scale problem. In this paper VMEFG method is extended to simulation of Stokes flow with complex domain, such as in a circular cavity. Study of slow and viscous flow in a cavity with rotating boundaries provides useful information on flow behavior and distributive mixing, which has many industrial applications [22].

An outline of the paper is as follows. In Section 2, the fundamental principle of EFG method is briefly described. Then, the VMEFG method for the Stokes fluid flow is expressed. In Section 4, numerical examples are presented to demonstrate the accuracy of our method. The paper ends with concluding remarks in Section 5.

#### 2. Review on the Element Free Galerkin Method

In the EFG method, the field variable is approximated by moving least squares (MLS) approximation, which consists of three parts: a basis function, a group of nonconstant coefficients, and a weight function associated with each node. According to the MLS approximation, the unknown function can be written as follows [3]: where is a complete polynomial basis of order and is a vector of coefficients (to be determined) which is a function of the space coordinate . In the paper, we choose linear basis to approximate velocity and pressure.

Assume that we have known the nodal value for the function at nodes in the domain Ω. Then the unknown vector in (1) can be obtained at any point by minimizing the following weighted, discrete error norm:

Here is the number of nodes in the support domain of in which the weight function . Usually, are functions of a distant parameter where denotes the influence domain for node . Generally, where is the dimensionless size of influence domain and is the distance between two adjacent nodes. The influence domain defines the degree of continuity between the nodes and the bandwidth of the system matrices; thus, it is crucial to solution accuracy and computational cost.

Minimization of (2) with respect to then yields the following system of linear equations for the vector : where is the vector of nodal unknowns; matrices and are defined as

If is invertible, solving (3), and then substituting back into (1), the MLS approximant can be defined as where is the vector of MLS shape functions.

In general, the use of the MLS approximation produces shape functions that do not possess the Kronecker Delta condition property; that is, . Thus, essential boundary conditions cannot be imposed as easily as that in the standard FEM. Until now, the implementation of essential boundary conditions is still an open research topic for meshless methods [23, 24]. In the paper, a simple technique proposed by Zhang et al. [20] is utilized; that is, the nodal influence domain of meshless method is extended to have arbitrary polygon shape. This technique makes MLS approximation function possess interpolation property as approach to 1 [25] and is easier to solve problems with complex area.

#### 3. The VMEFG Method for Stokes Problem

##### 3.1. The Stokes Problem and Its Standard Weak Form

The steady-state problem of a Newtonian, viscous, and incompressible fluid is governed by the Stokes equations: where the symbols , , and represent the Laplacian, gradient, and divergence operators, respectively; is the velocity vector; is the kinematic pressure; is the kinematic viscosity; and is the body force per unit mass. For the sake of simplicity, the Stokes equations are subject to the no-slip boundary condition

Let and represent the weight functions for velocity and pressure , respectively; then based on the Galerkin formulation, the standard weak form of the problem (6) is given as follows: where .

The VMEFG method essentially contains three steps for the simulation of Stokes fluid flow. In the first step, the velocity field is decomposed into coarse scale and fine scale. In the second step, it uses bubble function to determine fine scale solution analytically. In the third step, it substitutes the fine scale solution into coarse scale problem and then obtains the coarse scale solution numerically. In the following, a brief introduction of VMEFG is presented and more details about the VMEFG can refer to [19, 20].

##### 3.2. The Decomposition of the Standard Weak Form

Assume that the velocity and its weight function can be decomposed into coarse scale and fine scale, respectively; namely, where and are the coarse scale and fine scale for velocity and and are the coarse scale and fine scale for weight function , respectively. Meanwhile, we assume there exists a linearity between coarse scale and fine scale [18].

Similar to the literature [20], we further assume that and , although nonzero within background integral cell , vanish identically over the boundaries when the influence factor approaches to 1: Substituting (9) into the standard variational form (8), we get Next, employing the linearity between coarse scale and fine scale , (11) can be split into coarse scale problem and fine scale problem. The coarse scale problem and fine scale problem can be written as follows:

Subsequently, we will solve the fine scale problem (14) first to obtain the fine scale solution and then substitute it into the coarse fine problems (12) and (13), thereby eliminating the explicit appearance of the fine scale while still modeling its effect.

##### 3.3. The Solution of the Fine Scale Problem

In order to obtain fine scale solution analytically from , using the bubble function in each , finally we can obtain the fine scale solution over the as follows: where

Here, is a identity matrix, both and are vectors of gradient of the bubble function, and indicates the dimension of the problem.

##### 3.4. The Solution of the Coarse Scale Problem

Once we have obtained the fine scale solution , substituting it into the coarse fine problem, we get where

Compared with the standard variational form (see (8)), it is important to note that the third term on the left has appeared in (17) and the second term on the left appeared in (18) owing to the assumption that there exists fine scale in the problem, which in fact models the effect of the fine scale.

#### 4. Numerical Examples

##### 4.1. A Circular Cavity

The flow domain considered here is the unit circle as shown in Figure 1. The upper half of the boundary is assumed to move with a unit tangential velocity in the counterclockwise direction, while the lower half is set with no-slip and impervious Dirichlet conditions. This popular benchmark problem is used to demonstrate whether the algorithm is robust, and the numerical results will be compared with the analytical solutions that are given as follows [26, 27]:

For this problem, 905 irregular nodes distribution is employed as shown in Figure 2. Due to the fact that VMEFG method needs background mesh to calculate the integral, for example, (17), the triangle background mesh which is similar to the finite element is used in the paper for computational convenience, and seven Gaussian points are used in each triangular region for domain integral. The results obtained by VMEFG are shown as the - and -velocity contours, as well as streamline in Figures 3, 4, and 5, respectively. It can be seen that the presented results are in excellent agreement with the reported results [26, 27]. To demonstrate further the accuracy of the VMEFG method, Figure 6 shows the comparison of -velocity profile along the vertical line with the analytical solution. It can be noted that the results are very close to the analytical solution.

##### 4.2. A Circular Cavity with Eccentric Rotating Cylinder

The second example considered here is a Stokes flow confined in the two eccentric cylinders. The geometry and boundary conditions of the problem are sketched in Figure 7. The outer cylinder with radius centers on the original, and the inner cylinder with has center lying on (−0.25, 0). No-slip boundary conditions are specified on the fluid-solid interfaces. The parameters and are defined for the circumferential velocities of the outer and inner cylinders, respectively. In this study, the outer cylinders rotate clockwise and the inner cylinder is kept stationary (, ). This problem was also analyzed by a boundary-type meshless method of fundamental solutions (MFS) in [28].

In this study, 2423 nodes are irregularly distributed in the computational geometry as shown in Figure 8. The illustrations on the distributions of - and -velocity contours, as well as streamline, are shown in Figures 9, 10, and 11. It can be seen that these exhibit the symmetric characteristics of the flow variables as expected for the Stokes flow. To give a more quantitative understanding of accuracy, the comparison of computed -velocity along with the results obtained by MFS is shown in Figure 12. It can be noted that the results obtained by VMEFG are in good agreement with the results by Young et al. [28].

#### 5. Conclusion

In the paper, VMEFG method is extended to analyze two-dimensional Stokes flow in an irregular geometry. Results are compared with available analytical and other numerical results. And the results show that VMEFG is accurate and robust, even for complex irregular geometry.

#### Conflict of Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.

#### Acknowledgments

The support from the Natural Sciences Foundation of China (nos. 11102101 and 11171181), the Academic Mainstay Foundation of Hubei Province of China (nos. T201103 and Q20111208), and the Science Foundation of China Three Gorges University (no. KJ2009B058) is fully acknowledged.

#### References

- T. Belytschko, Y. Krongauz, D. Organ, M. Fleming, and P. Krysl, “Meshless methods: an overview and recent developments,”
*Computer Methods in Applied Mechanics and Engineering*, vol. 139, no. 1–4, pp. 3–47, 1996. View at: Publisher Site | Google Scholar - V. P. Nguyen, T. Rabczuk, S. Bordas, and M. Duflot, “Meshless methods: a review and computer implementation aspects,”
*Mathematics and Computers in Simulation*, vol. 79, no. 3, pp. 763–813, 2008. View at: Publisher Site | Google Scholar | Zentralblatt MATH | MathSciNet - G. R. Liu and Y. T. Gu,
*An Introduction to Meshfree Methods and their Programming*, Springer, Amsterdam, The Netherlands, 2005. - G. R. Liu,
*Mesh Free Methods: Moving Beyond the Finite Element Method*, CRC Press, Boca Raton, Fla, USA, 2002. View at: MathSciNet - S. N. Atluri and S. P. Shen,
*The Meshless Local Petrov-Galerkin (MLPG) Method*, Tech Science Press, Encino, Calif, USA, 2002. - A. Huerta, Y. Vidal, and P. Villon, “Pseudo-divergence-free element free Galerkin method for incompressible fluid flow,”
*Computer Methods in Applied Mechanics and Engineering*, vol. 193, no. 12-14, pp. 1119–1136, 2004. View at: Publisher Site | Google Scholar | Zentralblatt MATH - T. P. Fries and H. G. Matthies, “A stabilized and coupled meshfree/meshbased method for the incompressible Navier-Stokes equations. I. STAbilization,”
*Computer Methods in Applied Mechanics and Engineering*, vol. 195, no. 44-47, pp. 6205–6224, 2006. View at: Publisher Site | Google Scholar | MathSciNet - T. Fries and H. G. Matthies, “A stabilized and coupled meshfree/meshbased method for the incompressible Navier-Stokes equations. Part II. Coupling,”
*Computer Methods in Applied Mechanics and Engineering*, vol. 195, no. 44–47, pp. 6191–6204, 2006. View at: Publisher Site | Google Scholar | MathSciNet - H. Lin and S. N. Atluri, “The meshless local Petrov-Galerkin ({MLPG}) method for solving incompressible Navier-Stokes equations,”
*Computer Modeling in Engineering and Sciences*, vol. 2, no. 2, pp. 117–142, 2001. View at: Google Scholar | MathSciNet - Q. L. Duan and X. K. Li, “A meshless PSPG formulation for the incompressible Stokes flow,”
*Chinese Journal of Computational Mechanics*, vol. 24, no. 2, pp. 192–214, 2007. View at: Google Scholar - X. K. Zhang, K. C. Kwon, and S. K. Youn, “Least-squares meshfree method for incompressible Navier-Stokes problems,”
*International Journal for Numerical Methods in Fluids*, vol. 46, no. 3, pp. 263–288, 2004. View at: Publisher Site | Google Scholar - Z. C. Xuan and X. K. Zhang, “Simulation of Stokes flow over microelectrodes with least-squares meshfree method,”
*Simulation Modelling Practice and Theory*, vol. 16, no. 3, pp. 294–314, 2008. View at: Publisher Site | Google Scholar - C. You, Y. Qiu, X. Xu, and D. Xu, “Numerical simulations of viscous flows using a meshless method,”
*International Journal for Numerical Methods in Fluids*, vol. 58, no. 7, pp. 727–741, 2008. View at: Publisher Site | Google Scholar - A. Shamekhi and K. Sadeghy, “On the use of characteristic-based split meshfree method for solving flow problems,”
*International Journal for Numerical Methods in Fluids*, vol. 56, no. 10, pp. 1885–1907, 2008. View at: Publisher Site | Google Scholar | Zentralblatt MATH | MathSciNet - X. K. Li and Q. L. Duan, “Meshfree iterative stabilized Taylor-Galerkin and characteristic-based split (CBS) algorithms for incompressible N-S equations,”
*Computer Methods in Applied Mechanics and Engineering*, vol. 195, no. 44–47, pp. 6125–6145, 2006. View at: Publisher Site | Google Scholar - E. Oñate, S. Idelsohn, O. C. Zienkiewicz, and R. L. Taylor, “A finite point method in computational mechanics. Applications to convective transport and fluid flow,”
*International Journal for Numerical Methods in Engineering*, vol. 39, no. 22, pp. 3839–3886, 1996. View at: Google Scholar | MathSciNet - T. P. Fries and H. G. Matthies, “A review of Petrov-Galerkin stabilization approaches and an extension to meshfree methods,” http://digisrv-1.biblio.etc.tu-bs.de:8080/docportal/servlets/MCRFileNodeServlet/DocPortal_derivate_00001549/Document.pdf;jsessionid=13366DF5A0AD985438FA12988E5D79A4. View at: Google Scholar
- A. Masud and R. A. Khurram, “A multiscale finite element method for the incompressible Navier-Stokes equations,”
*Computer Methods in Applied Mechanics and Engineering*, vol. 195, no. 13-16, pp. 1750–1777, 2006. View at: Publisher Site | Google Scholar | Zentralblatt MATH | MathSciNet - L. Zhang, J. Ouyang, X. Zhang, and W. Zhang, “On a multi-scale element-free Galerkin method for the Stokes problem,”
*Applied Mathematics and Computation*, vol. 203, no. 2, pp. 745–753, 2008. View at: Publisher Site | Google Scholar | MathSciNet - L. Zhang, J. Ouyang, T. Jiang, and C. Ruan, “Variational multiscale element free Galerkin method for the water wave problems,”
*Journal of Computational Physics*, vol. 230, no. 12, pp. 5045–5060, 2011. View at: Publisher Site | Google Scholar | Zentralblatt MATH | MathSciNet - L. Zhang, J. Ouyang, and X. H. Zhang, “The variational multiscale element free Galerkin method for MHD flows at high Hartmann numbers,”
*Computer Physics Communications*, vol. 184, no. 4, pp. 1106–1118, 2013. View at: Publisher Site | Google Scholar | MathSciNet - S. Soleimani Kutanaei, N. Roshan, A. Vosoughi, A. Barari, and S. Soleimani, “Numerical solution of stokes flow in a circular cavity using mesh-free local RBF-DQ,”
*Engineering Analysis with Boundary Elements*, vol. 36, no. 5, pp. 633–638, 2012. View at: Publisher Site | Google Scholar | MathSciNet - N. Zhao and H. Ren, “The interpolating element-free Galerkin method for 2D transient heat conduction problems,”
*Mathematical Problems in Engineering*, vol. 2014, Article ID 712834, 9 pages, 2014. View at: Publisher Site | Google Scholar | MathSciNet - X. Zhuang and Y. Cai, “A meshless local Petrov-Galerkin Shepard and least-squares method based on duo nodal supports,”
*Mathematical Problems in Engineering*, vol. 2014, Article ID 806142, 11 pages, 2014. View at: Publisher Site | Google Scholar | MathSciNet - X. H. Zhang, P. Zhang, and L. Zhang, “An improved meshless method with almost interpolation property for isotropic heat conduction problems,”
*Engineering Analysis with Boundary Elements*, vol. 37, no. 5, pp. 850–859, 2013. View at: Publisher Site | Google Scholar | MathSciNet - F. Tan, Y. Zhang, and Y. Li, “Development of a meshless hybrid boundary node method for Stokes flows,”
*Engineering Analysis with Boundary Elements*, vol. 37, no. 6, pp. 899–908, 2013. View at: Publisher Site | Google Scholar | Zentralblatt MATH - X. Li, “Meshless analysis of two-dimensional Stokes flows with the Galerkin boundary node method,”
*Engineering Analysis with Boundary Elements*, vol. 34, no. 1, pp. 79–91, 2010. View at: Publisher Site | Google Scholar | Zentralblatt MATH | MathSciNet - D. L. Young, C. L. Chiu, C. M. Fan, C. C. Tsai, and Y. C. Lin, “Method of fundamental solutions for multidimensional Stokes equations by the dual-potential formulation,”
*European Journal of Mechanics B: Fluids*, vol. 25, no. 6, pp. 877–893, 2006. View at: Publisher Site | Google Scholar | MathSciNet

#### Copyright

Copyright © 2014 Ping Zhang and Xiaohua Zhang. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.