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

Protein-ligand example has non-zero charge #1136

Open
mattwthompson opened this issue Jan 10, 2025 · 0 comments · May be fixed by #1175
Open

Protein-ligand example has non-zero charge #1136

mattwthompson opened this issue Jan 10, 2025 · 0 comments · May be fixed by #1175
Assignees

Comments

@mattwthompson
Copy link
Member

          I also noticed that the system produced by the protein_ligand example has a net charge of 3 (this is also reported by GROMPP):
>>> import openmm
>>> 
>>> nbforce = openmm_system.getForces()[0]
>>> charge = 0 * openmm.unit.elementary_charge
>>> for i in range(nbforce.getNumParticles()):
...     charge += nbforce.getParticleParameters(i)[0]
>>> charge
Quantity(value=2.9999999198778937, unit=elementary charge)

Originally posted by @Yoshanuikabundi in #1119 (review)

@mattwthompson mattwthompson linked a pull request Feb 28, 2025 that will close this issue
4 tasks
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 a pull request may close this issue.

1 participant