Electron density calculator for 2Dsquare lattices
This Javascript calculates the 2D electron density distribution rho(r) of a square lattice from scattering data. Enter the number of peaks and the value of the 2Dlattice spacing (d). Enter the peak intensities (>= 0 as obtained with a 1Ddetector in transmission mode) and the signs of the scattering amplitudes (+ or ). The intensity values will be multiplicity and Lorentzcorrected. If '0' is selected for the signs of the intensities, the entered values are assumed to be the scattering amplitudes (corrected and with signs!) 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 textfile for further processing and graphical displaying.
Input
rho (rx, ry)
peaks
10
9
8
7
6
5
4
3
2
1
d
Nr
r
_{max}
c(1)
+

0
c(2)
+

0
c(3)
+

0
c(4)
+

0
c(5)
+

0
c(6)
+

0
c(7)
+

0
c(8)
+

0
c(9)
+

0
c(10)
+

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