Simply the best answers.Get 100$ bonus
How to Remove a Particle from Domain using UDF?
While writing a DPM specific UDF, sometimes it is required to terminate (remove) particles that do not meet a particular condition. In some cases, you may want to remove all particles whose temperature is less than a prescribed temperature, or you may want to remove all particles whose diameter is less than a defined value
To remove such particles, you need t use the following DPM macro
p->stream_index = -1;
This command works for all particle types. The mass and energy of the particle also gets lost along with the particle, when this command is used.