GithubHelp home page GithubHelp logo

Comments (5)

alexberlaga avatar alexberlaga commented on May 27, 2024

After trying many things, increasing the friction coefficient to 1/ps seems to make this PBC issue go away. I am not yet fully convinced that it's not a coincidence, but the more simulations I run with this friction coefficient, the more I'm confident that it's the case.

from openmm.

peastman avatar peastman commented on May 27, 2024

Hopefully that's all it takes. For what it's worth, 1/ps is the default value I usually recommend. Your previous value of 0.01/ps is tiny. It takes hundreds of picoseconds to exchange energy between the system and the heat bath. That doesn't make it less accurate, but it does mean any inaccuracy in the simulation (like from the finite time step) has a lot more opportunity to cause problems.

from openmm.

alexberlaga avatar alexberlaga commented on May 27, 2024

Could such an error occur because of a very low constraint tolerance (maybe the integrator is doing something crazy to enforce a desired temperature)? I noticed that mine is 1e-8, while others in these posts have used tolerances of 1e-5 or 1e-6.

from openmm.

peastman avatar peastman commented on May 27, 2024

Your code uses mixed precision, right? If so, it shouldn't be a problem. 1e-8 is smaller than it's possible to achieve in single precision, which in that case could lead to problems. But in mixed precision the only issue would be slower performance since it needs more iterations to converge the constraints.

from openmm.

alexberlaga avatar alexberlaga commented on May 27, 2024

It seems like this could be a CVPack issue, rather than an openmm issue... when I added a new "force" through CVPack that simply keeps track of certain distances [ cvpack.Distance( ... , pbc=True) ], these errors started popping up again decently often.

from openmm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.