I(q) function calculator
This Javascript calculates the scattering curve I(q) of concentric shell models (ellipsoids or cylinders). Enter the number of shells, the values for the radius R(i) and semi-axis Rz(i) (z is in direction of the axis of revolution of the ellipsoid or in the direction of the cylinder axis, note: Rz is half of the cylinder height!), the corresponding electron-density c(i) (between R(i) and R(i-1)) and the shape of the shell (E=ellipsoid, C=cylinder), starting with the innermost shell (R1 and Rz1). For Nr points I(h) from q = q1 to qz with a scaling factor f will be calculated. P is the number of points used for the numerical integration. The values are listed in q vs I(q) or q vs log(I(q)) in arbitrary units and can be copied and pasted from the window into any text-file for further processing and graphical displaying.

Input I(q)
shells f P
Nr q1 qz
R(1) Rz(1) c(1)
R(2) Rz(2) c(2)
R(3) Rz(3) c(3)
R(4) Rz(4) c(4)
R(5) Rz(5) c(5)
R(6) Rz(6) c(6)
R(7) Rz(7) c(7)
R(8) Rz(8) c(8)

q vs I(q)
q vs log I(q)


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