Adaptive mesh refinement

From HandWiki
Revision as of 21:45, 6 February 2024 by Wikisleeper (talk | contribs) (fix)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

In numerical analysis, adaptive mesh refinement (AMR) is a method of adapting the accuracy of a solution within certain sensitive or turbulent regions of simulation, dynamically and during the time the solution is being calculated. When solutions are calculated numerically, they are often limited to pre-determined quantified grids as in the Cartesian plane which constitute the computational grid, or 'mesh'. Many problems in numerical analysis, however, do not require a uniform precision in the numerical grids used for graph plotting or computational simulation, and would be better suited if specific areas of graphs which needed precision could be refined in quantification only in the regions requiring the added precision. Adaptive mesh refinement provides such a dynamic programming environment for adapting the precision of the numerical computation based on the requirements of a computation problem in specific areas of multi-dimensional graphs which need precision while leaving the other regions of the multi-dimensional graphs at lower levels of precision and resolution.

This dynamic technique of adapting computation precision to specific requirements has been accredited to Marsha Berger, Joseph Oliger, and Phillip Colella who developed an algorithm for dynamic gridding called local adaptive mesh refinement. The use of AMR has since then proved of broad use and has been used in studying turbulence problems in hydrodynamics as well as in the study of large scale structures in astrophysics as in the Bolshoi Cosmological Simulation.

Development of adaptive mesh refinement

The image above shows the grid structure of an AMR calculation of a shock impacting an inclined slope. Each of the boxes is a grid; the more boxes it is nested within, the higher the level of refinements. As the image shows, the algorithm uses high resolution grids only at the physical locations and times where they are required.

In a series of papers, Marsha Berger, Joseph Oliger, and Phillip Colella developed an algorithm for dynamic gridding called local adaptive mesh refinement.[1][2] The algorithm begins with the entire computational domain covered with a coarsely resolved base-level regular Cartesian grid. As the calculation progresses, individual grid cells are tagged for refinement, using a criterion that can either be user-supplied (for example mass per cell remains constant, hence higher density regions are more highly resolved) or based on Richardson extrapolation.

All tagged cells are then refined, meaning that a finer grid is overlaid on the coarse one. After refinement, individual grid patches on a single fixed level of refinement are passed off to an integrator which advances those cells in time. Finally, a correction procedure is implemented to correct the transfer along coarse-fine grid interfaces, to ensure that the amount of any conserved quantity leaving one cell exactly balances the amount entering the bordering cell. If at some point the level of refinement in a cell is greater than required, the high resolution grid may be removed and replaced with a coarser grid.

This allows the user to solve problems that are completely intractable on a uniform grid; for example, astrophysicists have used AMR to model a collapsing giant molecular cloud core down to an effective resolution of 131,072 cells per initial cloud radius, corresponding to a resolution of 1015 cells on a uniform grid.[3]

Advanced mesh refinement has been introduced via functionals.[4] Functionals allow the ability to generate grids and provide mesh adaptation. Some advanced functionals include the Winslow and modified Liao functionals.[5]

Applications of adaptive mesh refinement

When calculating a solution to the shallow water equations, the solution (water height) might only be calculated for points every few feet apart—and one would assume that in between those points the height varies smoothly. The limiting factor to the resolution of the solution is thus the grid spacing: there will be no features of the numerical solution on scales smaller than the grid-spacing. Adaptive mesh refinement (AMR) changes the spacing of grid points, to change how accurately the solution is known in that region. In the shallow water example, the grid might in general be spaced every few feet—but it could be adaptively refined to have grid points every few inches in places where there are large waves.

If the region in which higher resolution is desired remains localized over the course of the computation, then static mesh refinement can be used - in which the grid is more finely spaced in some regions than others, but maintains its shape over time.

The advantages of a dynamic gridding scheme are:

  1. Increased computational savings over a static grid approach.
  2. Increased storage savings over a static grid approach.
  3. Complete control of grid resolution, compared to the fixed resolution of a static grid approach, or the Lagrangian-based adaptivity of smoothed particle hydrodynamics.
  4. Compared to pre-tuned static meshes, the adaptive approach requires less detailed a priori knowledge on the evolution of the solution.
  5. The computational costs inherit properties of the physical system.[6]

In addition, the AMR methods have been developed and applied to a wide range of fluid mechanics problems, including two-phase flows,[7] fluid-structure interactions,[8] and wave energy converters.[9]

References

  1. Berger, Marsha J.; Oliger, Joseph (1984). "Adaptive mesh refinement for hyperbolic partial differential equations". Journal of Computational Physics 53 (3): 484–512. doi:10.1016/0021-9991(84)90073-1. https://apps.dtic.mil/sti/pdfs/ADA130162.pdf. Retrieved 2021-07-22. 
  2. Berger, Marsha J.; Colella, Philipp (1989). "Local adaptive mesh refinement for shock hydrodynamics". Journal of Computational Physics 82 (1): 64–84. doi:10.1016/0021-9991(89)90035-1. Bibcode1989JCoPh..82...64B. https://crd.lbl.gov/assets/pubs_presos/AMCS/ANAG/A113.pdf. 
  3. Klein, Richard (1999). "Star formation with 3-D adaptive mesh refinement: the collapse and fragmentation of molecular clouds". Journal of Computational and Applied Mathematics 109 (1–2): 123–152. doi:10.1016/S0377-0427(99)00156-9. 
  4. Huang, Weizhang; Russell, Robert D. (2010). Adaptive Moving Mesh Method. Springer. ISBN 978-1-4419-7916-2. 
  5. Khattri, Sanjay Kumar (2007). "Grid generation and adaptation by functionals". Computational & Applied Mathematics 26 (2): 235–249. https://www.scielo.br/j/cam/a/KQfnf3bLSnzRcdyJCmCkTzL/?format=pdf&lang=en. Retrieved 2021-07-22. 
  6. Popinet, Stéphane (2015). "A quadtree-adaptive multigrid solver for the Serre–Green–Naghdi equations". Journal of Computational Physics 302: 336–358. doi:10.1016/j.jcp.2015.09.009. Bibcode2015JCoPh.302..336P. https://www.archives-ouvertes.fr/hal-01163101/document. Retrieved 2021-07-22. 
  7. Zeng, Yadong; Xuan, Anqing; Blaschke, Johannes; Shen, Lian (2022). "A parallel cell-centered adaptive level set framework for efficient simulation of two-phase flows with subcycling and non-subcycling". Journal of Computational Physics (Elsevier) 448: 110740. doi:10.1016/j.jcp.2021.110740. Bibcode2022JCoPh.44810740Z. https://www.sciencedirect.com/science/article/pii/S0021999121006355. 
  8. Zeng, Yadong; Bhala, Amneet; Shen, Lian (2022). "A subcycling/non-subcycling time advancement scheme-based DLM immersed boundary method framework for solving single and multiphase fluid--structure interaction problems on dynamically adaptive grids". Computers & Fluids (Elsevier) 238: 105358. doi:10.1016/j.compfluid.2022.105358. https://www.sciencedirect.com/science/article/abs/pii/S0045793022000433. 
  9. Yu, Yi-Hsiang; Li, Ye (2013). "Reynolds-Averaged Navier--Stokes simulation of the heave performance of a two-body floating-point absorber wave energy system". Computers & Fluids (Elsevier) 73: 104–114. doi:10.1016/j.compfluid.2012.10.007. https://www.sciencedirect.com/science/article/abs/pii/S0045793012003878. 

See also