One way this can probably be done is by looping over the
atoms and using the if condition to check if their velocity/energy exceeds
the threshold. If yes, add them to a group.
Once you’ve looped over all atoms, delete atoms belonging to this group
and then delete the group.
Maybe there is a simpler way to do this too… (?)
Plus I don’t know how efficient this method is… could slow down your simulation…