{"title":"Integrating Quad-Tree and Linked List Data Structure to Generate Unstructured Adaptive Cartesian Mesh for a Growing Scour","authors":"Mohsen Takhtravan","volume":227,"journal":"International Journal of Civil and Environmental Engineering","pagesStart":348,"pagesEnd":355,"ISSN":"1307-6892","URL":"https:\/\/publications.waset.org\/pdf\/10014300","abstract":"<p>The generation of an appropriate computational mesh for domains with complex geometries and moving boundaries has a significant influence on the accuracy of numerical results. Among the available approaches, unstructured meshes are the most common choice for discretizing domains with irregular geometries. Triangular meshes and adaptive Cartesian meshes are two widely used types within this category. Since adaptive Cartesian meshes are capable of local refinement, they can be effectively employed for domains with moving boundaries. This paper presents a study on the generation of two-dimensional unstructured adaptive Cartesian meshes for flow domains, developed using a combination of quadtree data structures and linked lists. By using only tree data structures, operations on such meshes typically require traversing all or part of the quadtree. And since a quadtree data structure contains both computational cells and non-computational nodes, tree traversal can become complicated and time-consuming, especially when the geometry is changing through time steps. To address this challenge, the present model introduces a linked-list structure connecting only the computational (leaf) cells of the mesh. As a result, during mesh generation and adaptation (refining and coarsening), traversal of the entire tree is avoided, and instead, only the leaf nodes are accessed. This effectively replaces quadtree traversal with a more efficient linked-list traversal. The developed model has been applied to mesh generation for several hypothetical flow domains, and the results demonstrate that the method produces meshes of high quality, with element sizes appropriately refined to meet the requirements of each region. The proposed method also accommodates vertical boundary motion that creates vertical walls, thereby overcoming a key limitation of body-fitted structured meshes. The approach is isotropic, allowing mesh refinement in regions influenced by boundary movement, while automatically coarsening the mesh in areas where fine resolution is unnecessary. The developed model has also been applied to mesh generation for a scour hole formed downstream of a bed sill. Results demonstrate that the method produces high-quality meshes with element sizes appropriately tailored to the requirements of each region.&nbsp;<\/p>","references":"[1]\tT. J. Baker, \u201cMesh generation: Art or science?\u201d, MAE Department, Princton University, Princton, NJ 08540, 2005.\r\n[2]\tM. Takhtravan, M.R. Hadian, \"Unstructured adaptive Cartesian mesh generation for domains with moving boundaries\", 6th National Congress on Civil Engineering, Semnan, Iran, 2011, in Persian.\r\n[3]\tA. Jahangirian, Y. Shoraka, \u201cAdaptive unstructured grid generation for engineering computation of aerodynamic flows\u201d, TCN CAE 2005MASCOT05, Lecce, Italy, 2005.\r\n[4]\tA. A. Demargne, R. Evans, P. Tiller, W. N. Dawes, \u201cPractical and reliable mesh generation for complex, real-world geometries\u201d, In 52nd Aerospace Sciences Meeting, 2014, (p. 0119).\r\n[5]\tL. Billon, Y. Mesri, E. Hachem, \u201cAnisotropic boundary layer mesh generation for immersed complex geometries\u201d, Engineering with Computers, 2017, 33(2), 249-260.\r\n[6]\tJ. Pan, J. Huang, G. Cheng, Y. Zeng, \u201cReinforcement learning for automatic quadrilateral mesh generation: A soft actor\u2013critic approach\u201d, Neural Networks, 2023, 157, 288-304.\r\n[7]\tS. Meng, D. Zhou, L. Bi, X., Li, C. Luo, H. Du, \u201cAnisotropic Cartesian grid generation strategy for arbitrarily complex geometry based on a fully threaded tree\u201d, Computer-Aided Design, 2023, 155, 103447.\r\n[8]\tB. Laure, P. Dimitrios, A. Fr\u00e9d\u00e9ric. \"Isotropic and anisotropic mesh adaptation for rans simulations of a nacelle under crosswind conditions.\" Journal of the Global Power and Propulsion Society 7, 2023, 188-199.\r\n[9]\tX. Li et al. \"An efficient Cartesian mesh generation strategy for complex geometries.\" Computer Methods in Applied Mechanics and Engineering 418, 2024, 116564.\r\n[10]\tM. Takhtravan, M.R. Hadian, Sh. Talebi, \"Unstructured adaptive Cartesian mesh generation using composition of quad-tree and linked list data structure\", 14th National Congress on Fluid Dynamics, Birjand, Iran, 2012, in Persian.\r\n[11]\tJ.F. Thompson, \u201cNumerical grid generation\u201d, North Holland (Also published as vol.10(11) of Applied Mathematics and Computation), 1982.\r\n[12]\tW.A. Keats, \u201cTwo-Dimensional Anisotropic Cartesian Mesh Adaptation for the Compressible Euler Equations\u201d, Ph.D. thesis, Waterloo University, Ontario, Canada, 2004.\r\n[13]\tJ.F. Thompson, B.K. Soni, N.P. Weatherill, \u201cHandbook of grid generation\u201d, CRC Press: Boca Raton, FL, 1999.\r\n[14]\tX. Shi, S. Fang, M. Lv, N. Hu, \u201cA 3D anisotropic Cartesian grid generation method and its applications in viscosity flows\u201d, Procedia Engineering, 2015, 99, 575-580.\r\n[15]\tS. Peron, C. Benoit, \u201cAutomatic off-body overset adaptive Cartesian mesh method based on an octree approach\u201d, Journal of Computational Physics, 2013, 232(1), 153-173.\r\n[16]\tZ. Liu, F.B. Tian, X. Feng, \u201cAn efficient geometry-adaptive mesh refinement framework and its application in the immersed boundary lattice Boltzmann method\u201d, Computer Methods in Applied Mechanics and Engineering, 2022, 392, 114662.\r\n[17]\tD. Zeeuw, \u201cA Quadtree-based adaptively-refined Cartesian-grid algorithm for solution of the Euler equations\u201d, Ph.D. thesis, University of Michigan, 1993.\r\n[18]\tM.A. Yerry, M.S. Shephard, \u201cAutomatic three-dimensional mesh generation by the modified-octree technique\u201d Int. J. Num. Methods Eng., 1984, 20.\r\n[19]\tZ.J. Wang, \u201cA quadtree-based adaptive Cartesian\/quad grid flow solver for Navier\u2013Stokes equations\u201d, Computers Fluids, 1998, 27(4), 529\u2013549.\r\n[20]\tD.D. Zeeuw, K.G. Powell, \u201cAn Adaptively Refined Cartesian Mesh Solver for the Euler Equations\u201d, J. Comp. Phys., 1993, 104, 56\u201368.\r\n[21]\tZ.J. Wang, \u201cA fast nested multi-grid viscous flow solver for adaptive Cartesian or quad grids\u201d, Int. J. Numer. Meth. Fluids, 2000, 33, 657\u2013680.\r\n[22]\tF. Waymel, F. Monnoyer, J. Mame, W. Louis, \u201cNumerical simulation of the unsteady three-dimensional flow in confined domain crossed by moving bodies\u201d, Computer and Fluid 35, 2005, 525-543.\r\n[23]\tR. Gaudio, A. Marion, V. Bovolin, \u201cMorphological Effects of Bed Sills in Degrading Rivers\u201d, Journal of Hydraulic Research, 2000, 38(2), 89-96.","publisher":"World Academy of Science, Engineering and Technology","index":"Open Science Index 227, 2025"}