Diffraction calculator of a 2D-square lattice.

Enter the number of shells in the 2D-square unit cell, the shape of each shell (circular or square), their radii r and their electron densities c and lattice spacing d (a=b). The radius r in case of a square is the radius of the inscribed circle. The radii should be increasing from 1 to 10 and intersecting of squares and circles should be avoided. The diffraction peaks up to hk-max ((h*h+k*k) < 400) of the square lattice will be calculated. The values are listed as h, k, h*h+k*k, multiplicity and y-data (scattering amplitudes Fhk). These diffraction peaks are plotted either as amplitudes F(q) or as intensities I(q) with a chosen FWHM-value. Optionally the intensities I(q) can be multiplied by the multiplicities of the respective peaks (*M) and further also be divided by hk^2 (Lorentzfactor, /x**2). Units are arbitrary (A or nm) and can be copied and pasted from the window into any text-file for further processing and graphical displaying. The electron density will then be recalculated from the calculated diffraction peaks and plotted for Nr points (2D) from the center of the symmetric unit cell for n x n cell units. F(0) will also be calculated and used in the electron density calculations (for proper scaling and offset of the electron density).


Input h, k, h*h+k*k, multiplicity, y-data(q) Output/Plot
shells hk-max
a=b: F(0):
r(1) c(1)
r(2) c(2)
r(3) c(3)
r(4) c(4)
r(5) c(5)
r(6) c(6)
r(7) c(7)
r(8) c(8)
r(9) c(9)
r(10) c(10)

Nr (points, 2D):
unit cells (n x n ):
colorscale:
colorscale/background:
2D-plot:
3D-plot:
colorscale-zmin:
colorscale-zmax:
Nr (points, 1D)
FWHM
y-data-correction
scaling factor
offset



Author: M.Kriechbaum, TU-Graz (2023), e-mail: manfred.kriechbaum@tugraz.at