Mirheo: High-performance mesoscale simulations for microfluidics

Dmitry Alexeev, Lucas Amoudruz, Sergey Litvinov, Petros KoumoutsakosComput. Phys. Commun 2019 · DOI

Abstract

The transport and manipulation of particles and cells in microfluidic devices has become a core methodology in domains ranging from molecular biology to manufacturing and drug design. The rational design and operation of such devices can benefit from simulations that resolve flow-structure interactions at sub-micron resolution. We present a computational tool for large scale, efficient and high throughput mesoscale simulations of fluids and deformable objects at complex microscale geometries. The code employs Dissipative Particle Dynamics for the description of the flow coupled with visco-elastic membrane model for red blood cells and can also handle rigid bodies and complex geometries. The software (MiRheo) is deployed on hybrid GPU/CPU architectures exhibiting unprecedented time-to-solution performance and excellent weak and strong scaling for a number of benchmark problems. MiRheo exploits the capabilities of GPU clusters, leading to speedup of up to 10 in terms of time to solution as compared to state-of-the-art software packages and reaches 90 - 99 percent weak scaling efficiency on 512 nodes of the Piz Daint supercomputer. The software MiRheo, relies on a Python interface to facilitate the solution of complex problems and it is open source. We believe that MiRheo constitutes a potent computational tool that can greatly assist studies of microfluidics.

Introduction

Microfluidic devices are essential tools in modern biology, drug design, and clinical diagnostics, manipulating nanoliter quantities of fluids to sort cells or analyze chemicals. To rationally design these devices, engineers need to simulate fluid dynamics at the sub-micron scale. Traditional continuum models, such as the Navier-Stokes equations, often struggle to resolve thermal fluctuations, complex geometries, and the biophysical interactions of deformable objects like red blood cells.

Particle-based methods, specifically Dissipative Particle Dynamics (DPD), bridge this gap by modeling fluids and cells as collections of interacting particles. However, legacy DPD software often suffers from massive data transfer bottlenecks when ported to modern GPU architectures. MiRheo addresses these challenges by providing a ground-up GPU-accelerated framework designed for massive, high-throughput simulations.

Visualization of a mesoscale simulation featuring red blood cells and rigid particles within a complex microfluidic geometry.

Methods and Architecture

MiRheo is built exclusively for modern hybrid GPU/CPU supercomputers to eliminate legacy bottlenecks. The software models rigid bodies and visco-elastic membranes, representing cell membranes as triangular meshes with specific energy potentials for shear, bending, and conservation of area and volume.

Hybrid Task Management

A core innovation in MiRheo is its asynchronous compute and I/O model. The software runs two MPI tasks per subdomain: one task handles heavy GPU computation, while the other runs on the CPU to manage I/O operations. This design allows disk operations to overlap perfectly with simulation math, effectively making data dumping "free" in terms of execution time.

MiRheo software architecture illustrating the hybrid GPU/CPU task management and Python interface.

Python Interface

Despite its complex C++/CUDA backend, MiRheo provides a modular Python interface using pybind11. This allows researchers to set up complex simulations with ease, treating the software as a "construction toy" for microfluidic experiments while maintaining high performance.

Performance and Scaling

MiRheo demonstrates significant performance gains over existing state-of-the-art tools:

  • Speedup: It outperforms LAMMPS (USER-MESO 2.0) by approximately 14x on a single node and consistently beats HOOMD-blue by 1.5x to 22x for pure DPD liquids.
  • Scaling: The software achieves near-perfect (~100%) weak scaling up to 1,000 GPU nodes for pure liquids. Even for complex whole blood flows, it maintains 95% efficiency on 512 nodes of the Piz Daint supercomputer.
  • Throughput: On a single compute node, MiRheo can process roughly 4.9 billion particle interactions per second.

Conclusion

MiRheo represents a significant advancement in the simulation of microfluidic and cellular flows. By bypassing traditional PCI-E bottlenecks and leveraging asynchronous I/O, it provides researchers with a high-throughput tool for sub-micron resolution modeling. Future work will focus on using MiRheo to optimize actual microfluidic devices, such as those used to isolate circulating tumor cells from whole blood.

Summary updated

BibTeX
@inproceedings{alexeev2019mirheo,
  author = {Dmitry Alexeev and Lucas Amoudruz and Sergey Litvinov and Petros Koumoutsakos},
  title = {{Mirheo: High-performance mesoscale simulations for microfluidics}},
  booktitle = {Comput. Phys. Commun},
  year = {2019},
  doi = {10.1016/j.cpc.2020.107298},
}
Figure