Search found 2564 matches

by Peter Eastman
Wed Jul 24, 2024 1:15 pm
Forum: OpenMM
Topic: Problem with patches for modified DNA
Replies: 8
Views: 565

Re: Problem with patches for modified DNA

This FAQ entry discusses the various things that can cause that error message. I'm going to guess you have incorrect bonds. When loading a PDB file it knows to add bonds to standard residues, but if you've modified it to be nonstandard it won't know how to add the necessary bonds, and therefore it ...
by Peter Eastman
Mon Jul 22, 2024 8:16 am
Forum: OpenMM
Topic: Appropriate forcefield/residue type for graphene?
Replies: 5
Views: 821

Re: Appropriate forcefield/residue type for graphene?

Just create the System directly. system = System() for atom in topology.atoms(): system.addParticle(atom.element.mass) indices = list(range(system.getNumParticles())) numbers = [atom.element.atomic_number for atom in topology.atoms()] system.addForce(XtbForce(method, charge, multiplicity, periodic, ...
by Peter Eastman
Fri Jul 19, 2024 12:50 pm
Forum: OpenMM
Topic: Python API to evaluate ewald Coulomb force
Replies: 20
Views: 3144

Re: Python API to evaluate ewald Coulomb force

Some of your settings are very usual. For example, you set the cutoff distance to 50 A, which is huge. Values around 10 A are more typical. A timestep of 0.01 ps is larger than people typically use, but 1e-4 ps is much smaller than normally used. Setting all the particles to random initial positions...
by Peter Eastman
Tue Jul 16, 2024 7:57 am
Forum: OpenMM
Topic: OpenMM 8.1.2
Replies: 0
Views: 340

OpenMM 8.1.2

We've released version 8.1.2. This is a patch release that fixes a few mostly minor issues. The most important one is to work around a change in the latest version of GAFF that was causing parameterization of small molecules with openmmforcefields to fail. See https://github.com/openmm/openmm/releas...
by Peter Eastman
Mon Jul 15, 2024 2:27 pm
Forum: OpenMM
Topic: Is it possible to run FEP with NNP?
Replies: 3
Views: 459

Re: Is it possible to run FEP with NNP?

There are two parts to that question. Can you use a NNP? Yes, it's pretty easy. OpenMM-ML provides a high level interface for it. OpenMM-Torch is the lower level interface to PyTorch it's built on. Can you do FEP? There certainly are packages for doing free energy calculations with OpenMM. See for e...
by Peter Eastman
Fri Jul 05, 2024 11:42 am
Forum: OpenMM
Topic: Python API to evaluate ewald Coulomb force
Replies: 20
Views: 3144

Re: Python API to evaluate ewald Coulomb force

simulation.step(num_steps) state.getPositions(asNumpy=True) You don't retrieve a new State object. You call getPositions() on some state you created earlier, though I don't know when or how you created it. That isn't shown in your code. If you want to get the current positions, you need to call get...
by Peter Eastman
Wed Jul 03, 2024 9:32 am
Forum: OpenMM
Topic: Appropriate forcefield/residue type for graphene?
Replies: 5
Views: 821

Re: Appropriate forcefield/residue type for graphene?

You could always install openmm-xtb and use GFN-FF. It's slower than a lot of other force field, and I can't speak for the accuracy, but it's very easy to get any system running.

This paper uses OpenMM to simulate graphene. I'm not sure if their code is available.
by Peter Eastman
Wed Jul 03, 2024 8:13 am
Forum: OpenMM
Topic: Appropriate forcefield/residue type for graphene?
Replies: 5
Views: 821

Re: Appropriate forcefield/residue type for graphene?

It's probably trying to compute the atomic charges using AM1-BCC, which is going to be pretty expensive. I haven't worked with graphene, but I think there are force fields specifically for simulating it. A web search for "graphene molecular force field" turned up lots of hits, for example https://li...
by Peter Eastman
Fri Jun 28, 2024 9:07 am
Forum: OpenMM
Topic: Python API to evaluate ewald Coulomb force
Replies: 20
Views: 3144

Re: Python API to evaluate ewald Coulomb force

Please provide a complete example I can use to reproduce the problem. Otherwise, I don't really know what you're doing or why it isn't working!
by Peter Eastman
Fri Jun 28, 2024 8:02 am
Forum: OpenMM
Topic: Python API to evaluate ewald Coulomb force
Replies: 20
Views: 3144

Re: Python API to evaluate ewald Coulomb force

Can you provide a complete, working example that demonstrates the problem? The code you posted before doesn't correspond to what you described since it doesn't use a real integrator, doesn't run any dynamics, and never retrieves the positions.