I(q) function calculator of concentric 3D/2D/1D shell models

This Javascript calculates the scattering curve I(q) of concentric shell models: sphere, disc (cross-section of long rods) or rod (thickness of large discs). Enter the number of radii, the values for the radius R(i) and its electron-density c(i) (between R(i) and R(i-1)). The scattering curve I(q) of the spherical model (D=3) or of the cross-section (2D) or of the thichness (1D) will be calculated for Nr q-values from q = 0 to qz with a scaling factor f. The curves can be multiplied by q^n (with n being -2/-1/0/1/2) and an offset can be added (for vertical shifting of multiple curves). The values are listed in I(q) vs q (where I(q) and/or q can be lin or log, respectively) in arbitrary units and can be copied and pasted from the text-window into any text-file for further processing and graphical displaying. The plot itself can be saved as a png-image file (see options by placing cursor on plot).

Input I(q)
shells I*q^n
peaks d
f y-offset
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)

sphere (3D)
disc (2D)
rod (1D)
lin (q) log (q)
lin I(q) log I(q)
overlay no overlay
Rg



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