Author Topic: How can I remove a particle from a domain using UDF?  (Read 5863 times)

Offline pitney1

  • Jr. Member
  • **
  • Posts: 65
  • Reputation: +0/-0
  • Searching for solution
    • View Profile
How can I remove a particle from a domain using UDF?
« on: February 06, 2012, 06:46:12 PM »
Advertisement
Hello,

I am doing multiphase simulation with particles tracked using lagrangian approach. I want to set a condition that when the particles hit a certain location in the geometry, the particles should get removed from the simulation. Its heat and mass balance along with it.

Can any one suggest me how to do this?

Thank you.

Offline william

  • Full Member
  • ***
  • Posts: 159
  • Reputation: +15/-0
  • Know it, share it.
    • View Profile
Re: How can I remove a particle from a domain using UDF?
« Reply #1 on: February 06, 2012, 06:48:13 PM »
To remove a 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.