How to remove particles from a specific location in the computational domain?

Hello, everyone. In order to save computational costs, I’d like to remove particles when their y-coordinate is less than a certain value. This seems to require starting with the mass_outflow_dem.f file, but I’m not sure exactly what to do.

Hello Ethan,

Let me jump in the case and I let the depelovers comment.

I would recommend you to modify the usr1.f file or usr1_des.f file. Loop over all particles, if a particle NP in the new calculated location complies with your removal conditions you can “CALL DELETE_PARTICLE(NP)”.

That worked for me in the past.

Cheers,
Eduardo

Thank you very much for your reply, Eduardo. I will give it a try.