I defined a 2D box (both configuration.box.Lz =0 and box.dimensions=2 are checked right in .gsd file) in HOOMD v4.3 to operate MD (integrator = brownian and langevin were both tried but failed to avoid that problem)
I read the result.gsd, finding that in some of the gsd files, the particles in box are out of the box in z-direction while no warnings appeared during the simulation, and in the other gsd files, the particles stay in the 2D box correctly. Is there anyone who has met with similar problems? How can I locate the codes or modules where the problem occured? Anyone's comments are welcome!
I defined two pair interactions: gaussian for 'A-B' and Yukawa for 'A-A'.
I kept particles 'B' stationary and allow particles 'A' to move.