OpenRBC: A Fast Simulator of Red Blood Cells at Protein Resolution

Yu-Hang Tang, Lu Lu, He Li, Constantinos Evangelinos, Leopold Grinberg, Vipin Sachdeva, George E. KarniadakisarXiv 2017 · DOI

Abstract

We present OpenRBC, a coarse-grained molecular dynamics code capable of performing an unprecedented in silico experiment: simulating an entire mammal red blood cell lipid bilayer and cytoskeleton as modeled by 4 million mesoscopic particles using a single shared-memory commodity workstation. To achieve this, we invented an adaptive spatial-searching algorithm to accelerate the computation of short-range pairwise interactions in an extremely sparse 3D space. The algorithm is based on a Voronoi partitioning of the point cloud of coarse-grained particles and is continuously updated over the course of the simulation. This enables the construction of a lattice-free cell list with a time and space cost linearly proportional to the number of particles in the system. The position and shape of the cells adapt automatically to local density and curvature. The code implements OpenMP parallelization and scales to hundreds of hardware threads, outperforming legacy simulators by nearly an order of magnitude in time-to-solution and over 40 times in problem size.

The Challenge of Protein-Resolution Simulation

Simulating a red blood cell (RBC) at "protein resolution" is a massive computational challenge. To capture the mechanics of the cell—such as how it deforms in narrow capillaries or sheds membrane fragments in disease—researchers utilize Coarse-Grained Molecular Dynamics (CGMD). However, a single RBC requires approximately 4 million particles to represent its lipid bilayer and protein cytoskeleton accurately.

The primary bottleneck in these simulations is spatial density heterogeneity. Most molecular dynamics codes assume particles are distributed somewhat uniformly throughout a 3D box. However, an RBC is essentially a hollow, biconcave shell; particles are concentrated on a thin surface, while the interior and exterior are empty. Traditional "cell list" algorithms waste massive amounts of memory and processing power on these empty regions, making whole-cell simulations at this resolution nearly impossible on standard hardware.

Methods: Adaptive Voronoi Partitioning

OpenRBC is a C++11 header-only library designed specifically for "hollow" or surface-concentrated systems. Its core innovation is replacing fixed rectilinear grids with Adaptive Voronoi Partitioning. Using $k$-means clustering, the software partitions particles into "Voronoi cells" that automatically adapt to the local density and curvature of the membrane. This ensures that every cell in the search data structure is populated, eliminating the "empty box" problem inherent in traditional methods.

Comparison of traditional rectilinear cell lists (left), which waste memory on vacant space, versus the adaptive Voronoi cell list (right) used in OpenRBC.

To maintain high performance, OpenRBC employs several additional strategies:

  • Lattice-Free Spatial Searching: By using a $k$-d tree to manage Voronoi cells and reordering particles along a Morton curve (a space-filling curve), the software maintains high data locality, reducing neighbor-search complexity to effectively $O(1)$.
  • Atomics-Free Parallelization: The authors implemented a "patch-based" workload decomposition for multi-core CPUs. By managing force accumulation between neighboring cells carefully, they avoided race conditions without needing expensive atomic operations or locks.
  • Implicit Solvent Efficiency: By treating the surrounding plasma implicitly, computational power is focused entirely on the membrane and cytoskeleton, the primary drivers of RBC biomechanics.

Key Results and Physical Validation

OpenRBC successfully simulated a system of 3.2 million particles representing a full RBC, a feat legacy simulators could not achieve due to memory constraints. The code achieved a 10x speedup in time-to-solution compared to legacy MPI-based simulators and demonstrated excellent linear scaling up to hundreds of hardware threads.

A full-scale red blood cell simulation at protein resolution, showing the detailed membrane and cytoskeleton structure.

Beyond performance, the simulation maintained high physical accuracy. The simulated membrane displacement (33.5 nm) fell squarely within the experimental range of 23.6 nm to 58.8 nm observed in real-world microscopy. This proves that geometry-aware computing—where the data structure mirrors the physical 2D manifold of the cell—can provide supercomputer-level results on a single workstation.

Conclusion and Future Directions

While the current implicit solvent model may miss certain high-speed hydrodynamic effects, OpenRBC provides a powerful new platform for probing biomechanics. The authors suggest that this high-resolution approach will be vital for studying blood disorders like sickle cell disease, malaria, and spherocytosis, where molecular-level defects lead to catastrophic changes in cell-scale behavior.

Summary updated

BibTeX
@misc{tang2017openrbc,
  author = {Yu-Hang Tang and Lu Lu and He Li and Constantinos Evangelinos and Leopold Grinberg and Vipin Sachdeva and George E. Karniadakis},
  title = {{OpenRBC: A Fast Simulator of Red Blood Cells at Protein Resolution}},
  year = {2017},
  eprint = {1701.02059},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1701.02059},
}
Figure