GTPlotCluster
  • See Also
    • ElementData

    • Functions
    • GTBuckyBall
    • GTCluster
    • GTClusterManipulate
    • GTMolToCluster
    • GTPlotStructure
    • GTPlotStructure2D
    • GTSymmetryElementQ
    • GTAtomsInCell
  • Related Guides
    • Crystal Structure
    • The Mathematica Group Theory Package GTPack, V 1.4
    • See Also
      • ElementData

      • Functions
      • GTBuckyBall
      • GTCluster
      • GTClusterManipulate
      • GTMolToCluster
      • GTPlotStructure
      • GTPlotStructure2D
      • GTSymmetryElementQ
      • GTAtomsInCell
    • Related Guides
      • Crystal Structure
      • The Mathematica Group Theory Package GTPack, V 1.4

GTPlotCluster[cluster,distance,scaling]

creates a plot or a graphics object of cluster. Distance is the maximal distance between atoms to draw a bond. Scaling can be used to scale the radius of the spheres, representing the atoms. If cluster is three-dimensional a Graphics3D object is generated. For a plane cluster a 2D graphic object will be constructed.

Details and Options
Details and Options Details and Options
Examples  
Basic Examples  
Options  
GOColorScheme  
GOCoordinateSystem  
GODirection  
Show More Show More
GODimension  
GOPlot  
GOSphere  
GOBondColor  
See Also
Related Guides
GROUP THEORY SYMBOL
  • See Also
    • ElementData

    • Functions
    • GTBuckyBall
    • GTCluster
    • GTClusterManipulate
    • GTMolToCluster
    • GTPlotStructure
    • GTPlotStructure2D
    • GTSymmetryElementQ
    • GTAtomsInCell
  • Related Guides
    • Crystal Structure
    • The Mathematica Group Theory Package GTPack, V 1.4
    • See Also
      • ElementData

      • Functions
      • GTBuckyBall
      • GTCluster
      • GTClusterManipulate
      • GTMolToCluster
      • GTPlotStructure
      • GTPlotStructure2D
      • GTSymmetryElementQ
      • GTAtomsInCell
    • Related Guides
      • Crystal Structure
      • The Mathematica Group Theory Package GTPack, V 1.4
GroupTheory`
GroupTheory`

GTPlotCluster

GTPlotCluster[cluster,distance,scaling]

creates a plot or a graphics object of cluster. Distance is the maximal distance between atoms to draw a bond. Scaling can be used to scale the radius of the spheres, representing the atoms. If cluster is three-dimensional a Graphics3D object is generated. For a plane cluster a 2D graphic object will be constructed.

Details and Options

  • GTPlotCluster is a simple command to get an overview about the structure of clusters, constructed and manipulated with commands of GTPack. It is a simple drawing tool. It is not planned to produce plots as advanced tools like Vesta and others.
  • The following options can be given:
  • GOColorScheme "ElementData"Selects the color scheme for atoms
    GOCoordinateSystem FalsePlots a coordinate system
    GODimension 3Plots a 3D graphics object
    GODirection {0, 0, 0}Indicates a special direction
    GOPlot TrueDecides if the cluster is plotted
    GOSphere TruePlots the circumscribing sphere
    GOBondColor {}Description of bond colors
  • 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`"]
Wolfram Language code: SetDirectory[NotebookDirectory[] <> "datasets"];GTLoadStructures["GTPack"];

Load the structure from a file and extract the the structure for Barium titanate.

Wolfram Language code: bto = GTGetStructure["BTO"];

Generate the cluster.

Wolfram Language code: clu0 = GTCluster[bto, 1, GOLattice -> {a -> 1}];

Now the cluster can be plotted.

Wolfram Language code: GTPlotCluster[clu0, 1 / 2Sqrt[2], 2]

Construct a larger cluster.

Wolfram Language code: clu = GTCluster[bto, 4, GOLattice -> {a -> 1}];

Cut out a the xy-plane.

Wolfram Language code: cluxy = GTClusterManipulate[clu, GOMethod -> {"CutPlane", {{0, 0, 1}, {0, 0, 0}}}];

Plot the 2D cluster.

Wolfram Language code: GTPlotCluster[cluxy, 1 / 2Sqrt[2], 3, GODimension -> 2]

Options  (7)

GOColorScheme  (1)

Usually the color for the atoms is taken from ElementData. Colors can be defined explicitly with respect to the basis.

Wolfram Language code: GTPlotCluster[clu0, 1 / 2Sqrt[2], 2, GOColorScheme -> "ElementData"]

The definition of the colors correspond to the alphabetical order of the elements.

Wolfram Language code: GTPlotCluster[clu0, 1 / 2Sqrt[2], 2, GOColorScheme -> {Red, Blue, Green}]

GOCoordinateSystem  (1)

A coordinate system can be drawn.

Wolfram Language code: go = GTPlotCluster[clu0, 1 / 2Sqrt[2], 2, GOCoordinateSystem -> True]
Wolfram Language code: GTPlotCluster[cluxy, 1 / 2Sqrt[2], 4, GOCoordinateSystem -> True, GODimension -> 2, GOSphere -> 2]

GODirection  (1)

Special directions can be marked by an arrow. The direction has to be scaled accordingly to fit to the plot.

Wolfram Language code: scale = .8;
Wolfram Language code: go = GTPlotCluster[clu0, 1 / 2Sqrt[2], 2, GOCoordinateSystem -> True, GODirection -> scale * {1, 1, 1}]
Wolfram Language code: scale = 0.2;GTPlotCluster[cluxy, 1 / 2Sqrt[2], 4, GOCoordinateSystem -> True, GODirection -> scale * {1, 1}, GODimension -> 2, GOSphere -> False]

GODimension  (1)

A planar cluster can be presented as a 3D graphical object.

Wolfram Language code: scale = 0.2;GTPlotCluster[cluxy, 1 / 2Sqrt[2], 3, GOCoordinateSystem -> True, GODimension -> 3, GOSphere -> True]
Wolfram Language code: scale = 0.2;GTPlotCluster[cluxy, 1 / 2Sqrt[2], 4, GOCoordinateSystem -> True, GODimension -> 3, GOSphere -> False]

If the cluster is strictly planar a 2D plot seems to be more preferable sometimes.

Wolfram Language code: scale = 0.2;GTPlotCluster[cluxy, 1 / 2Sqrt[2], 3, GOCoordinateSystem -> True, GODimension -> 2, GOSphere -> False]

GOPlot  (1)

The standard output is a plot, but the output can be also a graphics object for further use.

Wolfram Language code: GTPlotCluster[clu0, 1 / 2Sqrt[2], 2, GOPlot -> True]
Wolfram Language code: go = GTPlotCluster[clu0, 1 / 2Sqrt[2], 2, GOPlot -> False];
Wolfram Language code: Graphics3D[go]

Use Graphics3D to plot the graphics object

Wolfram Language code: Graphics3D[go]

GOSphere  (1)

Usually the cluster is plotted with an circumscribing sphere. The sphere can be switched of.

Wolfram Language code: GTPlotCluster[clu0, 1 / 2Sqrt[2], 2, GOSphere -> True]
Wolfram Language code: GTPlotCluster[clu0, 1 / 2Sqrt[2], 2, GOSphere -> False]

If a 2D plot is generated instead of the sphere a disc is plotted.

Wolfram Language code: GTPlotCluster[cluxy, 1 / 2Sqrt[2], 3, GODimension -> 2]
Wolfram Language code: GTPlotCluster[cluxy, 1 / 2Sqrt[2], 3, GODimension -> 2, GOSphere -> False]

GOBondColor  (1)

We can highlight sorts of bonds by colors. Here a two-dimensional example.

Wolfram Language code: bonds = {{{"O", "O"}, {Thick, Red}}};
Wolfram Language code: GTPlotCluster[cluxy, 1 / 2Sqrt[2], 4, GOCoordinateSystem -> True, GODimension -> 2, GOSphere -> 2, GOBondColor -> bonds]

The method can be used also for a three-dimensional structure. Here the O-octahedron is highlighted.

Wolfram Language code: GTPlotCluster[clu0, 1 / 2Sqrt[2], 2, GOColorScheme -> {Red, Blue, Green}, GOSphere -> False, GOBondColor -> bonds]

See Also

ElementData  GTBuckyBall  GTCluster  GTClusterManipulate  GTMolToCluster  GTPlotStructure  GTPlotStructure2D  GTSymmetryElementQ  GTAtomsInCell

Related Guides

    ▪
  • Crystal Structure
  • ▪
  • The Mathematica Group Theory Package GTPack, V 1.4
Not Found - Wolfram Cloud