Hostname: page-component-cd9895bd7-p9bg8 Total loading time: 0 Render date: 2024-12-25T07:15:17.954Z Has data issue: false hasContentIssue false

FURTHER ACCURACY VERIFICATION OF A 2D ADAPTIVE MESH REFINEMENT METHOD USING STEADY FLOW PAST A SQUARE CYLINDER

Published online by Cambridge University Press:  19 November 2024

R. LAL*
Affiliation:
School of Mathematical and Computing Sciences, Fiji National University, Lautoka, Fiji
Z. LI
Affiliation:
School of Computing and Mathematics, Charles Sturt University, Thurgoona, NSW 2640, Australia; e-mail: jali@csu.edu.au
Rights & Permissions [Opens in a new window]

Abstract

The study applies a two-dimensional adaptive mesh refinement (AMR) method to estimate the coordinates of the locations of the centre of vortices in steady, incompressible flow around a square cylinder placed within a channel. The AMR method is robust and low cost, and can be applied to any incompressible fluid flow. The considered channel has a blockage ratio of $1/8$. The AMR is tested on eight cases, considering flows with different Reynolds numbers ($5\le Re\le 50$), and the estimated coordinates of the location of the centres of vortices are reported. For all test cases, the initial coarse meshes are refined four times, and the results are in good agreement with the literature where a very fine mesh was used. Furthermore, this study shows that the AMR method can capture the location of the centre of vortices within the fourth refined cells, and further confirms an improvement in the estimation with more refinements.

Type
Research Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https://creativecommons.org/licenses/by/4.0), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2024. Published by Cambridge University Press on behalf of Australian Mathematical Publishing Association Inc.

1. Introduction

In the domain of computational fluid dynamics (CFD), the pursuit of simulating complex fluid flows with high accuracy and efficiency has been a driving force behind technological advancements in various industries, from aerospace and automotive engineering to environmental science and biomedical research. However, fine discrete computational meshes are often used to develop accurate numerical solutions for CFD problems using high-performance computing. Accurate numerical solutions usually require higher-order discretization schemes for complex partial differential equations, which are prone to produce oscillations [Reference Hannoun and Alexiades10].

An important technique that has revolutionized the capabilities of complex CFD simulations, to improve the efficiency of flow solvers and the accuracy of numerical solutions, is adaptive mesh refinement (AMR). AMR is a computational approach that enables users to optimize their simulations by dynamically adjusting the resolution of the computational mesh in response to evolving flow features and phenomena, and reducing the computational cost [Reference Li15].

Early studies in the field of adaptive mesh refinement for CFD problems can be traced to the 1980s and 1990s, including the works of Berger and Oliger [Reference Berger and Oliger4], Bell et al. [Reference Bell, Berger, Saltzman and Welcome2], Friedel et al. [Reference Friedel, Grauer and Marliani9], and Berger and Leveque [Reference Berger and Leveque3]. The development of AMR has continued to evolve with advancements in numerical methods, computer hardware and software tools, and it has been applied to a variety of fluid dynamics and computational science problems [Reference Antepara, Balcázar and Oliva1].

Li [Reference Li13] developed a two-dimensional (2D) AMR method derived from the qualitative theory of differential equations. The AMR method refines a given mesh based on the numerically computed velocity fields. The efficiency and accuracy of the AMR method has been verified using the accurate locations of singular points, asymptotic lines and closed streamlines [Reference Li12], and against widely used CFD benchmark experiments including the lid-driven cavity flow [Reference Lal and Li11], the 2D unsteady flow past a square cylinder [Reference Li14], the backward-facing step flow [Reference Li and Li17] and 2D flow over a wall-mounted plate [Reference Li and Lal16]. In particular, the AMR method has been shown to be useful for capturing localized flow features such as accurate location of the centre of vortices within the refined cells [Reference Lal and Li11, Reference Li and Lal16]. The AMR method is robust [Reference Lal and Li11], low-cost [Reference Li15] and can be applied to any incompressible fluid flow [Reference Li, Mallinson, Yangbo, Kaoru, Cluckie and Smedt18]. The previous works, for example, [Reference Li14, Reference Li and Li17], considered the accuracy of the 2D AMR method with two refinements and used the finite volume methods. We showed that the twice-refined cells contain the centre of vortices. Since the 2D AMR can be applied a finite number of times, more accurate centre of vortices can be obtained if the numerical velocity fields are accurate enough and more refinements are carried out. The accuracy of the AMR method depends only on the accuracy of the numerical methods used.

Flow around a square cylinder is a classic CFD problem and has been studied by many researchers (see, for example, [Reference Dhiman, Chhabra and Eswaran7, Reference Erturk and Gokcol8, Reference Perumal, Kumar and Dass19]). The flow pattern characteristics are related to factors such as the Reynolds number ( $Re$ ) of fluid, the dimension of the square cylinder and the space size. The complex flow characteristics in the vicinity of a square cylinder have always been a focus area and a challenge in academic research. The outcomes of this study can be applied to problems in aerodynamics, wind engineering and electronics cooling. One of the examples is the design of a building. The flow around a building has high- and low-pressure areas. These areas significantly affect building structural integrity, energy efficiency and indoor comfort.

It is noted in the literature that the flow around a square cylinder is steady for $5\le Re < 60$ and a fixed blockage ratio of $1/8$ [Reference Dhiman, Chhabra and Eswaran7, Reference Perumal, Kumar and Dass19]. Accordingly, the present study aims to use the AMR method of Li [Reference Li13] and provide estimates of coordinates of the locations of the centre of vortices for steady incompressible flow past a square cylinder. The AMR method is tested on eight cases considering flows with different Reynolds numbers, that is, $5\le Re\le 50$ . Hence, the main contribution of our work is showing the accuracy of the AMR method using four refinements and the finite-element method. Furthermore, we show that the AMR method can capture the location of the centre of vortices within the fourth refined cell. The efficiency of the AMR method in identifying accurate locations of the centre of vortices is validated against the available numerical results found in the literature in which a much finer mesh was used for the study. The methods in the literature investigating flow around a square cylinder (for example, [Reference Erturk and Gokcol8]) are limited to steady incompressible flow only. However, the AMR used in this paper can be applied to both steady and unsteady incompressible flows.

The remainder of this paper is structured as follows. Section 2 outlines the methodology, presenting the governing equations, the computational mesh and the flow solver. The numerical results of the eight test cases and the accuracy verification of the 2D AMR method are presented and discussed in Section 3. The conclusion follows in Section 4.

2. Methodology

This section briefly describes the governing equations, the computational domain and the mesh structure, and the flow solver.

2.1. Governing equations

We consider the finite-element discretizations of the 2D unsteady, incompressible Navier–Stokes equations [Reference Cannon and Knightly5], which contain the continuity equation and the momentum equations in two directions defined by

$$ \begin{align*} \begin{aligned} \nabla\cdot \mathbf{V}&=0,\\ \frac{\partial\mathbf{V}}{\partial t}+\mathbf{V}\cdot\nabla\mathbf{V}&=-\frac{1}{\rho}\nabla P+\nu\nabla^2\mathbf{V}, \end{aligned} \end{align*} $$

where $\mathbf {V}=(u, v)$ denotes the velocity field in 2D with u and v as the velocity components in the x- and y-directions, respectively, $\nu $ is the kinematic viscosity, $\rho $ is the fluid density, and P represents the scalar pressure.

2.2. Computational domain and boundary conditions

The geometry of the computational domain was set as a 2D rectangular channel with length L and width H, as shown in Figure 1. The two ends of the channel were the inlet and outlet. A square cylinder with a side length of $D=1$ is placed in the middle of the channel centred on the y-axis such that the blockage ratio of the channel, $D/H$ , equals $1/8$ . To ensure that the distance from the computational inlet to the cylinder does not influence the accuracy of the numerical solution, an essential inlet location of approximately 10 has been reported [Reference Sohankar, Norberg and Davidson20]. Thus, we set the inlet length $L_1=10$ . The channel length L is set to 30.

Figure 1 Schematic diagram of the computational domain and boundary conditions.

The boundary conditions used are described in Figure 1. Following [Reference Erturk and Gokcol8], the inlet velocity field was specified as a parallel flow with a parabolic horizontal component given by $u=U(y)= 1-(y-4)^2/16$ . The outlet was set as the free outflow boundary ( $P=0$ ). The channel’s top and bottom boundaries and the square cylinder walls are imposed as rigid surfaces with the no-slip condition ( $u=v=0$ ). The Reynolds number is considered the main parameter that changes the flow behaviour and is defined as $Re=U_{\max }D/\nu $ , where $U_{\max }=1$ and $\nu $ is the kinematic coefficient of the viscosity [Reference Erturk and Gokcol8, Reference Perumal, Kumar and Dass19]. Eight test cases for flows with different Reynolds numbers ${(Re =5, 10, 15, 20, 25, 30, 40}$ and 50) are considered in this study.

2.3. Computational mesh and the flow solver

For all test cases involving different Reynolds numbers, the spatial step size in both the x and y directions is $1/4$ . The initial mesh ( $\text {Mesh}_0$ ) has 3824 quadrilateral cells (size $1/4\times 1/4$ ) with 3984 nodes. Figure 2 shows the initial mesh $\text {Mesh}_0$ . The Finite Element Analysis simulation Toolbox (FEATool, version 1.16.3, https://www.featool.com/) in MATLAB (R2023a) was used to numerically solve the unsteady 2D Navier–Stokes equations [Reference Cannon and Knightly5] for the eight test cases.

Figure 2 The initial mesh ( $\text {Mesh}_0$ ) of 3824 quadrilateral cells with 3984 nodes.

This study aims to verify the accuracy of the existing adaptive mesh refinement method with accurate numerical velocity fields. The time-dependent Navier–Stokes equations are solved using FEATool until both velocity fields and pressures converge to a steady state. The highest-order scheme implemented in FEATool is a second-order implicit Crank–Nicolson time-stepping scheme [Reference Crank and Nicolson6], which was used for the time-dependent settings. We assumed that the convergence is achieved when the numerical solutions (velocity fields) are computed with residuals smaller than $10^{-10}$ for both u and v. Thus, the time-dependent simulations terminated when either the central processing unit (CPU) time reached the specified simulation time or the normed changes in the dependent solution variables were smaller than the time-stopping criteria (tolerance = $10^{-10}$ ), and at the same time, we make sure velocity fields and pressure show the steady state. Therefore, in this work, only steady-state solutions are considered.

3. Numerical results and accuracy verification

In the present study, we apply the same AMR method from Li and Lal [Reference Li and Lal16]. We refer the reader to the work of Li and Lal [Reference Li and Lal16, Section 3] for a detailed description of the method. A cell-by-cell AMR approach is followed on the quadrilateral meshes. A cell is refined by connecting the mid-points of opposite sides into four equally smaller quadrilateral cells. Applying the AMR method to the initial mesh, $\text {Mesh}_0$ , produces the first refined mesh, $\text {Mesh}_1$ , and by repeating the procedure three more times, we obtain the fourth refined mesh, $\text {Mesh}_4$ . The coordinates of the centre of the isolated refined cells in the area of interest are then used to estimate the centre of vortices.

The results of the eight test cases are presented in this section. We verify the accuracy of the AMR method by comparing it with the reference centre of vortices, $(x_{\text {ref}}, y_{\text {ref}})$ , presented by Erturk and Gokcol [Reference Erturk and Gokcol8]. There, the authors used the streamfunction and vorticity formulation of the Navier–Stokes equations and employed a very fine mesh with close to 1 040 000 nodes.

3.1. Refined meshes

Figure 3 shows the fourth refined mesh ( $\text {Mesh}_4$ with 13 223 nodes) for the flow with $Re = 5$ . The mesh is refined mostly near the channel’s top and bottom boundaries and near the square cylinder.

Figures 4(a)–4(e) show the zoomed-in sections of $\text {Mesh}_0$ to $\text {Mesh}_4$ in the vicinity of the square cylinder for the flow with $Re = 5$ . In $\text {Mesh}_0$ , a cell to the right of the square cylinder is marked with a red square. The first refinement of the cell marked with a red square is shown in the once-refined mesh, $\text {Mesh}_1$ . Similarly, the cell’s second, third and fourth refinements are shown in $\text {Mesh}_2$ , $\text {Mesh}_3$ and $\text {Mesh}_4$ , respectively. Figure 4(f) shows the zoomed-in section of the cell marked with a red square in $\text {Mesh}_4$ , which contains an isolated refined cell. The coordinates of the isolated refined cell’s centre $(X_1, Y_1)$ are used to estimate the centre of the vortices. The centre is marked with a blue dot in Figure 4(f) for illustration purposes. The marked red boxes in Figure 4(a)–4(e) demonstrate that the AMR method can capture the location of the centre of vortices within the fourth refined cells.

Figure 3 Fourth refined mesh, $\text {Mesh}_4$ , for the flow with $Re=5$ . Number of nodes = 13 223.

Figure 4 Flow with $Re=5$ : (a)–(e) zoomed-in sections of $\text {Mesh}_0$ to $\text {Mesh}_4$ ; (f) zoomed-in section of the cell marked with a red square in panel (e), where the blue dot represents the centre of the vortices’ estimated location.

Erturk and Gokcol [Reference Erturk and Gokcol8] illustrated that the coordinates of centres of location of the primary vortices are stated from the centre of the square cylinder, as shown in Figure 5. Hence, all estimated coordinates for the centres of vortices, $(x_1, y_1)$ , are the results of $(X_1, Y_1)-(10.5, 4)$ , where $(X_1, Y_1)$ is the coordinate of the centre of the isolated refined cell. The estimated centre of vortices for the flow with $Re=5$ is ${(x_1, y_1)=(0.609, 0.172)}$ . We note that the estimated coordinate of the centre of vortices obtained with $\text {Mesh}_4$ is in good agreement with $(x_{\text {ref}}, y_{\text {ref}})=(0.610, 0.180)$ as reported by Erturk and Gokcol [Reference Erturk and Gokcol8].

Figure 5 Schematic view of the location of coordinates $(x_1, y_1)$ of the primary vortices.

For the flow with the remaining cases, $10\le Re\le 50$ , a similar mesh refinements pattern, as for the flow with $Re=5$ , was observed, for example, $\text {Mesh}_4$ was refined mostly near the channel’s top and bottom boundaries, in the vicinity of the square cylinder and the horizontal centre line. It is observed that the x and y values of the coordinates of the centre of vortices gradually increase as the Reynolds numbers increase. The setting for the flows in this study is symmetric, but the refined meshes are not. For all the cases, the lack of symmetry in the refined meshes indicates the nonsymmetrical profile of the velocity field. Hence, the calculated velocity fields are not accurate enough. The number of nodes in $\text {Mesh}_4$ for the flow with $10\le Re\le 50$ ranged from 12 989 to 13 914, which were relatively similar to the case with $Re=5$ .

3.2. Estimated location of centre of vortices

Table 1 presents the number of nodes in the fourth refined meshes and the estimated coordinates of vortex centres for the eight test cases. The table also compares the estimated coordinates with the reference centre locations, as reported by Erturk and Gokcol [Reference Erturk and Gokcol8]. For each case, the errors $e_x=x_1-x_{\text {ref}}$ and $e_y=x_1-y_{\text {ref}}$ were found to be within 5%. The errors relative to the reference vortex centres, computed as

$$ \begin{align*}\frac{\lVert(x_1, y_1)-(x_{\text{ref}}, y_{\text{ref}}) \rVert}{\lVert (x_{\text{ref}}, y_{\text{ref}}) \rVert}, \end{align*} $$

were less than 2.5% for all cases. The results obtained by the present method are in good agreement with those obtained by Erturk and Gokcol [Reference Erturk and Gokcol8] using a finer mesh. Moreover, we note that further mesh refinements may be needed to obtain coordinates as close as the actual locations of the vortex centres. Figure 6 shows streamline contours and the flow features near the vortex centre for the case with $Re=5$ and $Re=50$ . The red dots in Figure 6 indicate the location of the centre of vortices.

Table 1 Number of nodes in $\text {Mesh}_4$ , estimated centre locations, $(x_1, y_1)$ , and the computed errors relative to the reference vortex centres, $(x_{\text {ref}}, y_{\text {ref}})$ . The number of nodes in [Reference Erturk and Gokcol8] is approximately 1 040 000.

Figure 6 Streamline contours. The red dots indicate the estimated vortex location.

4. Conclusion

In this study, we verify the accuracy of the 2D AMR with four refinements using the steady flow past a square cylinder. The accuracy is demonstrated by the estimated location of the centre of vortices contained in the first, second, third and fourth refined cells. Since the 2D AMR can be applied a finite number of times, we can perform more refinements if the results are not accurate enough for some cases.

References

Antepara, O., Balcázar, N. and Oliva, A., “Tetrahedral adaptive mesh refinement for two-phase flows using conservative level-set method”, Internat. J. Numer. Methods Fluids 93 (2021) 481503; doi:10.1002/fld.4893.CrossRefGoogle Scholar
Bell, J., Berger, M., Saltzman, J. and Welcome, M., “Three-dimensional adaptive mesh refinement for hyperbolic conservation laws”, SIAM J. Sci. Comput. 15 (1994) 127138; doi:10.1137/0915008.CrossRefGoogle Scholar
Berger, M. J. and Leveque, R. J., “Adaptive mesh refinement using wave-propagation algorithms for hyperbolic systems”, SIAM J. Numer. Anal. 35 (1998) 22982316; doi:10.1137/S0036142997315974.CrossRefGoogle Scholar
Berger, M. J. and Oliger, J., “Adaptive mesh refinement for hyperbolic partial differential equations”, J. Comput. Phys. 53 (1984) 484512; doi:10.1016/0021-9991(84)90073-1.CrossRefGoogle Scholar
Cannon, J. R. and Knightly, G. H., “Some remarks on a quasi-steady-state approximation of the Navier–Stokes equation”, ANZIAM J. 29 (1988) 440447; doi:10.1017/S0334270000005932.Google Scholar
Crank, J. and Nicolson, P., “A practical method for numerical evaluation of solutions of partial differential equations of the heat-conduction type”, Adv. Comput. Math. 6 (1996) 207226; doi:10.1007/BF02127704.CrossRefGoogle Scholar
Dhiman, A. K., Chhabra, R. P. and Eswaran, V., “Flow and heat transfer across a confined square cylinder in the steady flow regime: effect of Peclet number”, Int. J. Heat Mass Transf. 48 (2005) 45984614; doi:10.1016/j.ijheatmasstransfer.2005.04.033.CrossRefGoogle Scholar
Erturk, E. and Gokcol, O., “High Reynolds number solutions of steady incompressible 2-D flow around a square cylinder confined in a channel with 1/8 blockage ratio”, Int. J. Mech. Eng. Technol. 9 (2018) 452463; https://iaeme.com/Home/article_id/IJMET_09_13_047.Google Scholar
Friedel, H., Grauer, R. and Marliani, C., “Adaptive mesh refinement for singular current sheets in incompressible magnetohydrodynamic flows”, J. Comput. Phys. 134 (1997) 190198; doi:10.1006/jcph.1997.5683.CrossRefGoogle Scholar
Hannoun, N. and Alexiades, V., “Issues in adaptive mesh refinement implementation”, Electron. J. Differential Equations 15 (2007) 141151; https://eudml.org/doc/127549.Google Scholar
Lal, R. and Li, Z., “Sensitivity analysis of a mesh refinement method using the numerical solutions of 2D lid-driven cavity flow”, J. Math. Chem. 53 (2015) 844867; doi:10.1007/s10910-014-0461-7.CrossRefGoogle Scholar
Li, Z., “An adaptive streamline tracking method for two-dimensional CFD velocity fields based on the law of mass conservation”, J. Flow Vis. Image Process. 13 (2006) 114; doi:10.1615/JFlowVisImageProc.v13.i1.10.CrossRefGoogle Scholar
Li, Z., “An adaptive two-dimensional mesh refinement method based on the law of mass conservation”, J. Flow Vis. Image Process. 15 (2008) 1733; doi:10.1615/JFlowVisImageProc.v15.i1.20.CrossRefGoogle Scholar
Li, Z., “Analysis of 2D unsteady flow past a square cylinder at low Reynolds numbers with CFD and a mesh refinement method”, WSEAS Trans. Fluid Mech. 12 (2017) 150157; https://wseas.com/journals/articles.php?id=3156.Google Scholar
Li, Z., “Computational complexity of the algorithm for a 2D adaptive mesh refinement method using lid-driven cavity flows”, Comput. Therm. Sci. 9 (2017) 395403; doi:10.1615/ComputThermalScien.2017019769.CrossRefGoogle Scholar
Li, Z. and Lal, R., “Application of 2D adaptive mesh refinement method to estimation of the center of vortices for flow over a wall-mounted plate”, Int. J. Comput. Methods 20 (2023) Article no: 2143012; doi:10.1142/S021987622143012X.CrossRefGoogle Scholar
Li, Z. and Li, M., “Accuracy verification of a 2D adaptive mesh refinement method using backward-facing step flow of low Reynolds numbers”, Int. J. Comput. Methods 18 (2021) Article no: 2041012; doi:10.1142/S0219876220410121.CrossRefGoogle Scholar
Li, Z. and Mallinson, G., “Simplification of an existing mass conservative streamline tracking method for two-dimensional CFD velocity fields”, in: GIS and remote sensing in hydrology, water resources and environment (eds Yangbo, C., Kaoru, T., Cluckie, D. I. and Smedt, F. H. D.) (IAHS Publication, Wallingford, UK, 2004) 269275; https://iahs.info/uploads/dms/12955.40-269-275-CH-23-Li—Mallinson.pdf.Google Scholar
Perumal, D. A., Kumar, G. V. S. and Dass, A. K., “Numerical simulation of viscous flow over a square cylinder using lattice Boltzmann method”, Int. Sch. Res. Not. 2012 (2012) 116; doi:10.5402/2012/630801.Google Scholar
Sohankar, A., Norberg, C. and Davidson, L., “Low-Reynolds-number flow around a square cylinder at incidence: study of blockage, onset of vortex shedding and outlet boundary condition”, Internat. J. Numer. Methods Fluids 26 (1998) 3956; doi:10.1002/(SICI)1097-0363(19980115)26:1<39::AID-FLD623>3.0.CO;2-P.3.0.CO;2-P>CrossRefGoogle Scholar
Figure 0

Figure 1 Schematic diagram of the computational domain and boundary conditions.

Figure 1

Figure 2 The initial mesh ($\text {Mesh}_0$) of 3824 quadrilateral cells with 3984 nodes.

Figure 2

Figure 3 Fourth refined mesh, $\text {Mesh}_4$, for the flow with $Re=5$. Number of nodes = 13 223.

Figure 3

Figure 4 Flow with $Re=5$: (a)–(e) zoomed-in sections of $\text {Mesh}_0$ to $\text {Mesh}_4$; (f) zoomed-in section of the cell marked with a red square in panel (e), where the blue dot represents the centre of the vortices’ estimated location.

Figure 4

Figure 5 Schematic view of the location of coordinates $(x_1, y_1)$ of the primary vortices.

Figure 5

Table 1 Number of nodes in $\text {Mesh}_4$, estimated centre locations, $(x_1, y_1)$, and the computed errors relative to the reference vortex centres, $(x_{\text {ref}}, y_{\text {ref}})$. The number of nodes in [8] is approximately 1 040 000.

Figure 6

Figure 6 Streamline contours. The red dots indicate the estimated vortex location.