CederGroupHub / chgnet

Pretrained universal neural network potential for charge-informed atomistic modeling https://chgnet.lbl.gov
https://doi.org/10.1038/s42256-023-00716-3
Other
220 stars 60 forks source link

How to run chgnet with initial charge #83

Closed mondalsou closed 10 months ago

mondalsou commented 10 months ago

Email (Optional)

No response

Problem

I am trying to optimize the charged structure. Is there any place to put the total charge inside the input? For example, If I want to calculate the total energy of the [SO4]2-, how to put the total charge -2 to the input file ? I found one parameter called set_charge that is not working.

Proposed Solution

WIll be good if we could set the total charge inside the input.

Alternatives

No response

Code of Conduct

BowenD-UCB commented 10 months ago

Hi,

Currently there is no way to add background charge in CHGNet calculation, if you're referring to something similar to VASP NELECT setting. This is definitely an interesting feature to add, but CHGNet is not capable of doing so since the training dataset of Materials Project consists of only charge neutral structures.

One possible workaround I can imagine now is to put the [SO4]2- in a charge neutral system (adding the cation), and take advantage of the site energy prediction of CHGNet to get the energy contribution from the [SO4]2-