Author Archives: Yi-Xin Liu

Julia in Practice: Building Scattering.jl from Scratch (6)

By: Yi-Xin Liu

Re-posted from: http://www.yxliu.group/2020/04/scattering-6

In this post we will first coin the term form factor for arbitrary particles by generalizing the idea of the atomic form factor. We then derive an analytical expression for the form factor of a homogeneous sphere. The functionality is implemented in two submodules: scatterer.jl and formfactor.jl. These two modules will be gradually extended by adding more types of particles as the project goes on.

Continue reading

Julia in Practice: Building Scattering.jl from Scratch (6)

By: Yi-Xin Liu

Re-posted from: http://www.yxliu.group/2020/04/scattering-6

In this post we will first coin the term form factor for arbitrary particles by generalizing the idea of the atomic form factor. We then derive an analytical expression for the form factor of a homogeneous sphere. The functionality is implemented in two submodules: scatterer.jl and formfactor.jl. These two modules will be gradually extended by adding more types of particles as the project goes on.

Continue reading

Julia in Practice: Building Scattering.jl from Scratch (5)

By: Yi-Xin Liu

Re-posted from: http://www.yxliu.group/2020/04/scattering-5

In this post we will present a concise review of the fundamental theory of X-ray scattering, including electromagnetic waves, flux and intensity, scattering cross section and scattering length, scattering by an electron, interference, and atomic form factor. Although the specific properties of X-rays are used, the derivation is applicable to other incident beams, such as neutrons. The derivation presented here is different from most of literature with an emphasis on a consistent treatment on the wave nature of the incident beam. The notations used in this post mostly follow the book by Roe1.

Continue reading