Forums
Hi all,
In my simulation, I have two particle size, namely small particles and big particles. Now I need to delete 10% of the small particles in my calculation region, does anyone know which command do I need to use?
Best regards,
Rachel
Anyone knows the answer?
Hi all, is there anyone who knows the answer? Thanks ahead.
A simple suggestion
Hi, I do not know exactly how to do it, but I might suggest that you select the particles in the given region (assuming that you have tagged the small particles with a different type than the larger ones) and then use the slice compute (https://www.cfdem.com/media/DEM/docu/compute_slice.html) to slice the total array and get the 10% of it, for instance by choosing an appropriate skip length, and then delete the final ids selected. Also, the delete_atoms command also accept a fraction (https://www.cfdem.com/media/DEM/docu/delete_atoms.html), but in this case it is hard to specify the region and not affect the larger atoms.
As I said, this is just an idea. Maybe this is useful just to bump this question so someone with more knowledge can answer.
In reply to A simple suggestion by iluvatar
Thanks
Hi,
Thanks so much for your advice. Now I think I have found the solution. First I generate a group with a determined fraction of fine particles, then I delete this group using delete_atoms. This may not be a direct way but I think I can get my purpose using this method. Thanks.
Best,
Rachel
In reply to Thanks by Rachel
Just a small hint, if you use
Just a small hint, if you use delete_atoms ensure that you have compress no in the arguments to avoid bugs. This will be fixed in LIGGGHTS soon.