tabulated potential function

The functionality of OpenMM will (eventually) include everything that one would need to run modern molecular simulation.
POST REPLY
User avatar
Ommair Ishaque
Posts: 11
Joined: Sun Feb 18, 2018 10:22 am

tabulated potential function

Post by Ommair Ishaque » Mon Mar 05, 2018 11:47 am

Hi,

Can anyone guide me how to write my potential in tabulated form? I tried to read the openmm guide but it is not clear how to do this job.

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

Re: tabulated potential function

Post by Peter Eastman » Mon Mar 05, 2018 12:21 pm

Can you describe the potential you want to create?

It generally involves creating a custom force of some type (the type depends on your interaction: is it bonded or nonbonded, how many particles does it involve, etc.). Then you define a TabulatedFunction containing the tabulated values, add it to the force, and write the energy expression for the force in terms of the tabulated function. There are several subclasses of TabulatedFunction depending on whether the function is 1, 2, or 3 dimensional, and whether it's continuous or discrete.

You'll most likely be using either CustomNonbondedForce (http://docs.openmm.org/latest/api-pytho ... ondedForce) or CustomCompoundBondForce (http://docs.openmm.org/latest/api-pytho ... dBondForce).

POST REPLY