-
Hello, I am working with a system of active particles undergoing rotational diffusion in a 2-D box. I aim to introduce four walls, one for each edge of the square box, to induce elastic collisions (or any suitable repulsive force, if elastic collisions aren't feasible) upon particle-wall interaction. My approach involved creating a plane for each of the four sides of the box using hoomd.wall.Plane, followed by applying a wall force (details are in the attached code). However, I've encountered two primary issues in my attempts to simulate a repulsive force upon particle-wall collision:
I have included a picture of the simulation at the moment this error occurred, with particle 8 highlighted. Could anyone offer guidance on how to address these two issues? Specifically, how can the wall exert a repulsive force, and how can we avoid initialization issues with particles too close to the walls? My script: For the first situation, here are two pictures showing particles stuck to and moving along the walls (as indicated by the arrows): ![]() And for the second situation (initialization error), here is the picture: Thank you for any help or insights you can provide! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
Your LJ wall
lj.params['A'] = {"sigma": 1.0, "epsilon": 1.0, "r_cut": 2.5}
has an attractive well. User_cut = 2**(1/6)
to include only the repulsive part of the potential. To achieve elastic collisions, you must use a NVE integrator an no active force. Your active Brownian particle will continue pushing into the wall until the rotational diffusion rotates the active force away from the wall.You must place particles such that the initial force on them is reasonable.