// Example code demonstrating the loop classes // // Author : Chris H. Rycroft (LBL / UC Berkeley) // Email : chr@alum.mit.edu // Date : August 30th 2011 #include "voro++.hh" using namespace voro; // Constants determining the configuration of the tori const double dis=1.25,mjrad=2.5,mirad=0.95,trad=mjrad+mirad; // Set the number of particles that are going to be randomly introduced const int particles=100000; // This function returns a random double between 0 and 1 double rnd() {return double(rand())/RAND_MAX;} int main() { int i; double x,y,z,r; voronoicell c; // Create a container as a non-periodic 10 by 10 by 10 box container con(-5,5,-5,5,-5,5,26,26,26,false,false,false,8); particle_order po; // Randomly add particles into the container for(i=0;i