Open pkienzle opened 2 years ago
Now that the paracrystalline models have been corrected, is this still relevant @pkienzle? If so is it correct given the fix is different from what was supposed in #284?
The simulation code is still relevant in as much as it can be used to cross check the analytical results. It may also be useful in the development of models of different types of distortion. It is not part of the released packages so the code does not need careful checking.
For checking implementation of #284 corrections we can simulate a lattice of spheres and compare the resulting patterns.
The
dnn
parameter as currently implemented represents lattice spacing. For example, the following shows that the peak positions are aligned when the lattice spacing (a=500) matches dnn in the code.The lineshape broadening appears to be less in the theory than in the simulation for a given distortion factor but I have not investigated different distortion factors and different simulation sizes. It may be that the distortion model (gaussian around the lattice point) is not implemented correctly or does not match what the paracrystal models are using for distortion.
Ignore details at low q due to finite lattice size.
The realspace.py is using an incorrect scaling factor, so ignore offset in y.
The basic simulation of a 2D pattern does not have enough resolution to verify the details of the simulation:
Increasing the lattice size did not help. Increasing the name of samples to s=150000 has not yet completed running since the algorithm is O(n²).