Hi all-
I am simulating the diffusion of gas molecules in microporous polymers using MD in LAMMPS. I would like to use the SHAKE algorithm to constrain the bond lengths in my gas molecules so that I can transition between MD in LAMMPS and GCMC in Cassandra, which requires fixed bond lengths.
After attempting use SHAKE to constrain only the bonds on my 5-site methane model with the following command,
fix gasbonds gas shake 0.0001 20 10000 b 15
where 15 is the bond type I care about constraining, get an error stating that clusters of only 4 atoms max are allowed.
In this post from last year, referencing a similar 5-site molecule, Axel helpfully noted that SHAKE can be used for the exact kind of system I have:
1 central atom with 1, 2, 3, or 4 bonds connected to it that are constrained
However, I cannot figure out how to actually do this, and it seems to contradict the documentation.
I figured I would ask, before attempting to extend fix_shake.cpp to handle 5-site clusters, whether anyone has done this using the most recent (February 4 2025) version of LAMMPS.