I tried to do the stretching molecular dynamics simulation of CaCO3, but kept showing “ERROR: All pair coeffs are not set” in the potential function. Here are my.in and.data files and log files. I would like to ask what the problem should be?
This is indeed an issue that is faced by a lot of new users, and I can understand that there is something confusing: all self pair coeffs must be set, but not all cross-coeffs have to be set, as they are automatically calculated by LAMMPS. The error message could be:
Not all pair coeffs are set. Specify at least the self pair coeffs.
How about something more detailed and issuing the “info coeffs” command before throwing the error to list which current settings where made?
The statement about “self” coefficients is tricky since this only applies to pair styles that do mixing and for most manybody potentials there must be only one pair_coeff * * statement.
ERROR: Not all pair coeffs were set. Add an “info coeffs” command before the first run, minimise, or write_data in your script for further information.