GOMethod
  • See Also
    • GTClusterManipulate
    • GTGetIrep
  • Related Guides
    • Options
    • See Also
      • GTClusterManipulate
      • GTGetIrep
    • Related Guides
      • Options

GOMethod

is an option to control the manipulation of a cluster.

Details and Options
Details and Options Details and Options
Examples  
Basic Examples  
GTClusterManipulate  
See Also
Related Guides
GROUP THEORY SYMBOL
  • See Also
    • GTClusterManipulate
    • GTGetIrep
  • Related Guides
    • Options
    • See Also
      • GTClusterManipulate
      • GTGetIrep
    • Related Guides
      • Options
GroupTheory`
GroupTheory`

GOMethod

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)

First load the package:

Wolfram Language code: Needs["GroupTheory`"]

GTClusterManipulate  (14)

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: clu = GTCluster[bto, 3 / 2, GOLattice -> {a -> 1}];

Now the cluster can be plotted:

Wolfram Language code: 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.

"Help"

The help option allows to get an overview of all implemented manipulations.

Wolfram Language code: GTClusterManipulate[clu, GOMethod -> "Help"];

"AddAtoms"

Atoms can be added to the cluster.

Wolfram Language code: 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.

Wolfram Language code: 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.

"CutPlane"

A plane is defined by the normal vector to the plane and one point lying in the plane.

Wolfram Language code: clpl = GTClusterManipulate[clu, GOMethod -> {"CutPlane", {{1, 1, 0}, {0, 0, 0}}}];GTPlotCluster[clpl, 1, 2, GOColorScheme -> {Red, Blue, Green}]

"CutSphere"

A spherical cluster is cut out of the cluster around a given position.

Wolfram Language code: 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.

Wolfram Language code: clsp = GTClusterManipulate[clsp, GOMethod -> {"Translate", {1 / 2, 0, 0}}];GTPlotCluster[clsp, 1 / 2Sqrt[2], 2, GOColorScheme -> {Red, Blue, Green}]

"Project"

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.

Wolfram Language code: clp = GTClusterManipulate[clsl, GOMethod -> "Project"];clp
Wolfram Language code: GTPlotCluster[clp, 1 / 2Sqrt[2], 2, GOColorScheme -> {Red, Blue, Green}, GOSphere -> False]

"RemoveAtoms"

Single atoms can be removed from the cluster.

Wolfram Language code: 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}]

"RemoveType"

Atoms of a special type will be removed from the cluster. Here, the Ba atoms will be removed from the cluster with surface.

Wolfram Language code: clba = GTClusterManipulate[cls, GOMethod -> {"RemoveType", "Ba"}];GTPlotCluster[clba, 1 / 2Sqrt[2], 2, GOColorScheme -> {Blue, Green}]

"Rotate"

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.

Wolfram Language code: 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

Wolfram Language code: 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.

Wolfram Language code: clsrot = GTClusterManipulate[clsp, GOMethod -> {"Rotate", {π / 4, {0, 0, 1.}}}];GTPlotCluster[clsrot, 1 / 2Sqrt[2], 2, GOCoordinateSystem -> True, GOColorScheme -> {Red, Blue, Green}]

"Surface"

A surface will be created.

Wolfram Language code: cls = GTClusterManipulate[clu, GOMethod -> "Surface"];GTPlotCluster[cls, 1 / 2Sqrt[2], 2, GOColorScheme -> {Red, Blue, Green}]

"SelectType"

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.

Wolfram Language code: clti = GTClusterManipulate[cls, GOMethod -> {"SelectType", "Ti"}];GTPlotCluster[clti, 1, 2, GOColorScheme -> {Green}]

"Slab"

A certain number of layers will be cut out of the cluster. Needs a cluster surface. The layers are counted for z<=0.

Wolfram Language code: clsl = GTClusterManipulate[cls, GOMethod -> {"Slab", 2}];GTPlotCluster[clsl, 1 / 2Sqrt[2], 2, GOColorScheme -> {Red, Blue, Green}, GOSphere -> False]

"SymmetryElement"

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.

Wolfram Language code: clu = GTCluster[bto, 1, GOLattice -> {a -> 1}];
Wolfram Language code: GTPlotCluster[clu, 1 / 2Sqrt[2], 2, GOCoordinateSystem -> True, GOColorScheme -> {Red, Blue, Green}]

We want to to apply to the cluster.

Wolfram Language code: clsymm = GTClusterManipulate[clu, GOMethod -> {"SymmetryElement", C3z}];GTPlotCluster[clsymm, 1 / 2Sqrt[2], 2, GOCoordinateSystem -> True, GOColorScheme -> {Red, Blue, Green}]

"Translate"

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.

Wolfram Language code: cltr = GTClusterManipulate[clu, GOMethod -> {"Translate", {-1 / 2, 0, 0}}];GTPlotCluster[cltr, 1 / 2Sqrt[2], 2, GOColorScheme -> {Red, Blue, Green}]

"Impurities"

50% of the Ti atoms will be substitute by Fe atoms.A larger cluster is created.

Wolfram Language code: clu = GTCluster[bto, 2, GOLattice -> {a -> 1}];
Wolfram Language code: cla = GTClusterManipulate[clu, GOMethod -> {"Impurities", {{"Ti", "Co"}, 1.9, .5}}];
Wolfram Language code: GTPlotCluster[cla, .7, 2, GOColorScheme -> {Pink, Blue, Red, Green}]

See Also

GTClusterManipulate  GTGetIrep

Related Guides

    ▪
  • Options
Not Found - Wolfram Cloud