I(q) function calculator
This Javascript calculates the scattering curve I(q) of models consisting of up to 8 spheres with the same radius and optionally different electron densities and different x/y/z coordinates using the Debye-formula in reciprocal space. Enter the number of spheres, their common radius R, their coordinates x(i), y(i), z(i) and their electron-densities c(i). For N points the scattering curve from q = 0 to qmax with a scaling factor f (optionally also in a logarithmic intenisty scale) will be calculated. The values are listed in q vs I(q) or 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) action
R qmax n f
x(1) y(1) z(1) c(1)
x(2) y(2) z(2) c(2)
x(3) y(3) z(3) c(3)
x(4) y(4) z(4) c(4)
x(5) y(5) z(5) c(5)
x(6) y(6) z(6) c(6)
x(7) y(7) z(7) c(7)
x(8) y(8) z(8) c(8)

spheres
I(q)
log I(q)
Rg

I(q)-plot

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