Search found 2541 matches

by Peter Eastman
Mon Jan 15, 2024 9:33 am
Forum: OpenMM
Topic: Constraints with Langevin Middle Integrator
Replies: 14
Views: 4093

Re: Constraints with Langevin Middle Integrator

SHAKE is a constraint algorithm. RATTLE is an integration algorithm. They're different because they do different things! Here's an implementation of RATTLE implemented with a CustomIntegrator. CustomIntegrator integrator(dt); integrator.addPerDofVariable("x1", 0); integrator.addUpdateContextState();...
by Peter Eastman
Sun Jan 14, 2024 10:05 am
Forum: OpenMM
Topic: Constraints with Langevin Middle Integrator
Replies: 14
Views: 4093

Re: Constraints with Langevin Middle Integrator

Those algorithms are just different methods of solving the same system of equations. They all produce identical results (up to the tolerance you specify). The velocities are updated correctly in all cases.
by Peter Eastman
Sat Jan 13, 2024 11:07 pm
Forum: OpenMM
Topic: OpenMM 8.1.1
Replies: 0
Views: 367

OpenMM 8.1.1

8.1.1 is now released. You can install it with

Code: Select all

mamba install -c conda-forge openmm
by Peter Eastman
Sat Jan 13, 2024 5:55 pm
Forum: OpenMM
Topic: NetCDFReporter issue
Replies: 2
Views: 491

Re: NetCDFReporter issue

Problems in ParmEd need to be reported at https://github.com/ParmEd/ParmEd/issues. I don't think the author reads this forum.
by Peter Eastman
Sat Jan 13, 2024 9:28 am
Forum: OpenMM
Topic: Constraints with Langevin Middle Integrator
Replies: 14
Views: 4093

Re: Constraints with Langevin Middle Integrator

It depends on the platform, not on the integrator. All platforms use SETTLE for water. The Reference and CPU platforms use CCMA for everything else. The CUDA and OpenCL platforms use SHAKE for small clusters composed of hydrogens bound to a single heavy atom, and CCMA for anything else.
by Peter Eastman
Thu Jan 11, 2024 9:36 am
Forum: OpenMM
Topic: Constraints with Langevin Middle Integrator
Replies: 14
Views: 4093

Re: Constraints with Langevin Middle Integrator

Correct, it would not.
by Peter Eastman
Wed Jan 10, 2024 8:16 pm
Forum: OpenMM
Topic: Constraints with Langevin Middle Integrator
Replies: 14
Views: 4093

Re: Constraints with Langevin Middle Integrator

Almost all integrators apply constraints at the level of positions, and possibly also velocities. You don't integrate the constraint forces. Instead you integrate as if there were no constraints, then modify the positions to satisfy the constraints. Based on how much they change, you can back-calcul...
by Peter Eastman
Mon Jan 08, 2024 11:50 am
Forum: OpenMM
Topic: context.setPositions does not update positions
Replies: 5
Views: 669

Re: context.setPositions does not update positions

You need to move the calls to addParticle() to before you create the Simulation.
by Peter Eastman
Mon Jan 08, 2024 10:56 am
Forum: OpenMM
Topic: context.setPositions does not update positions
Replies: 5
Views: 669

Re: context.setPositions does not update positions

Any change you make to a System doesn't affect already existing Simulations. You need to add the particles before you create the Simulation. See the FAQ for details.
by Peter Eastman
Fri Jan 05, 2024 2:33 pm
Forum: OpenMM
Topic: OpenMM 8.1.1 release candidate
Replies: 0
Views: 169

OpenMM 8.1.1 release candidate

A release candidate for OpenMM 8.1.1 is now available. You can install it with mamba install -c conda-forge/label/openmm_rc -c conda-forge openmm This is a patch release that fixes two bugs. See https://github.com/openmm/openmm/pull/4351 and https://github.com/openmm/openmm/pull/4364 for details. Pl...