GTAtomsInCell
  • See Also
    • GTCluster
    • GTClusterFilter
    • GTClusterManipulate
    • GTLatCluster
    • GTPlotCluster
  • Related Guides
    • Crystal Structure
    • See Also
      • GTCluster
      • GTClusterFilter
      • GTClusterManipulate
      • GTLatCluster
      • GTPlotCluster
    • Related Guides
      • Crystal Structure

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
Details and Options Details and Options
Examples  
Basic Examples  
Error Messsages  
Options  
GOPlot  
GOVerbose  
See Also
Related Guides
GROUP THEORY SYMBOL
  • See Also
    • GTCluster
    • GTClusterFilter
    • GTClusterManipulate
    • GTLatCluster
    • GTPlotCluster
  • Related Guides
    • Crystal Structure
    • See Also
      • GTCluster
      • GTClusterFilter
      • GTClusterManipulate
      • GTLatCluster
      • GTPlotCluster
    • Related Guides
      • Crystal Structure
GroupTheory`
GroupTheory`

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 TrueDecides if the result is plotted
    GOVerboseTrueDecides 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 all

Basic Examples  (2)

First load the package:

Wolfram Language code: Needs["GroupTheory`"]

From the dataset the structure of barium titanate is extracted

Wolfram Language code: SetDirectory[NotebookDirectory[] <> "datasets"]; GTLoadStructures["GTPack"]; bto = GTGetStructure["BTO"]

Construction of the cluster:

Wolfram Language code: cl = GTCluster[bto, 1.8, GOLattice -> {a -> 1}];

Plot the cluster:

Wolfram Language code: gcl = GTPlotCluster[cl, 0.5, 2, GOCoordinateSystem -> True, GOSphere -> False]

A parallelepiped is defined:

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

Wolfram Language code: cube = Graphics3D[{EdgeForm[{Thick, Black}], FaceForm[{LightRed, Opacity[0.2]}], cell}];Show[cube, gcl]

The atoms will be found in the region:

Wolfram Language code: GTAtomsInCell[cell, cl];
Wolfram Language code:

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

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

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

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

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

Wolfram Language code: scl = GTAtomsInCell[cell, cl, {.5, 4}]
Wolfram Language code: ```

Now the atoms found in the parallelepiped are plotted by means of GTPlotCluster.

Wolfram Language code: GTPlotCluster[scl, Sqrt[2] / 2, 2, GOCoordinateSystem -> True, GOSphere -> False]

Otherwise

Wolfram Language code: scl = GTAtomsInCell[cell, cl, {.7, 2}, GOPlot -> False]

GOVerbose  (1)

Switches on or off additional information.

Wolfram Language code: GTAtomsInCell[obj, cl, {.5, 2}, GOPlot -> False]
Wolfram Language code: GTAtomsInCell[obj, cl, {.5, 2}, GOPlot -> False, GOVerbose -> False]

See Also

GTCluster  GTClusterFilter  GTClusterManipulate  GTLatCluster  GTPlotCluster

Related Guides

    ▪
  • Crystal Structure
Not Found - Wolfram Cloud