Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Display Voronoi cells for specific lattice points in a 3D lattice
ResourceFunction["LatticeVoronoiCellPlot3D"][{vx,vy,vz},{nx,ny,nz}] plots the Voronoi cells around each lattice point for the lattice defined by the basis vectors vi and with the number of cells in each direction specified by the ni. |
Plot the Voronoi cells for a given hexagonal lattice:
In[1]:= |
Out[1]= |
Plot the Voronoi cells for a cubic lattice:
In[2]:= |
Out[2]= |
Plot the Voronoi cells for a body-centred cubic lattice:
In[3]:= |
Out[3]= |
Plot the Voronoi cells for a body-centred tetragonal lattice:
In[4]:= |
Out[4]= |
Plot the Voronoi cells for a face-centred cubic lattice:
In[5]:= |
Out[5]= |
Specify the indices of the Voronoi cells to be highlighted by using the option "UnitCellsToShow":
In[6]:= |
Out[6]= |
This work is licensed under a Creative Commons Attribution 4.0 International License