-
Notifications
You must be signed in to change notification settings - Fork 66
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
CHGNet fails for isolated atoms #35
Comments
This is a expected error since the system is an isolated H atom, and the pretrained CHGNet can not be used to calculate such scenarios. Note that CHGNet is based on graph neural networks which depend on message passing within 5A cutoff. |
I appreciate that, but technically it would be helpful if the code didn't crash and instead the energy for an isolated atom is whatever the atomic reference is (and 0 forces). For example if one wants to calculate atomization energies (of diamond or other materials). Here is a figure for a dissociation curve of H2, it would be nice to continue the graph to infinity: |
Hi, Sorry for the late reply. |
Related: materialsvirtuallab/matgl#85 is an active PR and discussion about how to treat isolated atoms. |
This is now further addressed in: |
If I run a calculation on an isolated atom I get the ValueError below. This issue might happen for example during molecular dynamics.
Example:
Output:
The text was updated successfully, but these errors were encountered: