Author Archives: Yi-Xin Liu

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

Usage and Testing of rotation.jl

By: Yi-Xin Liu

Re-posted from: http://www.yxliu.group/2020/04/rotation-test

Numerical experiments are carried out to demonstrate the usage as well as serving as a test for the rotation.jl submodule. This is an appendix to the previous post. The format of this post mimics the Jupyter notebook. The output of a code block after run is captured by Literate.jl and rendered here as a markdown code block in the format of the text language.

Continue reading