GTClearStructures[database]
removes the content of the global variable spcgrp.
Details
Examples
Basic Examples
See Also
Tech Notes
Related Guides
GroupTheory`
GroupTheory`
GTClearStructures
GTClearStructures[database]
removes the content of the global variable spcgrp.
Details
- The global variable spcgrp contains a list of all currently implemented structures. With the help of GTClearStructures spcgrp can be cleaned up.
- See: W. Hergert, M. Geilhufe, Group Theory in Solid State Physics and Photonics. Problem Solving with Mathematica
Examples
Basic Examples (1)
Needs["GroupTheory`"]Removes all currently installed structures:
GTClearStructures[]Read a database with a set of standard structures:
SetDirectory[NotebookDirectory[] <> "datasets"];GTLoadStructures["GTPack"];Define a new structure and add it tio the database
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]The diamond structure is already in the database. If we clean up spcgrp we can add the diamond structure to a fresh database.
Removes all currently installed structures:
GTClearStructures[]spcgrpGTInstallStructure[diamond]Then new database can be stored :
SetDirectory[$TemporaryDirectory];GTSaveStructures["example_spcgrp"]For control read the temporarily stored database.
GTLoadStructures["example_spcgrp"]```