An extension to VORO++ for multithreaded computation of Voronoi cells

Jiayin Lu, Emanuel A. Lazar, Chris H. Rycroft

Research output: Contribution to journalArticlepeer-review

1 Scopus citations


VORO++ is a software library written in C++ for computing the Voronoi tessellation, a technique in computational geometry that is widely used for analyzing systems of particles. VORO++ was released in 2009 and is based on computing the Voronoi cell for each particle individually. Here, we take advantage of modern computer hardware, and extend the original serial version to allow for multithreaded computation of Voronoi cells via the OpenMP application programming interface. We test the performance of the code, and demonstrate that it can achieve parallel efficiencies greater than 95% in many cases. The multithreaded extension follows standard OpenMP programming paradigms, allowing it to be incorporated into other programs. We provide an example of this using the VoroTop software library, performing a multithreaded Voronoi cell topology analysis of up to 102.4 million particles. Program summary: Program title: VORO++ CPC Library link to program files: Developer's repository link: Licensing provisions: BSD 3-clause (with LBNL modification) Programming language: C++ External routines/libraries: OpenMP Nature of problem: Multithreaded computation of the Voronoi tessellation in two and three dimensions Solution method: The VORO++ library is built around several C++ classes that can be incorporated into other programs. The two largest components are the container. classes that spatially sort input particles into a grid-based data structure, allowing for efficient searches of nearby particles, and the voronoicell. classes that represent a single Voronoi cell as an arbitrary convex polygon or polyhedron. The Voronoi cell for each particle is built by considering a sequence of plane cuts based on neighboring particles, after which many different statistics (e.g. volume, centroid, number of vertices) can be computed. Since each Voronoi cell is calculated individually, the Voronoi cells can be computed using multithreading via OpenMP.

Original languageEnglish
Article number108832
JournalComputer Physics Communications
StatePublished - Oct 2023

Bibliographical note

Publisher Copyright:
© 2023 Elsevier B.V.


  • Computational geometry
  • Multi-threaded programming
  • Voronoi tessellation


Dive into the research topics of 'An extension to VORO++ for multithreaded computation of Voronoi cells'. Together they form a unique fingerprint.

Cite this