GTChangeCoord
  • See Also
    • GTAllStructures
    • GTGetStructure
    • GTLatticeVectors
    • GTLoadStructures
    • GTPlotStructure
    • GTSaveStructures
    • GTSpaceGroups
    • GTReciprocalBasis
    • GTClearStructures
    • GTInstallStructure
    • GTImportCIF
  • Related Guides
    • Crystal Structure
  • Tech Notes
    • Working with crystal structures
    • See Also
      • GTAllStructures
      • GTGetStructure
      • GTLatticeVectors
      • GTLoadStructures
      • GTPlotStructure
      • GTSaveStructures
      • GTSpaceGroups
      • GTReciprocalBasis
      • GTClearStructures
      • GTInstallStructure
      • GTImportCIF
    • Related Guides
      • Crystal Structure
    • Tech Notes
      • Working with crystal structures

GTChangeCoord[crystal structure]

changes the coordinates of the basis atoms of crystal structure from relative to the lattice vectors to Cartesian.

Details and Options
Details and Options Details and Options
Examples  
Basic Examples  
Options  
GOVerbose  
See Also
Tech Notes
Related Guides
GROUP THEORY PACKAGE SYMBOL
  • See Also
    • GTAllStructures
    • GTGetStructure
    • GTLatticeVectors
    • GTLoadStructures
    • GTPlotStructure
    • GTSaveStructures
    • GTSpaceGroups
    • GTReciprocalBasis
    • GTClearStructures
    • GTInstallStructure
    • GTImportCIF
  • Related Guides
    • Crystal Structure
  • Tech Notes
    • Working with crystal structures
    • See Also
      • GTAllStructures
      • GTGetStructure
      • GTLatticeVectors
      • GTLoadStructures
      • GTPlotStructure
      • GTSaveStructures
      • GTSpaceGroups
      • GTReciprocalBasis
      • GTClearStructures
      • GTInstallStructure
      • GTImportCIF
    • Related Guides
      • Crystal Structure
    • Tech Notes
      • Working with crystal structures
GroupTheory`CrystalStructure`
GroupTheory`CrystalStructure`

GTChangeCoord

GTChangeCoord[crystal structure]

changes the coordinates of the basis atoms of crystal structure from relative to the lattice vectors to Cartesian.

Details and Options

  • A series of crystal structures, frequently used in GTPack is stored in the database GTPack.struc In this database the positions of the basis atoms are given in Cartesian coordinates. More common is to give those positions in terms of the lattice vectors. Thus the database GTPackR.struc which extends the number of implemented structures a bit uses the formulation in fractions of the lattice constant.
  • A series of commands depends on the information in crystal structure. This extension of the structure definition is done in such a way, that you can use both types of databases and it will be internally realized what is to do.
  • If you construct your own datasets, you can mix the definitions. Note, the old list of crystal structure has length 8, i.e. in such a list Cartesian coordinates are used for the positions of the basis atoms. In the format the crystal structure list has length 9. The ninth elements indicates which kind of definition is used for the basis atoms: "R" - in fractions of lattice vectors, "C" - Cartesian coordinates.
  • The following option can be given:
  • GOVerbose FalseControls the output of additional information
  • This command is new and not explained in:
  • W. Hergert, M. Geilhufe, Group Theory in Solid State Physics and Photonics. Problem Solving with Mathematica, chapter B.3

Examples

open all close all

Basic Examples  (1)

First, load the package:

Wolfram Language code: Needs["GroupTheory`"]

We define the diamond crystal structure with atom positions given inCartesian coordinates in the old form.

Wolfram Language code: diam0 = {{"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}};
Wolfram Language code: GTChangeCoord[diam0]

The same definition of the atomic positions, but with the additional indication in the 9th element.

Wolfram Language code: diam1 = {{"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}, "C"};
Wolfram Language code: GTChangeCoord[diam1]

In both examples a recalculation is not necessary.

In the next structure file the positions are given in fractions of the lattice vectors.

Wolfram Language code: diamR = {{"C", "Diamond"}, "cF8", "A4", "Fd3m", 227, {{0, a / 2, a / 2}, {a / 2, 0, a / 2}, {a / 2, a / 2, 0}}, {{{-1 / 8, -1 / 8, -1 / 8}, "C"}, {{1 / 8, 1 / 8, 1 / 8}, "C"}}, {a -> 355}, "R"};
Wolfram Language code: GTChangeCoord[diamR]

The calculation to Cartesian coordinates is done.

The index of the type of data is wrong in this example. Thus, the calculation is stopped.

Wolfram Language code: diamF = {{"C", "Diamond"}, "cF8", "A4", "Fd3m", 227, {{0, a / 2, a / 2}, {a / 2, 0, a / 2}, {a / 2, a / 2, 0}}, {{{-1 / 8, -1 / 8, -1 / 8}, "C"}, {{1 / 8, 1 / 8, 1 / 8}, "C"}}, {a -> 355}, "F"};
Wolfram Language code: GTChangeCoord[diamF]

Options  (1)

GOVerbose  (1)

With GOVerbose->True additional information will be printed.

Wolfram Language code: GTChangeCoord[diam1, GOVerbose -> True];
Wolfram Language code: GTChangeCoord[diamR, GOVerbose -> True];

See Also

GTAllStructures  GTGetStructure  GTLatticeVectors  GTLoadStructures  GTPlotStructure  GTSaveStructures  GTSpaceGroups  GTReciprocalBasis  GTClearStructures  GTInstallStructure  GTImportCIF

Tech Notes

    ▪
  • Working with crystal structures

Related Guides

    ▪
  • Crystal Structure
Not Found - Wolfram Cloud