I simulate a system including polymer chains. How can I keep, the ends of the chain(first and last atom) at a constant position, during the simulation?
Put all the other atoms in a group, and integrate them (fix nve)
but not the end atoms. Then they won't move.