Working with crystal structures
  • Functions
    • GTAllStructures
    • GTGetStructure
    • GTInstallStructure
    • GTLoadStructures
    • GTPlotStructure
    • GTSaveStructures
  • Related Guides
    • W. Hergert, R. M. Geilhufe, Group Theory in Solid State Physics and Photonics: Problem Solving with Mathematica, Wiley-VCH, ISBN: 978-3-527-41133-7 (2018).
  • Tech Notes
    • Tight-binding electronic structure of graphene
    • Functions
      • GTAllStructures
      • GTGetStructure
      • GTInstallStructure
      • GTLoadStructures
      • GTPlotStructure
      • GTSaveStructures
    • Related Guides
      • W. Hergert, R. M. Geilhufe, Group Theory in Solid State Physics and Photonics: Problem Solving with Mathematica, Wiley-VCH, ISBN: 978-3-527-41133-7 (2018).
    • Tech Notes
      • Tight-binding electronic structure of graphene
GROUP THEORY TUTORIAL
  • Functions
    • GTAllStructures
    • GTGetStructure
    • GTInstallStructure
    • GTLoadStructures
    • GTPlotStructure
    • GTSaveStructures
  • Related Guides
    • W. Hergert, R. M. Geilhufe, Group Theory in Solid State Physics and Photonics: Problem Solving with Mathematica, Wiley-VCH, ISBN: 978-3-527-41133-7 (2018).
  • Tech Notes
    • Tight-binding electronic structure of graphene
    • Functions
      • GTAllStructures
      • GTGetStructure
      • GTInstallStructure
      • GTLoadStructures
      • GTPlotStructure
      • GTSaveStructures
    • Related Guides
      • W. Hergert, R. M. Geilhufe, Group Theory in Solid State Physics and Photonics: Problem Solving with Mathematica, Wiley-VCH, ISBN: 978-3-527-41133-7 (2018).
    • Tech Notes
      • Tight-binding electronic structure of graphene

Working with crystal structures

GTPack contains several functions to work with space groups and crystal structures, which are illustrated within this tutorial. Since different crystal structures cannot be implemented by referring to the space group number, a user defined database has to be created. This database is written to a list called spcgrp. To distinguish the structures, e.g. the Pearson Symbol or Strukturbericht Symbol can be taken into account.

GTInstallStructure[Structure]installs a crystal structure,by appeding it to the list spcgrp.
GTAllStructures[]prints all structures that are currently installed within the list spcgrp.
GTGetStructure[Information]displays an installed crystal structure from a certain information (e.g.Pearson symbol,Strukturbericht designation,name).
GTSaveStructures[File]saves the content of the list spcgrp (list of installed crystal structures) to an arbitrary File.
GTLoadStructures[File]loads the content of the list spcgrp (list of installed crystal structures) from an arbitrary File.
GTPlotStructure[Structure, Min,Max]plots a crystal Structure within a certain plot range,defined by Min and Max.
Loading GTPack.
Wolfram Language code: Needs["GroupTheory`"]

As a first example the diamond structure is considered. From the Naval Research page (http://cst-www.nrl.navy.mil/lattice/) we get:
# Prototype : C (diamond)
# Pearson Symbol : cF8
# Strukturbericht Designation : A4
# Space Group : Fd3m (Cartesian and lattice coordinate listings available)
# Number : 227
# Other Elements with this Structure : Si, Ge, Sn
# Reference : Ashcroft and Mermin, p.76.
# Primitive Vectors :
A1 = ½ a Y + ½ a Z
A2 = ½ a X + ½ a Z
A3 = ½ a X + ½ a Y
# Basis Vectors :
B1 = -1/8 A1 - 1/8 A2 - 1/8 A3 = -1/8 a X - 1/8 a Y - 1/8 aZ (C) (8 a)
B2 = +1/8 A1 + 1/8 A2 + 1/8 A3 = +1/8 a X + 1/8 a Y + 1/8 aZ (C) (8 a)

The information will be organized as follows in a dataset:
Wolfram Language code: diamond = {{"C", "Diamond"}, "cF8", "A4", "Fd3m", 227, {{0, a / 2, a / 2}, {a / 2, 0, a / 2}, {a / 2, a / 2, 0}}, {{{-a / 8, -a / 8, -a / 8}, "C"}, {{a / 8, a / 8, a / 8}, "C"}}, {a -> 355}};
Analogously, the information for the NaCl structure, CaF2 and Wurtzite structure are given as follows.
Wolfram Language code: nacl = {{"NaCl", "NaCl"}, "cF8", "B1", "FmOverscriptBox[3, _]m", 225, {{0, a / 2, a / 2}, {a / 2, 0, a / 2}, {a / 2, a / 2, 0}}, {{{0, 0, 0}, "Na"}, {{a / 2, a / 2, a / 2}, "Cl"}}, {a -> 564.02}};
Wolfram Language code: fluorite = {{"SubscriptBox[CaF, 2]", "Fluorite"}, "cF12", "C1", "FmOverscriptBox[3, _]m", 225, {{0, a / 2, a / 2}, {a / 2, 0, a / 2}, {a / 2, a / 2, 0}}, {{{0, 0, 0}, "Ca"}, {{a / 4, a / 4, a / 4}, "F"}, {{-a / 4, -a / 4, -a / 4}, "F"}}, {}};
Wolfram Language code: wurtzite = {{"ZnS", "Wurtzite"}, "hP4", "B4", "SubscriptBox[P6, 3 mc]", 186, {{a / 2, -a / 2Sqrt[3], 0}, {a / 2, a / 2Sqrt[3], 0}, {0, 0, c}}, {{{a / 2, a / 2 / Sqrt[3], 0}, "Zn"}, {{a / 2, -a / 2 / Sqrt[3], c / 2}, "Zn"}, {{a / 2, a / 2 / Sqrt[3], u c}, "S"}, {{a / 2, -a / 2 / Sqrt[3], (1 / 2 + u) c}, "S"}}, {a -> 382, c -> 626, u -> 3 / 8}};
When GTPack is loaded, SpaceGroups.m contains the empty list spcgrp.
Wolfram Language code: spcgrp
The structures defined above, can be added to spcgrp, using GTInstallStructure.
Wolfram Language code: GTInstallStructure[diamond] GTInstallStructure[nacl] GTInstallStructure[wurtzite] GTInstallStructure[fluorite]
The content of spcgrp, can be displayed using GTAllStructures.
Wolfram Language code: GTAllStructures[]
It is not possible to install a structure twice.
Wolfram Language code: GTInstallStructure[diamond]
To display a certain structure, GTGetStructure can be used. As argument, a certain information of the structure can be taken into account (e.g. the Pearson symbol, the Strukturbericht symbol or the name).
Wolfram Language code: GTGetStructure["B1"]
The implemented structures can be saved to an arbitrary file using GTSaveStructures.
Wolfram Language code: SetDirectory[NotebookDirectory[]]; GTSaveStructures["spcgrp_test.m"]
To load structures from a file take GTLoadStructures.
Wolfram Language code: GTLoadStructures["spcgrp_test.m"]
To illustrate the structures, the command GTPlotStructure is implemented. All you have to do is to specify the plot range as well as the structure.
Wolfram Language code: NaCl = GTGetStructure["NaCl"]
Wolfram Language code: min = {0, 0, 0} /. a -> 564; max = {2 a, 2 a, 2 a} /. a -> 564;
Wolfram Language code: scale = 1. GTPlotStructure[NaCl, min, max, scale]
Wolfram Language code: scale = .25 GTPlotStructure[NaCl, min, max, scale]

Related Guides

    ▪
  • W. Hergert, R. M. Geilhufe, Group Theory in Solid State Physics and Photonics: Problem Solving with Mathematica, Wiley-VCH, ISBN: 978-3-527-41133-7 (2018).

Related Tech Notes

    ▪
  • Tight-binding electronic structure of graphene
Not Found - Wolfram Cloud