• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..23-Dec-2021-

MakefileH A D08-Sep-2020852 3516

READMEH A D08-Sep-20201.4 KiB2822

box_cut.ccH A D08-Sep-2020864 3313

cut_region.ccH A D08-Sep-20202.1 KiB7333

irregular.ccH A D08-Sep-20201.9 KiB7138

irregular.povH A D08-Sep-2020674 3527

pack_irregularH A D08-Sep-20202.6 KiB9190

superellipsoid.ccH A D08-Sep-20201 KiB4222

superellipsoid.povH A D08-Sep-2020497 3325

README

1Extra examples
2==============
3This directory contains miscellaneous extra examples of the code.
4
5box_cut.cc - this creates a large Voronoi cell, and then cuts the cell by a
6group of points within a small box, to demonstrate space that particles within
7a block can possibly affect. Different topologies are visible depending on
8whether a face, edge, or corner of the box is aligned with the cell.
9
10cut_region.cc - this program demonstrates the plane_intersects() routine for
11determining whether a plane has any intersection with a Voronoi cell. The
12program creates a test Voronoi cell, saves it to "cell.gnu", and then maps out
13the region of space which can possibly influence it and saves an outline of it
14to "cell_cut_region.gnu". These can be visualized in gnuplot using:
15
16splot 'cell.gnu' with lines, 'cell_cut_region.gnu' with dots
17
18superellipsoid.cc - this creates a cell in the shape of a superellipsoid
19(satisfying the equation x^4+y^4+z^4=1) and outputs the results in gnuplot
20format to "superellipsoid.gnu".
21
22irregular.cc - this code makes use of a wall class as a method of handling a
23Voronoi tessellation for an irregular group of particles. Each Voronoi cell is
24initialized to be a dodecahedron surronding the particle, which is then cut.
25This stops Voronoi cells from extending a long way out to the computational
26boundaries. The output can be visualized using the POV-Ray header file
27irregular.pov.
28