How to apply arbitrary forces in MD#
There several different methods to apply arbitrary forces on particles in MD:
Use the appropriate tabulated potential:
Implement a Python subclass
hoomd.md.force.Customthat evaluates the force/potential.
C++ components provide the highest performance, accuracy, and flexibility. Tabulated potentials provide moderate performance and accuracy is limited by the interpolation. The performance and accuracy of custom forces in Python depends entirely on the implementation.