Author Archives: Yi-Xin Liu

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

By: Yi-Xin Liu

Re-posted from: http://www.yxliu.group/2020/03/scattering-2

In this post we will implement a submodule, peak.jl, to model the shape of scattering peaks. Essential Julia language features will be introduced along the development of the submodule. You shall learn types, constructors, functions, methods, functors, modules, testing, and benchmarking after reading this post.

Continue reading

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

By: Yi-Xin Liu

Re-posted from: http://www.yxliu.group/2020/03/scattering-2

In this post we will implement a submodule, peak.jl, to model the shape of scattering peaks. Essential Julia language features will be introduced along the development of the submodule. You shall learn types, constructors, functions, methods, functors, modules, testing, and benchmarking after reading this post.

Continue reading

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

By: Yi-Xin Liu

Re-posted from: http://www.yxliu.group/2020/03/scattering-1

This is the first post of a series of blog posts published in Yi-Xin Liu’s research group website on an effort to demonstrate how to develop a software package for computing scattering and diffraction curves of individual or self-assembled nanoparticles, polymers as well as biological materials using Julia programming language. The purpose of this series of blog posts is in three folds: (1) to provide a source of concise understanding of the scattering theory especially for small angle X-ray scattering (SAXS); (2) to demonstrate the power of the Julia programming language in scientific computing; and (3) to serve as a detailed documentation for the Scattering.jl software package.

Continue reading