Specifying specific pairwise van der Waals interactions

The functionality of OpenMM will (eventually) include everything that one would need to run modern molecular simulation.
POST REPLY
User avatar
Charles Brooks
Posts: 35
Joined: Fri Feb 24, 2012 11:48 am

Specifying specific pairwise van der Waals interactions

Post by Charles Brooks » Fri Aug 10, 2012 7:33 am

Does anyone have experience or examples in how one might specify particular pairs of atoms to interact with specific Lennard-Jones parameters. For example, I would like to specify a "general" non-bonded set of parameters (charge, LJ epsilon and sigma) as the "default" interaction for atoms and then specify that a particular pair (i,j) of atoms use a different epsilon and sigma than that which would be computed from the standard combination rules using the "default" interaction parameters for atom i and atom j. Is this possible with OpenMM functions existing?

User avatar
Peter Eastman
Posts: 2588
Joined: Thu Aug 09, 2007 1:25 pm

Re: Specifying specific pairwise van der Waals interactions

Post by Peter Eastman » Fri Aug 10, 2012 10:26 am

To do this, call addException() on the NonbondedForce. Here is the API documentation for it. Let me know if you have any questions about how to use it.

Peter

User avatar
Charles Brooks
Posts: 35
Joined: Fri Feb 24, 2012 11:48 am

Re: Specifying specific pairwise van der Waals interactions

Post by Charles Brooks » Fri Aug 10, 2012 1:25 pm

Thanks Peter, think I got it.

POST REPLY