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
Periodic boundary conditions with DrudeForce #4521
Comments
That documentation is a bit confusing. I'll fix it. DrudeForce never uses periodic boundary conditions. It's a reasonable question whether it should have an option for it. The force connecting a Drude particle to its parent clearly should never use periodic boundary conditions. That just wouldn't make sense. But the interaction between screened pairs could make sense, if you're simulating an infinite molecule that wraps around. |
That makes sense. I've marked this as a feature request. I should be able to add it soon. |
The implementation is in #4523. If you're interested in testing it out, please let me know whether it works for you. |
Hi, I have a question regarding periodic boundary conditions and the DrudeForce. From the documentation for
DrudeForce
I understand thatdrudeforce.usesPeriodicBoundaryConditions()
will returnTrue
orFalse
depending on if theNonbondedForce
uses PBC. However in my casedrudeforce.usesPeriodicBoundaryConditions()
returnsFalse
althoughnonbondedforce.usesPeriodicBoundaryConditions()
returnsTrue
.Since there is no
drudeforce.setUsesPeriodicBoundaryConditions(True)
how can I setdrudeforce.usesPeriodicBoundaryConditions()
toTrue
?I attach my code:
The output is
The text was updated successfully, but these errors were encountered: