GTExportXSF[filename,data]
exports structure data to .xsf format for visualisation with e.g. XCrySDen.
Details and Options
Examples
Basic Examples
Options
GOVerbose
See Also
Related Guides
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 True Controls 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 allBasic Examples (1)
Needs["GroupTheory`"]Clear internal variable spcgrp.
GTClearStructures[]Show already installed crystal data.
GTAllStructures[]Crystal structure not found? Import it or gather already implemented structures via GTGetStructure.
SetDirectory[NotebookDirectory[] <> "datasets"];
nacl = GTImportCIF["nacl.cif"]copper = GTImportCIF["copper.cif"];
GTInstallStructure[copper]
cop = GTGetStructure["Copper", GOVerbose -> False]Change the exported directory and export the data.
SetDirectory[$TemporaryDirectory];
GTExportXSF["nacl.xsf", nacl]GTExportXSF["copper.xsf", cop]