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

Implement Haven ratio #283

Merged
merged 3 commits into from
Mar 25, 2024
Merged

Implement Haven ratio #283

merged 3 commits into from
Mar 25, 2024

Conversation

stefsmeets
Copy link
Contributor

This PR implements Haven's ratio as described here: #269 (comment)

You call it it via SimulationMetrics.haven_ratio()

Closes #269

@stefsmeets
Copy link
Contributor Author

Hi @v9lgraf , I have no idea if these numbers make sense. Could you have a look and let me know what you think?

>>> from gemdat import Trajectory, SimulationMetrics
>>> 
>>> trajectory = Trajectory.from_vasprun('vasprun.xml')
>>> diff_trajectory = trajectory.filter('Li')
>>> 
>>> metrics = SimulationMetrics(diff_trajectory)
>>> metrics.tracer_diffusivity(dimensions=3)
1.8267357889731602e-09
>>> metrics.ionic_conductivity(dimensions=3)
7.601127262740172e-11
>>> metrics.haven_ratio(dimensions=3)
24.032432635717115

@stefsmeets stefsmeets marked this pull request as ready for review March 25, 2024 09:43
@stefsmeets
Copy link
Contributor Author

I'm going to merge this now @v9lgraf, please let me know if you have a chance to test this and run into issues.

@stefsmeets stefsmeets merged commit 63919cb into main Mar 25, 2024
5 checks passed
@stefsmeets stefsmeets deleted the haven branch March 25, 2024 09:47
@v9lgraf
Copy link

v9lgraf commented Mar 25, 2024

Hi Stef, I saw this and will have a look!

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.

Calculate the Haven's Ratio
2 participants