Electron density calculator for 2Dhexagonal lattices
This Javascript calculates the 2D electron density distribution rho(r) of a hexagonal lattice from scattering data. Enter the value of the 2Dlattice spacing (d). Enter the peak intensities (as obtained with a 1Ddetector) and the sign of the scattering amplitude (+ or ) of the first order reflection. The intensity values will be multiplicity and Lorentzcorrected. 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. For three reflections the electron density with the 4 sign combinations will be calculated: x/+/+, x/+/, x//+, x//, where x is the sign of the first order reflection. The values are listed/plotted in rho(r) vs rx, ry for all 4 combinations in arbitrary units and can be copied and pasted from the window into any textfile for further processing and graphical displaying.
Input
rho (rx, ry)
d
Nr
r
_{max}
c(1)
+

c(2)
c(3)
Author:
M.Kriechbaum
, TUGraz (2018), email:
manfred.kriechbaum@tugraz.at