Electron density calculator for 2D-hexagonal lattices
This Javascript calculates the 2D electron density distribution rho(r) of a hexagonal lattice from scattering data. Enter the number of peaks and the value of the 2D-lattice spacing (d). Enter the peak intensities (as obtained with a 1D-detector) and the signs of the scattering amplitudes (+ or -). The intensity values will be multiplicity- and Lorentz-corrected. For 2*Nr points rho(r) from -rmax = -rx = -ry to rmax = rx = ry will be calculated. If the calculation takes too long (on a slow computer) decrease Nr. The values are listed/plotted in rho(r) vs rx, ry in arbitrary units and can be copied and pasted from the window into any text-file for further processing and graphical displaying.
Input
rho (rx, ry)
peaks
8
7
6
5
4
3
2
1
d
Nr
r
max
c(1)
+
-
c(2)
+
-
c(3)
+
-
c(4)
+
-
c(5)
+
-
c(6)
+
-
c(7)
+
-
c(8)
+
-
Author:
M.Kriechbaum
, TU-Graz (2018), e-mail:
manfred.kriechbaum@tugraz.at