how to use generated potential in LAMMPS

Hi, Lammps users!

I have a questions about using a potential in LAMMPS.

In lammps, I can select potential types in Pair_Style command.

But If I hope to use the potential that is not defined in lammps, how can I use(generate) this?
I mean, how can I use ‘generated potentials’ in lammps?

I have Energy equations and potential parameters.



Looks like you have two options here, for an arbitrary potential:

  • right a suitable pair_style
  • tabulate your potential, using pair_style table


And by writing*, I mean defining a new pair-style class. You should probably read these: