Hi all,
I’m trying to perform an MD simulation in LAMMPS using a tabulated pair potential, but I keep getting warnings about force inconsistencies. To isolate the problem, I created a minimal working example:
- I first dumped the tabulated potential from the TrappeN2 LJ+Coulomb potential using
pair_write. - Then I read back the exact same potential that LAMMPS itself generated.
Reading pair table potential file table_NN.pot with DATE: 2025-11-03
WARNING: 30904 of 50000 force values in table NN are inconsistent with -dE/dr.
WARNING: Should only be flagged at inflection points (src/pair_table.cpp:466)
Reading pair table potential file table_NCp.pot with DATE: 2025-11-03
WARNING: 34422 of 50000 force values in table NCp are inconsistent with -dE/dr.
WARNING: Should only be flagged at inflection points (src/pair_table.cpp:466)
Reading pair table potential file table_CpCp.pot with DATE: 2025-11-03
WARNING: 34422 of 50000 force values in table CpCp are inconsistent with -dE/dr.
WARNING: Should only be flagged at inflection points (src/pair_table.cpp:466)
No matter how accurate or finely sampled the tables are, these warnings persist.
My questions are:
- Are these warnings critical, or can they be safely ignored?
- Could this be due to having too many data points (I currently use 50,000 points between r = 1 and 15)?
- Is there a way to dump the -dE/dr values computed internally by LAMMPS so I can compare them directly to my input force values?
LAMMPS version: 20240207+dfsg-1.1build5
Thanks in advance for your insights!
Here are the input files:
Write_Table.inp.txt (1.1 KB)
Read_Table.inp.txt (1002 Bytes)
geom.cfg (735 Bytes)