GroupTheory`
GroupTheory`

GTCellPlot

GTCellPlot[basis, atoms, plotdata]

can be used to plot unit cells as a primitive cell or as a conventional cell. basis contains the corresponding lattice vectors. For a conventional cell atoms contains the positions of the atoms in the cell. plotdata is used to customize the plot.

Details and Options

  • GTCellPlot is mainly used in GTBravaisLattice, but can be used also separately.
  • The following options can be given:
  • FontSize14Size of the labels.
    GOCoordinateSystem TruePlot of coordinate system or not.
  • This command is new and not explained in the book.
  • See: W. Hergert, M. Geilhufe, Group Theory in Solid State Physics and Photonics. Problem Solving with Mathematica

Examples

open allclose all

Basic Examples  (1)

First load the package:

The lattice constant is:

We define data corresponding to a cubic lattice. The lattice vectors are:

The positions for the atoms in an fcc structure are given by:

The plotdata {scale,size} contain a scaling factor scale for the coordinate axis and the size of the atoms.

For a better representation we will change the plotdata.

Options  (2)

Fontsize  (1)

This option controls the font size of the labels

GOCoordinateSystem  (1)

A coordinate system can be switched of.