1 #include "voro++_2d.hh"
6 // Initialize the container class to be the unit square, with
7 // non-periodic boundary conditions. Divide it into a 6 by 6 grid, with
8 // an initial memory allocation of 16 particles per grid square.
9 container_2d
con(0,1,0,1,6,6,false,false,16);
11 // Import the spiral data set
12 con
.import("particles_spiral");
14 // Do a custom computation on the Voronoi cells, printing the IDs,
15 // positions, and Voronoi cell areas to a file
16 con
.print_custom("%i %x %y %a","particles_spiral.out");