An Adaptive Fast Multipole Method-Based PDE Solver in Three Dimensions

Harper Langston2012

Introduction

Solving elliptic partial differential equations (PDEs) in three dimensions is a cornerstone of computational physics, with applications ranging from fluid dynamics to electrostatics. However, traditional numerical methods often struggle with two competing requirements: the need for high-order accuracy in complex, non-uniform geometries and the necessity for computational efficiency that scales linearly with the problem size. This paper presents a high-order, adaptive numerical solver that addresses these challenges by integrating a kernel-independent Fast Multipole Method (FMM) with an embedded boundary approach.

Problem Statement

Standard numerical tools frequently encounter bottlenecks when applied to real-world 3D problems. Specifically, two issues predominate:

  1. Spatial Non-uniformity: Physical sources, such as turbulent eddies or ion clusters, are often localized. Uniform grids waste significant computational resources on empty space.
  2. Geometric Complexity: Real-world domains (e.g., pipe joints or biological structures) rarely conform to simple Cartesian boxes. Generating high-quality meshes for such shapes in 3D is notoriously difficult and prone to error.

While Fast Fourier Transforms (FFTs) offer speed, they are restricted to uniform grids. Conversely, finite element methods (FEM) handle complex shapes but can become computationally expensive for large-scale problems or far-field boundary conditions.

Methodology

The proposed solver leverages the Fast Multipole Method (FMM), originally designed for $O(N)$ gravitational force calculations, and extends it to solve continuous PDEs.

Kernel-Independent FMM (kiFMM)

Unlike traditional FMM, which relies on analytic expansions specific to a particular kernel (e.g., spherical harmonics for Laplace), the kernel-independent variant uses "equivalent densities" on surfaces. This allows the solver to be applied to any equation where the Green’s function is known, such as the Poisson, Modified Helmholtz, or Stokes equations.

Adaptive Octrees and Volume Integrals

To handle non-uniform source distributions, the solver employs an adaptive octree data structure. The grid automatically refines in regions of high activity and remains coarse elsewhere. Within each octree cell, the source term is represented using piecewise polynomial approximations. This volume integral approach allows for high-order accuracy without the need for an excessively fine global mesh.

Embedded Boundary Integral (EBI)

To accommodate complex geometries without complex meshing, the solver uses an embedded boundary approach. The geometry is placed within a simple bounding box. The solver first computes a "free-space" solution for the entire volume and then applies a boundary integral correction to satisfy specific boundary conditions (e.g., Dirichlet conditions) on the object's surface.

Computational Efficiency

To mitigate the memory overhead inherent in 3D calculations, the author exploits the 48-fold symmetry of the cube. This reduces the storage requirements for precomputed interaction matrices, facilitating larger simulations on standard hardware.

Experimental Benchmarks

The solver was evaluated using several synthetic benchmarks:

  • Equations: Poisson, Modified Helmholtz, and Stokes equations.
  • Geometries: Analytic spheres, two-hole tori, pipe joints, and a complex "starfish" shape characterized by high curvature.
  • Source Distributions: Gaussian bumps and highly oscillatory functions were used to test the limits of the adaptive refinement and polynomial representation.

Key Results

The solver demonstrated several critical performance metrics:

  • High Precision: Relative errors were consistently maintained between $10^{-7}$ and $10^{-9}$ across different kernels.
  • Efficiency: In specific oscillatory test cases, the solver achieved accuracy comparable to state-of-the-art local correction algorithms while requiring only 1/100th of the points.
  • Scalability: The algorithm exhibits $O(N)$ complexity. Furthermore, parallel implementation using OpenMP showed nearly linear scaling on multi-core architectures.
  • Robustness: The "starfish" geometry test confirmed that the solver remains stable and accurate even when faced with narrow features and high local curvature.

Conclusion and Future Directions

This work provides a robust framework for solving complex 3D PDEs with linear scaling and high-order accuracy. While the current implementation is highly effective, future developments will focus on improving interpolation stability near geometric edges by moving toward Chebyshev solution points and extending the framework to support Neumann boundary conditions. A primary goal is the integration of these capabilities into the open-source kiFMM++ library.

Summary updated

BibTeX
@misc{langston2012adaptive,
  author = {Harper Langston},
  title = {{An Adaptive Fast Multipole Method-Based PDE Solver in Three Dimensions}},
  year = {2012},
}
Figure