Skip to content
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

Correlation function calculations #4

Open
wants to merge 22 commits into
base: main
Choose a base branch
from
Open

Correlation function calculations #4

wants to merge 22 commits into from

Conversation

amritagos
Copy link
Owner

  • Added a unit test for the correlation function calculation. Bindings were added in bindings.cpp for getting c_ij time series, as well as the time correlation function values.
  • Example for hydrogen bond correlation function
  • Integration of the bond correlation function, for the continuous bond definition

Added a unit test for the correlation function calculation. Bindings
were added in `bindings.cpp` for getting `c_ij` time series, as well
as the time correlation function values.
`--no-build-isolation` doesn't seem to be needed.
Calculated the hydrogen bonds for the continuous bond definition. Does
not otherwise change the effects of the unit test, since there is only
one frame.
Use the continuous hydrogen bond definition by default.
Also changed value in `test_bonds.py` for the continuous bond
definition.
Support for reading in all frames.
New bindings to the `time_correlation_function` which is templated on
the type of the network (`UndirectedNetwork` or `DirectedNetwork`).
Changed `test_correlation.py` to reflect this change.
Requires `spirit-extras` and `matplotlib` as dependencies.
amritagos and others added 2 commits August 23, 2024 16:15
Calculate the lifetime for time correlation function when using the
continuous bond definition.
Removing B in lieu of 1-A gets rid of "bad" results (since B can be 0,
and therefore tau2 could have huge/bad values, leading to a huge /
nonsensical value of the lifetime)

Co-authored-by: Moritz Sallermann <[email protected]>
Functions from and similar to ASE functions now in a separate thirdparty
folder with the license.
Now `io.py` is inside the `thirdparty/ase` directory.
Minor change in `io.py`
You can process a slice of frames in a trajectory.
TODO: add more checks to see that the positions are actually averaged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant