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.
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 False Plots a coordinate system GODimension 3 Plots a 3D graphics object GODirection {0, 0, 0} Indicates a special direction GOPlot True Decides if the cluster is plotted GOSphere True Plots 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 allBasic Examples (1)
Needs["GroupTheory`"]SetDirectory[NotebookDirectory[] <> "datasets"];GTLoadStructures["GTPack"];Load the structure from a file and extract the the structure for Barium titanate.
bto = GTGetStructure["BTO"];clu0 = GTCluster[bto, 1, GOLattice -> {a -> 1}];Now the cluster can be plotted.
GTPlotCluster[clu0, 1 / 2Sqrt[2], 2]clu = GTCluster[bto, 4, GOLattice -> {a -> 1}];cluxy = GTClusterManipulate[clu, GOMethod -> {"CutPlane", {{0, 0, 1}, {0, 0, 0}}}];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.
GTPlotCluster[clu0, 1 / 2Sqrt[2], 2, GOColorScheme -> "ElementData"]The definition of the colors correspond to the alphabetical order of the elements.
GTPlotCluster[clu0, 1 / 2Sqrt[2], 2, GOColorScheme -> {Red, Blue, Green}]GOCoordinateSystem (1)
GODirection (1)
Special directions can be marked by an arrow. The direction has to be scaled accordingly to fit to the plot.
scale = .8;go = GTPlotCluster[clu0, 1 / 2Sqrt[2], 2, GOCoordinateSystem -> True, GODirection -> scale * {1, 1, 1}]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.
scale = 0.2;GTPlotCluster[cluxy, 1 / 2Sqrt[2], 3, GOCoordinateSystem -> True, GODimension -> 3, GOSphere -> True]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.
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.
GTPlotCluster[clu0, 1 / 2Sqrt[2], 2, GOPlot -> True]go = GTPlotCluster[clu0, 1 / 2Sqrt[2], 2, GOPlot -> False];Graphics3D[go]Use Graphics3D to plot the graphics object
Graphics3D[go]GOSphere (1)
Usually the cluster is plotted with an circumscribing sphere. The sphere can be switched of.
GTPlotCluster[clu0, 1 / 2Sqrt[2], 2, GOSphere -> True]GTPlotCluster[clu0, 1 / 2Sqrt[2], 2, GOSphere -> False]If a 2D plot is generated instead of the sphere a disc is plotted.
GTPlotCluster[cluxy, 1 / 2Sqrt[2], 3, GODimension -> 2]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.
bonds = {{{"O", "O"}, {Thick, Red}}};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.
GTPlotCluster[clu0, 1 / 2Sqrt[2], 2, GOColorScheme -> {Red, Blue, Green}, GOSphere -> False, GOBondColor -> bonds]