Removing particles from the simulation in specific part of the geometry

Raïsa Roeplal
Raïsa Roeplal Altair Community Member
edited February 7 in Community Q&A

Dear EDEM users,

I am performing an EDEM simulation with an imported geometry. To save computational effort, I would like to remove particles from the simulation once they have reached a certain part of the geometry. So, I am wondering whether it is possible to specify a "deletion geometry" which removes particles once they have entered that specific geometry.

Thanks in advance for any suggestions!

Tagged:

Best Answer

Answers

  • Renan
    Renan
    Altair Employee
    edited October 2022

    Hi, Raïsa

     

    It should be possible to do this using a custom contact model. In that custom model you can check if a particle is in contact with the specified geometry and if it is you can use the markForRemoval function and it'll remove the particle from the simulation and the end of the current timestep.

     

    Best regards,

    Renan

  • Prasad Avilala_20558
    Prasad Avilala_20558
    Altair Employee
    edited October 2022

    Hi Raïsa,

     

    Adding in addition to Renan's point.

    I feel below options may also help depends on the how the geometry and the region where you want to remove the particle.

    1) Removing/Delete the particles when it reaches given domain using custom model

    2)Split the geometry and make the region Transparent , through which particles passes away.

     

    Option-2 is simple but you should use the option carefully, because the Scenario which you are representing if it consists of loading particles and after certain time due to motion or other reason particle to be removed means you should be carefully represent.

    You should make geometry Virtual from the time particle to be deleted.

     

    Thanks,

    Prasad A

     

  • Richard Wood_20774
    Richard Wood_20774
    Altair Employee
    edited October 2022

    And to add to Renan's point, you can also use markForRemoval( ) from within a custom body force plugin, it doesn't have to be a contact model. Contact model's are computationally cheaper, but depending on where you want to remove the particles, a body force might make more sense.

    Richard

  • Stephen Cole
    Stephen Cole
    Altair Employee
    edited December 2023 Answer ✓

    Hi, just to add we do have an example here:

     

    https://community.altair.com/community?id=kb_article_view&sysparm_article=KB0113650

     

    Any particles contacting a geometry called 'tracker' (have to set the exact name in the EDEM creator) will be deleted. The mass of the deleted particles is stored on the geometry as a custom property to keep a track of material removed.


    Regards

    Stephen

  • Rahul Sharma
    Rahul Sharma Altair Community Member
    edited February 5

    Hi, just to add we do have an example here:

     

    https://community.altair.com/community?id=kb_article_view&sysparm_article=KB0113650

     

    Any particles contacting a geometry called 'tracker' (have to set the exact name in the EDEM creator) will be deleted. The mass of the deleted particles is stored on the geometry as a custom property to keep a track of material removed.


    Regards

    Stephen

    Hi Stephen,

     

    Can you please re-share the link of the example, it's not working.

     

    Regards,

    Rahul.

  • Richard Wood_20774
    Richard Wood_20774
    Altair Employee
    edited February 5

    Hi Stephen,

     

    Can you please re-share the link of the example, it's not working.

     

    Regards,

    Rahul.

    https://community.altair.com/community/en/edem-api-contact-model-example-removing-particles?id=kb_article&sysparm_article=KB0122028

  • Rahul Sharma
    Rahul Sharma Altair Community Member
    edited February 5

    Thanks for sharing the tutorial.

     

    Can you please advise how can I activate the "Plug-in models" so that I can see them under Physics.

     

    Regards

    Rahul.

  • Richard Wood_20774
    Richard Wood_20774
    Altair Employee
    edited February 6

    Thanks for sharing the tutorial.

     

    Can you please advise how can I activate the "Plug-in models" so that I can see them under Physics.

     

    Regards

    Rahul.

    Hi,

    https://community.altair.com/community/en/edem-api-tutorial-1-particle-replacement?id=kb_article&sysparm_article=KB0037689

    I'd recommend starting from the tutorial here and working through the API tutorials. You can find quite a few on the Community website

    Cheers,

    Richard

  • Rahul Sharma
    Rahul Sharma Altair Community Member
    edited February 6

    Hi,

     

    Thanks for sharing the tutorial.

    I can't access the "Plug-in models" under "Physics" in my EDEM creator, do I need to activate them in EDEM somehow so I can use them?

    image

    Plug-in models in the tutorial file has "RemoveParticles" model

    image

     

    Regards,

    Rahul.

  • Richard Wood_20774
    Richard Wood_20774
    Altair Employee
    edited February 7

    Hi,

     

    Thanks for sharing the tutorial.

    I can't access the "Plug-in models" under "Physics" in my EDEM creator, do I need to activate them in EDEM somehow so I can use them?

    image

    Plug-in models in the tutorial file has "RemoveParticles" model

    image

     

    Regards,

    Rahul.

    I think it's covered in the API tutorials, but EDEM will look in the working directory and the locations specified under Tools->Options->File Locations, for plugins. Make sure you copy the .dll file and any other relevant files to whichever location you prefer.

    Richard