is an option to control the manipulation of a cluster.
GOMethod
is an option to control the manipulation of a cluster.
Details and Options
- For GTClusterManipulate possible settings for GOMethod are:
-
"AddAtoms" Adds additional atoms to the cluster "CutPlane" Cuts a plane out of a cluster "CutSphere" Cuts sphere out of cluster around a given position "Project" Projects the atoms in the cluster to plane z=0 "RemoveAtoms" Removes atoms from the cluster "RemoveType" Removes atoms of a certain type from the cluster "Rotate" Rotates the whole cluster "SelectType" Selects atoms of a certain type "Slab" Cuts a slab out of the cluster "Surface" Generates a surface "SymmetryElement" Applies a symmetry operation to the whole cluster "Translate" Translates the whole cluster "Impurities" Substitutes atoms in cluster randomly - For GTGetIrep possible settings for GOMethod are
-
"Flodmark" algorithm according to S. Flodmark, E. Blokker, International Journal of Quantum Chemistry,1967, 1, 703-711 "Cornwell" algorithm according to J. Cornwell, Academic Press, 1984
Examples
Basic Examples (15)
Needs["GroupTheory`"]GTClusterManipulate (14)
SetDirectory[NotebookDirectory[] <> "datasets"];GTLoadStructures["GTPack"];Load the structure from a file and extract the the structure for Barium titanate.
bto = GTGetStructure["BTO"];clu = GTCluster[bto, 3 / 2, GOLattice -> {a -> 1}];Now the cluster can be plotted:
GTPlotCluster[clu, 1 / 2Sqrt[2], 2, GOColorScheme -> {Red, Blue, Green}]Several manipulations are controlled by a keyword only, but other have to be accompanied by some detailed information to perform the action.
The help option allows to get an overview of all implemented manipulations.
GTClusterManipulate[clu, GOMethod -> "Help"];Atoms can be added to the cluster.
cla = GTClusterManipulate[clu, GOMethod -> {"AddAtoms", {{{0, 0, 1}, "Cu"}, {{1, 1, 1 / 2}, "Au"}}}];GTPlotCluster[cla, 1 / 2Sqrt[2], 2, GOSphere -> False]In this plot the colors from ElementData are used. We can also provide a custom color scheme.
GTPlotCluster[cla, 1 / 2Sqrt[2], 2, GOSphere -> False, GOColorScheme -> {Cyan, Red, Magenta, Blue, Green}]In this case one has to order the colors with respect to the alphabet for all atoms.
A plane is defined by the normal vector to the plane and one point lying in the plane.
clpl = GTClusterManipulate[clu, GOMethod -> {"CutPlane", {{1, 1, 0}, {0, 0, 0}}}];GTPlotCluster[clpl, 1, 2, GOColorScheme -> {Red, Blue, Green}]A spherical cluster is cut out of the cluster around a given position.
clsp = GTClusterManipulate[clu, GOMethod -> {"CutSphere", {{-1 / 2, 0, 0}, 1}}];GTPlotCluster[clsp, 1 / 2Sqrt[2], 2, GOColorScheme -> {Red, Blue, Green}]After cutting out the new sphere, it might be translated such, the the center of the cluster becomes the origin. In the original cluster a Ti atom was in the center of the cluster. Now an O atom is located in the center of the smaller cluster.
clsp = GTClusterManipulate[clsp, GOMethod -> {"Translate", {1 / 2, 0, 0}}];GTPlotCluster[clsp, 1 / 2Sqrt[2], 2, GOColorScheme -> {Red, Blue, Green}]The atoms in the cluster will be projected to the plane z=0. Here, the atoms in the slab will be projected. Several atoms might be projected to the same position in the z=0 plane. You have to create the slab first.
clp = GTClusterManipulate[clsl, GOMethod -> "Project"];clpGTPlotCluster[clp, 1 / 2Sqrt[2], 2, GOColorScheme -> {Red, Blue, Green}, GOSphere -> False]Single atoms can be removed from the cluster.
clr1 = GTClusterManipulate[cla, GOMethod -> {"RemoveAtoms", {{{0, 0, 1}, "Cu"}, {{0, 0, 0}, "Ti"}}}];GTPlotCluster[clr1, 1 / 2Sqrt[2], 2, GOSphere -> False, GOColorScheme -> {Cyan, Red, Blue, Green}]Atoms of a special type will be removed from the cluster. Here, the Ba atoms will be removed from the cluster with surface.
clba = GTClusterManipulate[cls, GOMethod -> {"RemoveType", "Ba"}];GTPlotCluster[clba, 1 / 2Sqrt[2], 2, GOColorScheme -> {Blue, Green}]The whole cluster will be rotated. The rotation can be defined in two ways. First, a list of two vectors is given. The first vector will be transformed to the second vector. Second, a scalar and a vector is given. The scalar represents the rotation angle and the vector defines the rotation axis. We take a small cluster to demonstrate the action. To see better what happens, the coordinate system is drawn. Also the direction which should be the new z-axis is marked.
GTPlotCluster[clsp, 1 / 2Sqrt[2], 2, GOCoordinateSystem -> True, GOColorScheme -> {Red, Blue, Green}, GODirection -> {0, -1, 1}]We want to rotate the 〈110〉 direction to the z-axis, to get a Ba atom on the z-axis
clsrot = GTClusterManipulate[clsp, GOMethod -> {"Rotate", {{0, -1, 1}, {0, 0, 1.}}}];GTPlotCluster[clsrot, 1 / 2Sqrt[2], 2, GOCoordinateSystem -> True, GOColorScheme -> {Red, Blue, Green}]In another mode the cluster can be rotated by a given angle around a given axis.
clsrot = GTClusterManipulate[clsp, GOMethod -> {"Rotate", {π / 4, {0, 0, 1.}}}];GTPlotCluster[clsrot, 1 / 2Sqrt[2], 2, GOCoordinateSystem -> True, GOColorScheme -> {Red, Blue, Green}]cls = GTClusterManipulate[clu, GOMethod -> "Surface"];GTPlotCluster[cls, 1 / 2Sqrt[2], 2, GOColorScheme -> {Red, Blue, Green}]Atoms of a special type will be selected from the cluster. Only those atoms will be shown. Here, Ti atoms will be selected from the cluster with surface.
clti = GTClusterManipulate[cls, GOMethod -> {"SelectType", "Ti"}];GTPlotCluster[clti, 1, 2, GOColorScheme -> {Green}]A certain number of layers will be cut out of the cluster. Needs a cluster surface. The layers are counted for z<=0.
clsl = GTClusterManipulate[cls, GOMethod -> {"Slab", 2}];GTPlotCluster[clsl, 1 / 2Sqrt[2], 2, GOColorScheme -> {Red, Blue, Green}, GOSphere -> False]While Rotate allows a rotation by an arbitrary angle, SymmetryElement applies a symmetry element of a certain point group. The cluster has not to be invariant under this operation.
clu = GTCluster[bto, 1, GOLattice -> {a -> 1}];GTPlotCluster[clu, 1 / 2Sqrt[2], 2, GOCoordinateSystem -> True, GOColorScheme -> {Red, Blue, Green}]We want to to apply
to the cluster.
clsymm = GTClusterManipulate[clu, GOMethod -> {"SymmetryElement", C3z}];GTPlotCluster[clsymm, 1 / 2Sqrt[2], 2, GOCoordinateSystem -> True, GOColorScheme -> {Red, Blue, Green}]The whole cluster will be shifted by the given vector. This can be used to place the origin of the coordinate system into another atom.
cltr = GTClusterManipulate[clu, GOMethod -> {"Translate", {-1 / 2, 0, 0}}];GTPlotCluster[cltr, 1 / 2Sqrt[2], 2, GOColorScheme -> {Red, Blue, Green}]50% of the Ti atoms will be substitute by Fe atoms.A larger cluster is created.
clu = GTCluster[bto, 2, GOLattice -> {a -> 1}];cla = GTClusterManipulate[clu, GOMethod -> {"Impurities", {{"Ti", "Co"}, 1.9, .5}}];GTPlotCluster[cla, .7, 2, GOColorScheme -> {Pink, Blue, Red, Green}]See Also
Related Guides
-
▪
- Options