GTExportXSF
  • See Also
    • GTAllStructures
    • GTGetStructure
    • GTImportCIF
    • GTLoadStructures
    • GTSaveStructures
  • Related Guides
    • Crystal Structure
    • See Also
      • GTAllStructures
      • GTGetStructure
      • GTImportCIF
      • GTLoadStructures
      • GTSaveStructures
    • Related Guides
      • Crystal Structure

GTExportXSF[filename,data]

exports structure data to .xsf format for visualisation with e.g. XCrySDen.

Details and Options
Details and Options Details and Options
Examples  
Basic Examples  
Options  
GOVerbose  
See Also
Related Guides
GROUP THEORY SYMBOL
  • See Also
    • GTAllStructures
    • GTGetStructure
    • GTImportCIF
    • GTLoadStructures
    • GTSaveStructures
  • Related Guides
    • Crystal Structure
    • See Also
      • GTAllStructures
      • GTGetStructure
      • GTImportCIF
      • GTLoadStructures
      • GTSaveStructures
    • Related Guides
      • Crystal Structure
GroupTheory`
GroupTheory`

GTExportXSF

GTExportXSF[filename,data]

exports structure data to .xsf format for visualisation with e.g. XCrySDen.

Details and Options

  • GTExportXSF exports structure data according to the .xsf format. Due to the simplicity of the .xsf format only the lattice vectors and the atom positions are exported.
  • The module tries to convert the atom labels to element labels, which may leed to error messages on failure.
  • Structures can be gatherd by GTGetStructure or GTImportCIF.
  • Installed structures can be shown using GTAllStructures.
  • The following option can be used:
  • GOVerbose TrueControls the ouptput of additional information
  • See: W. Hergert, M. Geilhufe, Group Theory in Solid State Physics and Photonics. Problem Solving with Mathematica

Examples

open all close all

Basic Examples  (1)

First, load the package:

Wolfram Language code: Needs["GroupTheory`"]

Clear internal variable spcgrp.

Wolfram Language code: GTClearStructures[]

Show already installed crystal data.

Wolfram Language code: GTAllStructures[]

Crystal structure not found? Import it or gather already implemented structures via GTGetStructure.

Wolfram Language code: SetDirectory[NotebookDirectory[] <> "datasets"]; nacl = GTImportCIF["nacl.cif"]
Wolfram Language code: copper = GTImportCIF["copper.cif"]; GTInstallStructure[copper] cop = GTGetStructure["Copper", GOVerbose -> False]

Change the exported directory and export the data.

Wolfram Language code: SetDirectory[$TemporaryDirectory]; GTExportXSF["nacl.xsf", nacl]
Wolfram Language code: GTExportXSF["copper.xsf", cop]

Options  (1)

GOVerbose  (1)

The Output of the file can be surpressed with GOVerbose  False.

Wolfram Language code: GTExportXSF["copper.xsf", cop, GOVerbose -> False]

See Also

GTAllStructures  GTGetStructure  GTImportCIF  GTLoadStructures  GTSaveStructures

Related Guides

    ▪
  • Crystal Structure
Not Found - Wolfram Cloud