Use of CustomNonbondedForce XML for Buckingham
Posted: Sat Aug 17, 2024 3:00 pm
Greetings, I'm an OpenMM rookie and this looks like one of the best places I've found to ask questions about it.
I was hoping to make a custom nonbonded force field involving Buckingham potentials and there are a couple things from the documentation that I don't understand.
The regular nonbondedforce XML tag seems to collect coulombic forces together with Lennard-Jones and add both a dispersion correction and fudge factors for 1-4 interactions. It also would presumably directly connect the charges written in this force with a PME introduced for long range electrostatics.
How do I add all of these things to a customNonbondedForce tag? From the documentation I could find, given my currently ignorant position, there don't seem to be enough clear specifications to do this. I can see adding coulombic forces in the energy with an L-J potential and then giving a cut-off of 3 bonds, but how do you add in a sensitivity to fudge factors and introduce the dispersion correction?
Further, how does the system know what charges to count up for PME? The atomtypes tags don't specify charge, only mass. If I include a custom force for Buckingham and nothing else, does the PME fail without my adding an explicit coulombic custom force? How do I add a dispersion correction specific to Buckingham? The theory later in the manual seems to imply this is possible, but I'm not clear how.
If I need to go back into the programming to building appropriate generators, where do I look for good, thorough examples of how to write this code?
Thank you!
Greg Smith
I was hoping to make a custom nonbonded force field involving Buckingham potentials and there are a couple things from the documentation that I don't understand.
The regular nonbondedforce XML tag seems to collect coulombic forces together with Lennard-Jones and add both a dispersion correction and fudge factors for 1-4 interactions. It also would presumably directly connect the charges written in this force with a PME introduced for long range electrostatics.
How do I add all of these things to a customNonbondedForce tag? From the documentation I could find, given my currently ignorant position, there don't seem to be enough clear specifications to do this. I can see adding coulombic forces in the energy with an L-J potential and then giving a cut-off of 3 bonds, but how do you add in a sensitivity to fudge factors and introduce the dispersion correction?
Further, how does the system know what charges to count up for PME? The atomtypes tags don't specify charge, only mass. If I include a custom force for Buckingham and nothing else, does the PME fail without my adding an explicit coulombic custom force? How do I add a dispersion correction specific to Buckingham? The theory later in the manual seems to imply this is possible, but I'm not clear how.
If I need to go back into the programming to building appropriate generators, where do I look for good, thorough examples of how to write this code?
Thank you!
Greg Smith