Basic Examples (7)
Plot unit cells of crystal structures:
Simulation of Bragg reflections for the crystal zinc. Settings here are for a wavelength λ = 0.5 Å, viewing the h k 3 plane, and resolution d{XMLElement[span, {class -> stylebox}, {min}]} = 0.45 Å:
First expand the asymmetric unit of salt into a unit cell (the host), then embed a gold atom (the guest) into the resulting cell at two different positions:
The structure factor of the (1 1 1) reflection of silicon, with the Mo Kα1 wavelength:
Distance between planes with Miller indices (1 1 0):
Get the metric matrix, G, for the crystal quartz:
Options enable, for instance, the possibility to get the inverse metric, H=G{XMLElement[span, {class -> stylebox}, {XMLElement[span, {class -> spacedInfixOperator}, {-}], 1}]}, and with units:
Get the permutations of Miller indices after applying all the symmetry operations of to an arbitrary reflection (h k l):
For a given reflection, for instance (2 0 2), get its symmetry equivalents in the same space group:
Verify that the reflection is not extinct:
For any of the equivalent reflections, get the «standard variant»:
Scope (5)
Import crystal data from CIF files:
Plot the asymmetric unit of the imported ferrocene crystal:
Obtain possible reflection (nodes in reciprocal space) to work with:
Perform calculations — obtaining structure factors, for instance:
Calculations relevant to X-ray physics and diffraction:
Configure the plot graphics or (see also ExpandCrystal):
First expand the asymmetric unit of ice into a 5 × 4 × 1 super-cell, then embed gold atoms into one of the cavity positions if y-position of the host's crystallographic coordinate system is larger than 2; if not, put in a sodium atom there:
Get the symmetry operations belonging to a given space group, like P 42/n:
Find the symmetry equivalent positions for a given symmetry setting (point group, space group or crystal):
If a crystal is given, its atom positions are checked against the reflection conditions. For the general position of R c, these are: