update the members of a group, every step of simulation

we used the “variable style” to determine the members of a group by a formula. we need to re-calculate this formula every step and update the members of the group. how it is possible to perform that? should we write “group” command every step? isn’t there any other way?

Best Regards

amir

2014-10-15 12:59 GMT+02:00 Amir Rezaei <[email protected]>:

we used the "variable style" to determine the members of a group by a
formula. we need to re-calculate this formula every step and update the
members of the group. how it is possible to perform that? should we write
"group" command every step? isn't there any other way?

you can define a dynamic group, based on a variable, which can be updated
every N steps. See the manual on the group command, and look for the style
"dynamic".

Kristof