[lammps-users] Implimentation of user defined potential

Dear lammps users,

I need to implement a 2d potential of the form,


along with lj potential for a system of atoms. I found it difficult to implement it in tabular form, and also couldn’t find it in the existing pair styles.

Is there any other way to do this?

I’m using the 29oct 2020 version of lammps.

Please try fix add force. Axel