Dear all,
I am running a simulation where moving particles form bonds with stationary particles. I am using the bond style fene/expand with R_0=1, Δ=6, which gives a maximum bond length of 7 (The Lennard-Jones repulsion terms are turned off). To cover the full extent of the bonds, the total neighbor list distance is set to 9. Still, when running the simulation I get the following warning:
Communication cutoff 9 is shorter than a bond length based estimate of 11. This may lead to errors. (src/comm.cpp:727)
If I increase the neighbor list skin, I still get the same warning with the bond length estimate having increased by the same amount, e.g.:
Communication cutoff 10 is shorter than a bond length based estimate of 12. This may lead to errors. (src/comm.cpp:727)
I cannot explain this behavior since in my input script there is no dependence of how the bond coeffs and the neighbor list parameters are set. According to other questions I checked, LAMMPS uses some unspecified heuristic to extract these bond length estimates, but I cannot understand why they would depend on the neighbor list cutoff.
Going on, unless I significantly increase the neighbor list/communication cutoff distance, I get the following error at some point during the run:
Fix bond/create needs ghost atoms from further away (src/MC/fix_bond_create.cpp:792)
Again, this feels weird since the communication distance should be equal to the neighbor list distance, which is larger than the maximum bond length. I don’t see why fix bond/create would need to access atoms further than that. Just to make it clear, I am not getting a “FENE bond too long” warning that would justify such behavior. I found 2-3 posts by other users who faced the same error but I have to admit that I could not really understand the given explanations or could not see how they were relevant to my case.
To sum up, I have two main questions:
- Why does LAMMPS calculate such a high bond length estimate that also happens to depend on neighbor list cutoff? Should I be worried that this is due to a mistake on my part?
- Why do I have to increase the communication cutoff to values much higher that the maximum bond length in order to avoid the aforementioned error?
Thank you in advance and sorry for the long post