How to include a potential like Constant/z , z is the distance to the bottom wall

Hi all,

I want to have a potential like constant/z in the whole region, z is the distance to the bottom wall, so that particles have a potential to move toward the wall. Is there any command can realize this target?

Hi all,

I want to have a potential like constant/z in the whole region, z is the distance to the bottom wall, so that particles have a potential to move toward the wall. Is there any command can realize this target?

Yes, fix addforce in combination with an atom style variable.

Axel