GTClearStructures
  • See Also
    • GTAllStructures
    • GTExportXSF
    • GTGetStructure
    • GTImportCIF
    • GTInstallStructure
    • GTLoadStructures
    • GTPlotStructure
    • GTSaveStructures
  • Tech Notes
    • Working with crystal structures
    • See Also
      • GTAllStructures
      • GTExportXSF
      • GTGetStructure
      • GTImportCIF
      • GTInstallStructure
      • GTLoadStructures
      • GTPlotStructure
      • GTSaveStructures
    • Tech Notes
      • Working with crystal structures

GTClearStructures[database]

removes the content of the global variable spcgrp.

Details
Details and Options Details and Options
Examples  
Basic Examples  
See Also
Tech Notes
Related Guides
GROUP THEORY SYMBOL
  • See Also
    • GTAllStructures
    • GTExportXSF
    • GTGetStructure
    • GTImportCIF
    • GTInstallStructure
    • GTLoadStructures
    • GTPlotStructure
    • GTSaveStructures
  • Tech Notes
    • Working with crystal structures
    • See Also
      • GTAllStructures
      • GTExportXSF
      • GTGetStructure
      • GTImportCIF
      • GTInstallStructure
      • GTLoadStructures
      • GTPlotStructure
      • GTSaveStructures
    • Tech Notes
      • Working with crystal structures
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)

First, load the package:

Wolfram Language code: Needs["GroupTheory`"]

Removes all currently installed structures:

Wolfram Language code: GTClearStructures[]

Read a database with a set of standard structures:

Wolfram Language code: SetDirectory[NotebookDirectory[] <> "datasets"];
Wolfram Language code: GTLoadStructures["GTPack"];

Define a new structure and add it tio the database

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}};
Wolfram Language code: 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:

Wolfram Language code: GTClearStructures[]
Wolfram Language code: spcgrp
Wolfram Language code: GTInstallStructure[diamond]

Then new database can be stored :

Wolfram Language code: SetDirectory[$TemporaryDirectory];GTSaveStructures["example_spcgrp"]

For control read the temporarily stored database.

Wolfram Language code: GTLoadStructures["example_spcgrp"]
Wolfram Language code: ```

See Also

GTAllStructures  GTExportXSF  GTGetStructure  GTImportCIF  GTInstallStructure  GTLoadStructures  GTPlotStructure  GTSaveStructures

Tech Notes

    ▪
  • Working with crystal structures

Related Guides

    ▪

Not Found - Wolfram Cloud