Skip to content
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

Created Coulomb prior #159

Merged
merged 7 commits into from Jun 7, 2023
Merged

Created Coulomb prior #159

merged 7 commits into from Jun 7, 2023

Conversation

peastman
Copy link
Collaborator

@peastman peastman commented Dec 8, 2022

This adds a Coulomb interaction. At the moment it requires partial charges to be specified by the dataset. In the future we'll want to let the model predict charges, but that will come later.

The interaction is applied to all pairs without any cutoff. The point of this prior is to provide accurate long range interactions. It does get scaled by erf(alpha*r), which reduces the effect at short ranges and prevents it from diverging at r=0. That also happens to be the scale factor of the reciprocal space term in Ewald summation. Eventually we'll want to apply this to large systems that are partly modeled with ML and partly with a conventional force field. The idea is that you'll be able to include the Coulomb prior simply by including the ML region in the reciprocal space PME calculation.

@peastman
Copy link
Collaborator Author

Does anyone have comments on this?

@peastman
Copy link
Collaborator Author

peastman commented Jun 6, 2023

Is it ok to merge this?

@raimis raimis requested a review from RaulPPelaez June 6, 2023 17:27
@RaulPPelaez
Copy link
Collaborator

This LGTM, its merge from me.

@peastman peastman merged commit 237b4fe into torchmd:main Jun 7, 2023
@peastman peastman deleted the coulomb branch June 7, 2023 17:54
@peastman
Copy link
Collaborator Author

peastman commented Jun 7, 2023

Thanks!

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.

None yet

3 participants