Skip to main content
QUICK REVIEW

[Paper Review] AMReX: Block-Structured Adaptive Mesh Refinement for Multiphysics Applications

Weiqun Zhang, Andrew Myers|arXiv (Cornell University)|Sep 25, 2020
Computer Graphics and Visualization TechniquesComputer Science8 references9 citations
TL;DR

AMReX is a high-performance, portable software framework for block-structured adaptive mesh refinement (AMR) in multiphysics applications, enabling efficient and scalable simulations across diverse architectures from laptops to exascale systems. It supports complex PDEs, particle methods, embedded boundaries, and linear solvers, with abstraction layers ensuring performance portability across CPUs and GPUs without major code changes.

ABSTRACT

Block-structured adaptive mesh refinement (AMR) provides the basis for the temporal and spatial discretization strategy for a number of ECP applications in the areas of accelerator design, additive manufacturing, astrophysics, combustion, cosmology, multiphase flow, and wind plant modelling. AMReX is a software framework that provides a unified infrastructure with the functionality needed for these and other AMR applications to be able to effectively and efficiently utilize machines from laptops to exascale architectures. AMR reduces the computational cost and memory footprint compared to a uniform mesh while preserving accurate descriptions of different physical processes in complex multi-physics algorithms. AMReX supports algorithms that solve systems of partial differential equations (PDEs) in simple or complex geometries, and those that use particles and/or particle-mesh operations to represent component physical processes. In this paper, we will discuss the core elements of the AMReX framework such as data containers and iterators as well as several specialized operations to meet the needs of the application projects. In addition we will highlight the strategy that the AMReX team is pursuing to achieve highly performant code across a range of accelerator-based architectures for a variety of different applications.

Motivation & Objective

  • To provide a unified, high-performance software framework for block-structured adaptive mesh refinement (AMR) that supports diverse multiphysics applications.
  • To ensure performance portability across evolving architectures, including many-core CPUs and GPU-accelerated systems, without requiring application-specific code changes.
  • To support complex physical models involving partial differential equations (PDEs), particles, particle-mesh operations, and embedded boundary geometries.
  • To enable efficient linear solvers and I/O for implicit time stepping and checkpoint/restart in large-scale simulations.
  • To reduce development and maintenance overhead through abstraction layers, standardized data structures, and integrated debugging and profiling tools.

Proposed method

  • Uses a hierarchical, block-structured mesh with logically rectangular patches at multiple refinement levels, enforcing proper nesting at the level level but not at the individual grid level.
  • Employs data containers (patches) and iterators to manage mesh data, with support for both explicit and implicit time discretizations.
  • Integrates native geometric multigrid solvers and interfaces with external linear algebra libraries and SUNDIALS for stiff ODE systems.
  • Supports particle-based algorithms via specialized data structures and particle-mesh operations, including particle interpolation and deposition.
  • Uses embedded boundary (cut-cell) methods to represent complex geometries, with dual grid decomposition for mesh and particle data.
  • Employs an abstraction layer to isolate applications from low-level hardware details, enabling performance portability across CPU and GPU architectures.

Experimental results

Research questions

  • RQ1How can a single software framework efficiently support a broad range of multiphysics applications with varying algorithmic and computational requirements?
  • RQ2What architectural and abstractions are needed to ensure performance portability across diverse exascale and legacy HPC systems?
  • RQ3How can block-structured AMR be extended to support particles, embedded boundaries, and complex geometries while maintaining scalability and performance?
  • RQ4What software engineering practices and tools are effective for developing, debugging, and profiling large-scale AMR applications?
  • RQ5To what extent can code generation from mathematical equations improve productivity and maintainability in AMR-based simulations?

Key findings

  • AMReX enables scalable, high-performance simulations across architectures from laptops to exascale systems, with minimal performance degradation when porting to new hardware.
  • The framework’s abstraction layer successfully decouples application logic from low-level hardware details, enabling performance portability without sacrificing efficiency.
  • AMReX supports complex physical models, including PDEs, stiff ODEs via SUNDIALS, particles, and embedded boundaries, all within a unified infrastructure.
  • Integrated tools like TinyProfiler and debug mode with array bounds checking, NaN initialization, and backtraces significantly reduce debugging time and improve code reliability.
  • The framework’s support for dual grid decomposition allows independent mesh and particle domain decomposition, improving load balancing in particle-mesh simulations.
  • Prototype code generation from equations (e.g., for general relativity and Boltzmann equations) demonstrates potential for accelerating development of complex physical models.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.