Skip to content

Conversation

@ejmeitz
Copy link
Contributor

@ejmeitz ejmeitz commented Mar 28, 2025

This command calculates the effective Hamiltonian given trajectory data or optionally can generate configurations a la canonical_configurations to get a "harmonic average". Beyond calculating the energy, this will be useful to checking the convergence of U0 as well as other cumulants that could be used by anharmonic_free_energy. I also need this to check the accuracy of the anharmonic_free_energy command and figured I'd make it a command since there was an open issue (#93).

So far I have checked this against the existing energy calculator inside of extract_forceconstants and I get an exact math. There is still some work to ensure things are correct however. The bulk of the changes are done though and would be happy to get any revisions.

TODO

  • Check this on a polar material
  • Check the canonical configuration path of the code
  • Add tests
  • Docs page

Edit: Pls ignore the git history I made some mistakes :)

@ejmeitz ejmeitz force-pushed the poteng branch 2 times, most recently from 5d95810 to 682fdd9 Compare March 29, 2025 00:33
@ejmeitz
Copy link
Contributor Author

ejmeitz commented Mar 31, 2025

Ok the harmonic average works now. This is useful for estimating the cumulants from sTDEP.

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