Search found 2552 matches

by Peter Eastman
Thu Jul 27, 2023 9:55 am
Forum: OpenMM
Topic: Queries regarding CustomNonbondedForce
Replies: 2
Views: 383

Re: Queries regarding CustomNonbondedForce

NonbondedForce and CustomNonbondedForce both define interactions of every particle in the system with every other. That means you need to define parameters for every particle. It's ok if some of those parameters are such that they don't actually interact, such as having a charge of 0. But you do nee...
by Peter Eastman
Wed Jul 26, 2023 4:25 pm
Forum: OpenMM
Topic: Rotational Constraint on polymer
Replies: 2
Views: 286

Re: Rotational Constraint on polymer

Without introducing a biasing force? No. Anything that prevents it from rotating is, by definition, a bias. A biasing force would be a fairly standard way of handling this situation. Yes, it would affect the results compared to letting it freely rotate in the simulation box, but hopefully the differ...
by Peter Eastman
Thu Jun 22, 2023 1:07 pm
Forum: OpenMM
Topic: Adding ions in OpenMM
Replies: 2
Views: 353

Re: Adding ions in OpenMM

Sure, you can call modeller.add() to add anything you want. You'll need to pick the ion positions yourself in that case.

Is the reason for not using addSolvent() just that you don't want to add any water? If you set numAdded to the number of ions, that will ensure it doesn't add anything else.
by Peter Eastman
Thu Jun 22, 2023 9:06 am
Forum: OpenMM
Topic: Advice on best practices for simulating small molecules in OpenMM
Replies: 2
Views: 266

Re: Advice on best practices for simulating small molecules in OpenMM

So far as I know, Interchange is a recently added class that just provides a different interface to the same parametrization code. For protein-ligand systems, the recommended approach is to use OpenMM's ForceField class for the protein, and add a SMIRNOFFTemplateGenerator for the ligand. See https:/...
by Peter Eastman
Wed Jun 21, 2023 4:00 pm
Forum: OpenMM
Topic: RPMD Integrator Doesn't Conserve Center of Mass Motion
Replies: 2
Views: 253

Re: RPMD Integrator Doesn't Conserve Center of Mass Motion

The fact that it works correctly in double precision mode suggests it's an issue with the accuracy of calculations rather than what particular calculations it's doing. I recently fixed a bug that reduced the accuracy of some calculations in mixed precision mode. It was representing certain constants...
by Peter Eastman
Mon Jun 19, 2023 5:22 pm
Forum: OpenMM
Topic: RPMD Integrator Doesn't Conserve Center of Mass Motion
Replies: 2
Views: 253

Re: RPMD Integrator Doesn't Conserve Center of Mass Motion

Interesting, I'm not sure why that is happening. The CMMotionRemover should be getting applied separately to each bead. I'll take a look and see if I can figure out what's going on.
by Peter Eastman
Mon Jun 19, 2023 5:19 pm
Forum: OpenMM
Topic: How parameters are assigned in OpenMM?
Replies: 2
Views: 220

Re: How parameters are assigned in OpenMM?

The force field format is documented at http://docs.openmm.org/latest/userguide ... g_ffs.html. Atom types are assigned based on elements and bonds. It doesn't matter what names the atoms have, so long as the element symbol column is filled in correctly.
by Peter Eastman
Sat Apr 22, 2023 9:09 am
Forum: OpenMM
Topic: test particle insertion method
Replies: 5
Views: 526

Re: test particle insertion method

It sounds like the question is how to insert a particle, calculate the energy, and then remove it again? Since it's an isolated particle, I assume it isn't involved in any bonded interactions, only nonbonded ones? The simplest way of doing that is to include the extra particle in the system from the...
by Peter Eastman
Thu Apr 20, 2023 10:26 am
Forum: OpenMM
Topic: test particle insertion method
Replies: 5
Views: 526

Re: test particle insertion method

I'm not familiar with that algorithm. Can you describe how it works?
by Peter Eastman
Mon Apr 10, 2023 12:55 pm
Forum: OpenMM
Topic: Loop over trajectory to decompose OpenMM energies
Replies: 7
Views: 695

Re: Loop over trajectory to decompose OpenMM energies

Thanks! By the way, your code can be simplified a bit. Instead of for i in range(system.getNumForces()): force = system.getForce(i) force.setForceGroup(i) forcename = force.getName() forcegroups[forcename] = i you can write for i, force in enumerate(system.getForces()): force.setForceGroup(i) forceg...