RDF

the graph you show seems to include atoms from pairs that are excluded from the pairwise calculation (depending on the special_bonds setting).
since compute rdf uses the non-bonded neighbor list, those excluded pairs are excluded from that computation as well. there are two ways to work around this:

  1. record a trajectory and then compute the rdf using rerun, where you define only a pair style and no bonds/angles/dihedrals and do not compute forces at all.
  2. use a modified special_bonds lj/coul setting where you replace what is usually set to exactly 0.0 with a very small number, say 1.0e-20. then those previously excluded interactions will still be computed (but multiplied with a tiny prefactor, so they won’t make a significant difference) and the neighbor for compute rdf will include those pairs.

axel.

0B6906D0-0F22-422C-A4B6-DF6A1C45A174.png

D8DD4624-E592-457A-A8EE-4096999155B9.png