GTAtomsInCell[object,cluster,plotdata]
finds all atoms in a region defined by object in cluster. plotdata is used to customize the plot.
GTAtomsInCell
GTAtomsInCell[object,cluster,plotdata]
finds all atoms in a region defined by object in cluster. plotdata is used to customize the plot.
Details and Options
- If a larger cluster, or a complicated structure is constructed it is sometimes hard to inspect the local arrangement of the atoms. In the standard construction of the cluster all atoms inside a sphere are found. With this command we can cut out of cluster the atoms in a certain region defined by object. In the moment the region is a parallelepiped. plotdata helps to customize the plot. It is a list {distance,size}, where distance is the maximum bond length used to plot bonds and size is a parameter for the size of the atoms.
- The following options can be given:
-
GOPlot True Decides if the result is plotted GOVerbose True Decides if additional information is provided. - This command is not explained in: W. Hergert, M. Geilhufe, Group Theory in Solid State Physics and Photonics. Problem Solving with Mathematica
Examples
open all close allBasic Examples (2)
Needs["GroupTheory`"]From the dataset the structure of barium titanate is extracted
SetDirectory[NotebookDirectory[] <> "datasets"];
GTLoadStructures["GTPack"];
bto = GTGetStructure["BTO"]cl = GTCluster[bto, 1.8, GOLattice -> {a -> 1}];gcl = GTPlotCluster[cl, 0.5, 2, GOCoordinateSystem -> True, GOSphere -> False]a1 = {1, 0, 0};a2 = {0, 1, 0};a3 = {0, 0, 1};cell = Parallelepiped[{0, 0, 0}, {a1, a2, a3}];A graphics object is defined from the parallelepiped and showed finally together with the cluster.
cube = Graphics3D[{EdgeForm[{Thick, Black}], FaceForm[{LightRed, Opacity[0.2]}], cell}];Show[cube, gcl]The atoms will be found in the region:
GTAtomsInCell[cell, cl];The region can be defined in different ways. The following list defines also a parallelepiped. The last argument in the last can be used to rotate the object
obj = {{0, 0, 0}, {{1, 0, 0}, {0, 1, 0}, {0, 0, 3}}, {}};GTAtomsInCell[obj, cl];For the definition of the rotation matrix two vectors are given. The first vector is rotated into the second.
obj = {{0, 0, 0}, {{1, 0, 0}, {0, 1, 0}, {0, 0, 3}}, {{0, 0, 1}, {1, 0, 0}}};GTAtomsInCell[obj, cl];Error Messsages (1)
The vectors to define a parallelepiped have to be linear independent.
objt = {{0, 0, 0}, {{1, 0, 0}, {0, 1, 0}, {0, 3, 0}}, {{0, 0, 1}, {1, 0, 0}}};GTAtomsInCell[objt, cl, {.5, 2}];
Input of graphics object (parallelepiped so far) or a list for the definition of the parallelepiped are allowed.
GTAtomsInCell[f[x], cl, {.5, 2}];
Options (2)
GOPlot (1)
If it is set to True, the result is plotted and the also the sub-cluster is given.
scl = GTAtomsInCell[cell, cl, {.5, 4}]```Now the atoms found in the parallelepiped are plotted by means of GTPlotCluster.
GTPlotCluster[scl, Sqrt[2] / 2, 2, GOCoordinateSystem -> True, GOSphere -> False]scl = GTAtomsInCell[cell, cl, {.7, 2}, GOPlot -> False]