is an option to define a color for bonds between atoms i.e. which colors are used for the different bonds.
Details and Options
Examples
Basic Examples
See Also
GroupTheory`
GroupTheory`
GOBondColor
is an option to define a color for bonds between atoms i.e. which colors are used for the different bonds.
Details and Options
- The color scheme has to be defined explicitly
- A typical values for GOBondColor in BaTiO3 is
-
{{{"O","O"},{Thick,Red}}} bonds between O atoms are highlighted.
Examples
Basic Examples (1)
Needs["GroupTheory`"]
SetDirectory[NotebookDirectory[] <> "datasets"];bto = GTGetStructure["BTO"];Next, the cluster is prepaired and can then be plotted.
cl = GTCluster[bto, Sqrt[3] / 2., GOTbEquivalence -> True, GOLattice -> {a -> 1.}];bonds = {{{"O", "O"}, {Thick, Red}}};GTPlotCluster[cl, Sqrt[2] / 2, 2, GOSphere -> False, GOBondColor -> bonds]Other choices are also possible
bonds = {{{"Ti", "O"}, {Thick, Dotted, Red}}};GTPlotCluster[cl, Sqrt[2] / 2, 2, GOSphere -> False, GOBondColor -> bonds]The setup for the Kagome lattice contains three basis atoms.
kag0 = {{"C", "Kagome"}, "", "", "", , {{a, 0, 0}, {a / 2, Sqrt[3]a / 2, 0}, {0, 0, 0}}, {{{0, 0, 0}, "C1"}, {{a / 2, 0, 0}, "C2"}, {{a / 4, Sqrt[3]a / 4, 0}, "C3"}}, {a -> 1.}};We create and plot the cluster.
cl0 = GTCluster[kag0, 1];GTPlotCluster[cl0, Sqrt[2] / 2, 2, GODimension -> 2, GOColorScheme -> {Red, Blue, Green}, GOSphere -> False, GOCoordinateSystem -> True]This only demonstrates the possibilities we have now with the coloring of bonds.
bonds0 = {{{"C1", "C2"}, {Thick, Red}}, {{"C3", "C1"}, {Dashed, Blue}}, {{"C2", "C3"}, {Dotted, Black}}};GTPlotCluster[cl0, Sqrt[2] / 2, 2, GODimension -> 2, GOColorScheme -> {Red, Blue, Green}, GOSphere -> False, GOCoordinateSystem -> True, GOBondColor -> bonds0]