LAMMPS with bond flipping