LARS - a 2D Stokes flow solver

An algorithm to compute 2D Stokes flows with great speed and accuracy

We developed a 2D Stokes flow solver LARS (Lightning-AAA Rational Stokes) using rational approximation (Xue et al., 2024). It uses the lightning algorithm for sharp corners (Gopal and Trefethen, 2019; Brubeck and Trefethen, 2022), the AAA algorithm for curved boundaries (Nakatsukasa et al., 2018), and a series method (Trefethen, 2018) for multiply connected domains. The solver works for most 2D Stokes problems with different geometries and boundary conditions. In most cases, a solution can be obtained to 6-digit accuracy in less than 1 second on a laptop. Example MATLAB codes can be found on GitHub. Further application of the algorithm to Stokes flows in a 2D bifurcation can be found in (Xue et al., 2025). An extension of rational approximation methods for periodic Stokes flows can be found in (Xue, 2025).

References

2025

  1. pressure_cases_particle.png
    Stokes flows in a two-dimensional bifurcation
    Yidan XueStephen J Payne, and Sarah L Waters
    Royal Society Open Science, 2025
  2. mixing.pdf
    Computing Stokes flows in periodic channels via rational approximation
    Yidan Xue
    Proceedings of the Royal Society A, 2025

2024

  1. heart_closeup.png
    Computation of two-dimensional Stokes flows via lightning and AAA rational approximation
    Yidan XueSarah L Waters, and Lloyd N Trefethen
    SIAM Journal on Scientific Computing, 2024