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 (<=16) 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 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 Nr qz 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) R(9) c(9) R(10) c(10) R(11) c(11) R(12) c(12) R(13) c(13) R(14) c(14) R(15) c(15) R(16) c(16)

 sphere (3D) disc (2D) rod (1D) 0 1 2 -1 -2 I*q^n 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