redefine group each time step

Dear users
I want simulate nano flow with lammps and i define a region in my simulation box and i want define any atom in this region as group in each time step but when i use below script lammps define all of atom exist in region as group at first time step

group group-ID region region-ID

with passing of time the atoms marked as group left the region and new atoms replace them.
is there any script that update group at each time step?

Dear users
I want simulate nano flow with lammps and i define a region in my simulation
box and i want define any atom in this region as group in each time step but
when i use below script lammps define all of atom exist in region as group
at first time step

group group-ID region region-ID

with passing of time the atoms marked as group left the region and new atoms
replace them.
is there any script that update group at each time step?

you can define a dynamic group. but what do you need this for? not all
features that accept groups work with dynamic groups.
perhaps it won't even be needed to have a dynamic group. there are
many ways to directly query or flag, if atoms are within a given
region.

axel.

Dear Axel
I have another group in my simulation box with name “WALL”
i want compute the force between WALL and atoms in that region with “compute group/group command”

Dear Axel
I have another group in my simulation box with name "WALL"
i want compute the force between WALL and atoms in that region with "compute
group/group command"

ok. that sounds like creating a dynamic group is the way to go. you'd
need something like this.

group group-ID dynamic all region region-ID every <#>

you just have to make certain, that you update the group at the same
frequency at which you perform the group/group compute.

axel.