Skip to content

Conversation

JonathonMisiewicz
Copy link
Contributor

@JonathonMisiewicz JonathonMisiewicz commented Nov 8, 2022

Description

This is take one at adding the kinetic energy, potential energy, and virial ratio as psivars, for the purposes of cc testing. I'm not confident on how this handles PCM, EFP, PE, and point charges, so putting it up very early for feedback.

User API & Changelog headlines

  • Kinetic energy, potential energy, and virial energy are added as Psi variables for fully QM HF and CC computations. The variable names are subject to change.

Dev notes & details

  • Standardize E_h in docs

Checklist

  • Do we want tests for the new psivars now, or in the next PR?

Status

  • Ready for review
  • Ready for merge - need Lori re-review.

@JonathonMisiewicz JonathonMisiewicz marked this pull request as draft November 8, 2022 17:49
@JonathonMisiewicz
Copy link
Contributor Author

Better idea: in the case of EFP/PE/DDX/etc., we just don't define a virial ratio. If somebody really needs that, they can do the work of figuring out how the virial theorem interacts with these non-quantum terms themselves. Thoughts?

Copy link
Member

@loriab loriab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better idea: in the case of EFP/PE/DDX/etc., we just don't define a virial ratio.

That sounds reasonable to me. I haven't looked for an ideal "universal" place in the code yet, but may as well del_variable the virial qcvars at the end if EFP etc. detected.

Note that the vars will need to have a glossary.rst entry to appease the docs.

@JonathonMisiewicz JonathonMisiewicz marked this pull request as ready for review November 16, 2022 14:22
@JonathonMisiewicz
Copy link
Contributor Author

@loriab, please re-review. The last commit changed variable definitions.

Copy link
Member

@loriab loriab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, new vars well defined, so works for me.

@loriab loriab added this to the Psi4 1.7 milestone Nov 18, 2022
Co-authored-by: Lori A. Burns <lori.burns@gmail.com>
@JonathonMisiewicz JonathonMisiewicz merged commit 760c5af into psi4:master Nov 18, 2022
@JonathonMisiewicz JonathonMisiewicz deleted the virial branch November 18, 2022 19:26
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.

3 participants