-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Asymmetric Correlations #174
Conversation
Overall this looks good to me. There is a failing test on line 6 of test_correlations.jl due to
|
Lets discuss at the meeting: Are these the correct correlations to be computing? I think that they are but I'm still in the process of verifying this myself. In particular, how are correlations at negative times to be treated (currently, see below, all correlations are at positive times)? This can be very relevant for glassy systems. Sunny.jl/test/test_correlation_sampling.jl Lines 31 to 38 in 70c7aae
|
Ok, status update on this PR:
Those bolded points should be addressed before merging. changes to
Other stuff that's in this PR due to churn but is helpful and should stay:
|
f0f1038
to
84ab24f
Compare
This is ready to merge in my opinion! |
If this works like we're hoping then we can get rid of
|
After the Zoom call, my understanding is that the normalization of LSWT intensities is exactly unchanged, but we need to verify the normalization of intensities from classical dynamics. Specifically, is there a test of the sum rule? Also, if the overall scaling factor is changing anywhere for intensities, we need to document this as a breaking change in versions.md |
Thanks for making all these revisions. I'll spend some time with this tomorrow (run some tests, make sure I understand more of the details). This seems like a neat approach. |
464a378
to
9c22115
Compare
also updates and upgrades the correlation tests
More specifically, this averages over i and sums over j, instead of summing over both i and j.
Closing in favor of #217 |
Out of equilibrium, correlations <A(t) B(0)> and <B(t) A(0)> are different; https://journals.aps.org/prl/pdf/10.1103/PhysRevLett.131.077101
This PR adds support for asking Sunny for these asymmetric correlations. In the LSWT case, this does nothing because the Sab tensor is explicitly symmetric there (for now).
In the classical case, this PR makes two changes:
:all_available
is allowed, which is documented and comes with flavor text explaining the order of the correlations within the vector of correlations that is returned. This is mainly to allow users to ask for (Sx,Sy) and (Sy,Sx) correlations easily without requiring a custom intensity formula and without computing all 9 correlations. By default now, all 9 3x3 dipole-dipole correlations are computed, since they are generally different. Having an asymmetric Sab tensor means that you are out of equilibrium, and is one way to recognize that Langevin didn't do what you wantedThere is a test now which compares the new method of correlation calculation to an FFT-less reference computation.