spheres

Monte-Carlo Code

2010/12/21 // 2 Comments

Hi all, Herewith a preliminary release of the Monte-Carlo code for fitting SAXS patterns. Documentation will follow, as will a movie and more. MCFit_sph.m Check it out and let me know if you have any [...]

“Perfect” 1D pattern generation software.

2010/08/30 // 0 Comments

I have written some small, simple bits of Matlab software that can generate scattering patterns in the range you request for polydisperse, dilute spheres or ellipsoids. While nothing new per se, this implementation is guaranteed to produce correct scattering patterns irrespective of the width of the distribution. Allow me to quickly explain. The normal way of calculating these patterns in fitting functions and the likes, is to choose an upper size limit (perhaps related to the width and mean of the distribution), and divide the size range between zero and this upper limit into perhaps 100 different sizes. Then the scattering pattern of each of these contributions is calculated, multiplied with their probability (obtained from the probability (or size) distribution function), multiplied with the square of the particle volume for that size, and then summed. In all, then, this is a numeric integration over the volume-square weighted size distribution. The problem lies in the [...]