Add the structure factor calculation
Add the structure factor calculation