I`m working on a polymer cross-linking problem where I do not want new bonds to be created between atoms of the same molecule. In other words, I want to implement the fix, i.e attempt to create new bonds using fix bond/create for an i-j atom pair, if and only if they belong to different molecules.
Is there a way one could implement this in the current build of LAMMPS?
I`m working on a polymer cross-linking problem where I do not want new bonds
to be created between atoms of the same molecule. In other words, I want to
implement the fix, i.e attempt to create new bonds using fix bond/create for
an i-j atom pair, if and only if they belong to different molecules.
Is there a way one could implement this in the current build of LAMMPS?
if the capability you are asking for is not in the documentation, that
it would need to be added.
i would expect that adding a functionality like this would be rather
straightforward to add (just a comparison of the molecule ids and code
to add a flag to control this feature).
however, it may be even more flexible to add an option that would
require bonds only be done for atoms in either the same or in
different chunks. then one could use the many options of compute
chunk/atom to partition the system (including molecule ids) instead.