noforce | force | noforce |
I want to assign a force to atoms in fixed region. Force is assigned to atoms which enter into this region with time advancing. If an atom goes out of this region, the force on the atom will disappear, that is to say, atoms with the given force are changeable.
I use fix addforce, group and region command, but It seems impossible because manual says" The region style puts all atoms in the region volume into the group. Note that this is a static one−time assignment. The atoms remain assigned (or not assigned) to the group even in they later move out of the region volume"
How can I do if I impose force on atoms within the fixed region. Thanks in advance.