Scattering curve calculator for fractal sphereflakes
This Javascript calculates the scattering curve I(q)
of a sphereflake, a 3D-fractal model consisting of different sized connected spheres with constant electron densities using the Debye-formula in reciprocal space.
Enter the symmetry (tet: tetrahedral, oct: octahedral, cub: cubic, c-o: cuboctahedral) and the generation of the fractal (G: 0-7, if G > 6
the calculations might be too time consuming), enter the (largest) radius of the zeroth generation fractal (R0) and the ratio
of the next generation spheres (RS), usually RS = 2.0 which means the radius is by the factor 2 smaller than that of the previous generation. If RS < 2 then the spheres of the fractal start overlapping.
For n(I) points the I(q) from q = 0 to qz with a scaling factor F
will be calculated. The number of spheres of the fractal (Nc), the parameters of the maximum dimension (Dm), of the Radius of Gyration (Rg) and of I(0) are also listed and
if F = 0 is entered then I(0) will be normalized to 1.
The values are listed and displayed in I vs q (left plot, optionally log(I) can be plotted) and log(I) vs log(q) (right plot) in arbitrary units
and can be copied and pasted from the window into any text-file for further processing and graphical displaying. An animation of the fractal model (G = 0-7, RS = 1.0-4.0) can be
created and visualized
here.