Why is the structure factor calculation so slow for lennard-jones liquids at low densities? #1249
CreditDefaultSwap
started this conversation in
General
Replies: 1 comment 3 replies
-
Hi @CreditDefaultSwap , The reason the There is some more discussion of memory and time complexity of the direct structure factor on #1242 , in which lowering the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello. I have been using Freud to calculate the structure factor for different values of temperature and density for a pair potential fitted to the Lennard-Jones. Specifically, I am loading trajectories from an *.gsd file and then using
freud.diffraction.StaticStructureFactorDirect.compute(frame,reset=False).
This generally works reasonably "fast" for high densities, \rho, and temperatures, T, of (\rho>0.1 and \T>0.8, in reduced units) and the simulation, from kmin=0.2 to kmax=20 and nbins=100 (50k frames) only takes a few hours in a 256 thread machine. However, for low densities of \rho=0.05, suddenly the computation will take around 28 hr for otherwise the same number of particles and machine!
I understand the box size increases at lower density (trajectories are simulated in an NVT ensemble), but I fail to understand why the computation seems to take exponentially longer at these densities when it's otherwise the same number of particles and same number of wave vector bins.
I rather use an integrated package like Freud and not have to compute this value myself, so I appreciate any clarification on how to overcome this density dependence, especially if it's just a set-up issue. Thanks a lot for any help or comments.
Beta Was this translation helpful? Give feedback.
All reactions