Specifying specific pairwise van der Waals interactions
- Charles Brooks
- Posts: 35
- Joined: Fri Feb 24, 2012 11:48 am
Specifying specific pairwise van der Waals interactions
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?
- Peter Eastman
- Posts: 2588
- Joined: Thu Aug 09, 2007 1:25 pm
Re: Specifying specific pairwise van der Waals interactions
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
Peter
- Charles Brooks
- Posts: 35
- Joined: Fri Feb 24, 2012 11:48 am
Re: Specifying specific pairwise van der Waals interactions
Thanks Peter, think I got it.