GTSaveStructures[database]
saves the content of the global variable spcgrp to a database.
Details and Options
Examples
Basic Examples
See Also
Tech Notes
Related Guides
GroupTheory`
GroupTheory`
GTSaveStructures
GTSaveStructures[database]
saves the content of the global variable spcgrp to a database.
Details and Options
- The global variable spcgrp contains a list of all currently implemented structures. With the help of GTSaveStructures spcgrp can be saved to an external file.
- The database will automatically get the extension ".struc".
- See: W. Hergert, M. Geilhufe, Group Theory in Solid State Physics and Photonics. Problem Solving with Mathematica
Examples
Basic Examples (1)
Needs["GroupTheory`"]Clear the global variable spcgrp for the test.
GTClearStructures[]Then install a crystal structure:
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}};GTInstallStructure[diamond]Using GTSaveStructures, the installed crystal structure is saved to an arbitrary file:
SetDirectory[$TemporaryDirectory];GTSaveStructures["example_spcgrp"]GTLoadStructures["example_spcgrp"]