modify diameter of specific granular particles

Hi everybody,

I try to modify the diameter of certain granular particles during the simulation; something like “fix adapt”.

The problem with "fix adapt", however, is that it requires an equal-style variable and modifies all the diameters of the specific group in the same way.

I am just wondering if there is a way to modify each diameter differently something like:
diameter = c_my_diameter, where my_diameter is a computed atom-style variable.

Basically the idea is that the particles swell because they absorb moisture, but they all swell in a different way.

Is this possible?

Thanks for your attention


Fix adapt would have to be generalized to allow
for using an atom-style variable for the new diams.

Or you could write your own fix and reset the diams

any way you like.