[lammps-users] Group Defination under some geometry

Hi All,
I am trying to applying a external force on certain atoms which are above z=10A in my unit cell. Group command is static and does not change atoms as time proceed.
Is there any way to apply a force on the all atom, which are above z=10A .
Thanks a lot.

Hi All,
I am trying to applying a external force on certain atoms which are
above z=10A in my unit cell. Group command is static and does not
change atoms as time proceed.
Is there any way to apply a force on the all atom, which are above
z=10A .

yes. fix addforce allows a region keyword.
the force is then only applied to the intersection
of the group and the region. if you want to only
select by region, just use the "all" group.

cheers,
   axel.