Page 1 of 1

Specifying specific pairwise van der Waals interactions

Posted: Fri Aug 10, 2012 7:33 am
by brookscl
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?

Re: Specifying specific pairwise van der Waals interactions

Posted: Fri Aug 10, 2012 10:26 am
by peastman
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

Re: Specifying specific pairwise van der Waals interactions

Posted: Fri Aug 10, 2012 1:25 pm
by brookscl
Thanks Peter, think I got it.