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 I(q) or peak amplitudes F(q) and their signs of the scattering amplitudes (+ or -). Select the corrections already applied to the input data: 'none' means no corrections, LC means Lorentz correction (multiplied by q*q) and MC means multiplicity correction (divided by the multiplicities) have already been applied. F(q) have to be entered both LC and MC 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 d
Nr rmax
I(1/0)
I(1/1)
I(2/0)
I(2/1)
I(3/0)
I(2/2)
I(3/1)
I(4/0)
I(3/2)
I(4/1)

data:
colorscale:
2D-plot:
3D-plot:



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