Lammps shifted potential

Dear LAMMPS users,

I face some difficulty in applying pair potential like this

Lammps does not support LJ potential adding additional term. How can I use this equation in LAMMPS?

With regards

LAMMPS does support this. Please see pair_modify command — LAMMPS documentation

BTW: If I enter the terms of the subject line of your post (lammps shifted potential) into a Google web search, the link to the pair_modify documentation is the very first hit. Also, searching for lammps WCA potential produces lots of useful hits.

Thank you. I knew the pair_modify command and I used to use it. But, I didn’t recognize that it is working like this. Thank you.