GTClusterManipulate[cluster]
manipulates a cluster in different ways. The manipulation is controlled by the option GOMethod.
GTClusterManipulate
GTClusterManipulate[cluster]
manipulates a cluster in different ways. The manipulation is controlled by the option GOMethod.
Details and Options
- The command GTCluster generates a spherical cluster. For the discussion of several problems a modification of this basic cluster is necessary. GTClusterManipulate allows a series of manipulations. The command can be easily extended with other manipulations.
- The following option can be given:
-
GOMethod "Help" Presents all implemented manipulations.
Examples
open all close allBasic Examples (1)
Needs["GroupTheory`"]SetDirectory[NotebookDirectory[] <> "datasets"];GTLoadStructures["GTPack"];Load the database 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}]Now a surface will be created. In this process it is assumed, that the z-axis is the surface normal.
cls = GTClusterManipulate[clu, GOMethod -> "Surface"];GTPlotCluster[cls, 1 / 2Sqrt[2], 2, GOColorScheme -> {Red, Blue, Green}]Options (14)
GOMethod (14)
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[cls, 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 our own color scheme.
GTPlotCluster[cla, 1 / 2Sqrt[2], 2, GOSphere -> False, GOColorScheme -> {Cyan, Red, Magenta, Blue, Green}]Note, we have to order the colors with respect to the alphabetical order of the atoms.
A plane is defined by the normal vector of 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
Generate a slab (see explanation to "Slab")
clsl = GTClusterManipulate[cls, GOMethod -> {"Slab", 2}];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}]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. This 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]cls = GTClusterManipulate[clu, GOMethod -> "Surface"];GTPlotCluster[cls, 1 / 2Sqrt[2], 2, GOColorScheme -> {Red, Blue, Green}]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 substituted by Fe atoms. A larger cluster is created.
clu = GTCluster[bto, 2, GOLattice -> {a -> 1}];cla = GTClusterManipulate[clu, GOMethod -> {"Impurities", {{"Ti", "Fe"}, 1.9, .5}}];GTPlotCluster[cla, .7, 2, GOColorScheme -> {Pink, Blue, Red, Green}]