GTClusterManipulate
  • See Also
    • GTCluster
    • GTMolToCluster
    • GTPlotCluster
    • GTPlotStructure
    • GTPlotStructure2D
    • GTSymmetryElementQ
    • GTAtomsInCell
  • Related Guides
    • Crystal Structure
    • The Mathematica Group Theory Package GTPack, V 1.4
    • See Also
      • GTCluster
      • GTMolToCluster
      • GTPlotCluster
      • GTPlotStructure
      • GTPlotStructure2D
      • GTSymmetryElementQ
      • GTAtomsInCell
    • Related Guides
      • Crystal Structure
      • The Mathematica Group Theory Package GTPack, V 1.4

GTClusterManipulate[cluster]

manipulates a cluster in different ways. The manipulation is controlled by the option GOMethod.

Details and Options
Details and Options Details and Options
Examples  
Basic Examples  
Options  
GOMethod  
See Also
Related Guides
GROUP THEORY SYMBOL
  • See Also
    • GTCluster
    • GTMolToCluster
    • GTPlotCluster
    • GTPlotStructure
    • GTPlotStructure2D
    • GTSymmetryElementQ
    • GTAtomsInCell
  • Related Guides
    • Crystal Structure
    • The Mathematica Group Theory Package GTPack, V 1.4
    • See Also
      • GTCluster
      • GTMolToCluster
      • GTPlotCluster
      • GTPlotStructure
      • GTPlotStructure2D
      • GTSymmetryElementQ
      • GTAtomsInCell
    • Related Guides
      • Crystal Structure
      • The Mathematica Group Theory Package GTPack, V 1.4
GroupTheory`
GroupTheory`

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 all

Basic Examples  (1)

First load the package:

Wolfram Language code: Needs["GroupTheory`"]
Wolfram Language code: SetDirectory[NotebookDirectory[] <> "datasets"];GTLoadStructures["GTPack"];

Load the database 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}]

Now a surface will be created. In this process it is assumed, that the z-axis is the surface normal.

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

"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[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.

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

"CutPlane"

A plane is defined by the normal vector of 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

Generate a slab (see explanation to "Slab")

Wolfram Language code: clsl = GTClusterManipulate[cls, GOMethod -> {"Slab", 2}];
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}]

"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. This 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]

"Surface"

A surface will be created.

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

"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 substituted 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", "Fe"}, 1.9, .5}}];
Wolfram Language code: GTPlotCluster[cla, .7, 2, GOColorScheme -> {Pink, Blue, Red, Green}]

See Also

GTCluster  GTMolToCluster  GTPlotCluster  GTPlotStructure  GTPlotStructure2D  GTSymmetryElementQ  GTAtomsInCell

Related Guides

    ▪
  • Crystal Structure
  • ▪
  • The Mathematica Group Theory Package GTPack, V 1.4
Not Found - Wolfram Cloud