Perfect crystal with diamond or zincblende structure
Author: Anette Vickery, Andrea Prodi, Erik Knudsen
Date: April 2011
Reads atomic formfactors from a data input file.
The PerfectCrystal code reflects ray in an ideal geometry, does not include surface imperfections or mosaicity
The crystal is positioned such that the long axis of the crystal surface coincides with
z-axis. The angle between the Bragg planes and the crystal surface is alpha
Incoming photon's coordinates and direction (k-vector) are transformed into an elliptical reference frame
(elliptical parameters are calculated according to the mirror's position and its focusing distances and the * incident angle), the intersection point is then defined.
A new, reflected photon is then starting at the point of intersection.
Notation follows Tadashi Matsushita and Hiro-O Hashizume, X-RAY MONOCHROMATORS. Handbook on Synchrotron Radiation,North-Holland Publishing Company, 1:263–274, 1983.
Parameters in boldface are required;
the others are optional.
[m] length of the crystal
[m] width of the crystal
unit cell volume160.1826
alpha=0 for symmetric reflection, ie the Bragg planes are parallel to the crystal surface