Hi There,
I would like to extend the CustomNonBonded Force class to support the createExceptionsFromBonds() method. My idea is to copy and adapt the needed code from the standard NonBonded class which presents this method. Are there technical issues that I should be aware before embarking in this extension?
Cheers,
Gaetano
createExceptionsFromBonds method in CustomNonBonded Class
- Gaetano Calabro'
- Posts: 24
- Joined: Fri Feb 24, 2012 11:48 am
- Peter Eastman
- Posts: 2593
- Joined: Thu Aug 09, 2007 1:25 pm
Re: createExceptionsFromBonds method in CustomNonBonded Clas
Hi Gaetano,
For the most part that should be straightforward. The one issue of course is that CustomNonbondedForce doesn't have exceptions, just exclusions. So it can exclude the interactions between nearby atoms, but it won't be able to implement a reduced interaction for 1-4 pairs. You could do that with a CustomBondedForce, of course.
Peter
For the most part that should be straightforward. The one issue of course is that CustomNonbondedForce doesn't have exceptions, just exclusions. So it can exclude the interactions between nearby atoms, but it won't be able to implement a reduced interaction for 1-4 pairs. You could do that with a CustomBondedForce, of course.
Peter
- Gaetano Calabro'
- Posts: 24
- Joined: Fri Feb 24, 2012 11:48 am
Re: createExceptionsFromBonds method in CustomNonBonded Clas
Hi Peter,
Thanks for your prompt reply. What can I do if I want to scale the 1-4 interactions and I cannot use the CustomBonded class because of the lack of PBC conditions? Is there an easy way?
Thanks a lot
Gaetano
Thanks for your prompt reply. What can I do if I want to scale the 1-4 interactions and I cannot use the CustomBonded class because of the lack of PBC conditions? Is there an easy way?
Thanks a lot
Gaetano
- Peter Eastman
- Posts: 2593
- Joined: Thu Aug 09, 2007 1:25 pm
Re: createExceptionsFromBonds method in CustomNonBonded Clas
Are you sure that's a problem? Regular 1-4 interactions don't use periodic boundary conditions. The scaling is applied because the atoms are covalently bonded to each other, so it always uses two atoms that are in the same molecule. Even if a different periodic copy managed to get closer, it would be wrong to use the scaled interaction for it, because it's not covalently bonded.
Peter
Peter
- Gaetano Calabro'
- Posts: 24
- Joined: Fri Feb 24, 2012 11:48 am
Re: createExceptionsFromBonds method in CustomNonBonded Clas
Hi Peter,
Thanks for your reply. Yes you're right I was trying to make something wrong.
Cheers,
Gaetano
Thanks for your reply. Yes you're right I was trying to make something wrong.
Cheers,
Gaetano