-
Notifications
You must be signed in to change notification settings - Fork 3
Add displacements and momenta outputs #63
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
base: main
Are you sure you want to change the base?
Conversation
1b5fa16
to
6dd8b0f
Compare
ff5d46d
to
eff1760
Compare
eff1760
to
953c875
Compare
@@ -1082,6 +1084,11 @@ static std::map<std::string, Quantity> KNOWN_QUANTITIES = { | |||
// alternative names | |||
{"eV/A^3", "eV/Angstrom^3"}, | |||
}}}, | |||
{"momentum", Quantity{/* name */ "momentum", /* baseline */ "sqrt(eV*u)", { | |||
{"sqrt(eV*u)", 1.0}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's u
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
u is the atomic mass unit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should be Da
: https://en.wikipedia.org/wiki/Dalton_(unit)
elif name == "displacements": | ||
_check_displacements(value, systems, request) | ||
elif name == "momenta": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the other outputs are not pluralized, even when applied to multiple atoms. Should we name these displacement
and momentum
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only precedent is non_conservative_forces
, where we use the plural form
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right =/ My point was that the per-atom energies are still called energy
. I'll ask what other think about this
This PR adds displacements and momenta as standard outputs
Contributor (creator of pull-request) checklist
Issue referenced (for PRs that solve an issue)?Reviewer checklist
📚 Download documentation for this pull-request