I(q) calculator of a lattice
This Javascript calculates the scattering curve of a 1D (lamellar), 2D (hexagonal), or several 3D (cubic) lattices, respectively. Enter the lattice type, the lattice spacing (size), the number n of peaks (1 to 8, peak c(0) at q=0 is not counted), their peak areas c(i), the FWHM and an optional constant y-offset of the peaks (for vertical shifting of the plots). For Nr points I(q) from q = 0 to ~ n*2*Pi/size will be calculated. The values are listed/plotted in I(q) vs q in arbitrary units (or I(2theta) vs 2theta in deg using the entered value of the wavelength which is in the same arbitrary units as the size) and can be copied and pasted from the window into any text-file for further processing and graphical displaying. Permitted Bragg-reflections for selected lattice types are listed here and here.

Input I(q)
 peaks 8 7 6 5 4 3 2 1 lattice lamellar hexagonal Pn3m (Q224) Fd3m (Q227) Im3m (Q229) Ia3d (Q230) Pm3n (Q223) Fm3m (Q225) (Q195) (Q196) (Q197) (Q198) (Q199) (Q200) (Q201) (Q202) (Q203) (Q204) (Q205) (Q206) (Q207) (Q208) (Q209) (Q210) (Q211) (Q212) (Q213) (Q214) (Q215) (Q216) (Q217) (Q218) (Q219) (Q220) (Q221) (Q222) (Q226) (Q228) Nr wavelength fwhm size c(0) c(1) c(2) c(3) c(4) c(5) c(6) c(7) c(8) offset overlay: yes no x-axis: q 2theta

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