EDEM API - Contact Model Example: Removing Particles
Overview
The Particle Manager function in EDEM API allows access to the scale, total number of particles, and multi-sphere particle element positions and also includes the ability to remove particles from a simulation.
The required output in this example is the total distribution of salt across the different planes. Removing and recording the material per plane significantly reduces the simulation time, compared to tracking each individual particle. This also improves the post-processing ability, as seen by the visualizations in the image below.
The same functionality can be applied to other simulations and industries, for example when simulating fertilizer spreaders in the agricultural industry, when removing material during chemical reactions in chemical or steel manufacturing or as part of a material breakage model.
Update January 2022 - this model has been updated to the EDEM API Version 3.3 for CPU and also updated to use CUDA API for GPU processing.
Update May 2024 - the model has been updated to version 3.6 of the API.
Usage/Installation Instructions
To run:
- Place the RemoveParticles.dll and RemoveParticles.cu in the same folder as the required simulation .dem file
- Go to the Physics > Particle to Geometry section and Edit Contact Chain. Add RemoveParticles from the Plug-in models area (note this has already been done for the supplied example)
- Once the RemoveParticles model has been added, click on it then click on the wheel button. Make sure that the geometry named "tracker" is selected from the drop down menu
- The model can then be run with the tracker code on CPU or CUDA GPU.
Comments
-
Hey is it possible to extract the information into a file or can i get it from the GUI while post-processing? because i don't see that option of logging to a file in the API files
0 -
I am looking for particle ID and the position where the particle was removed
getGeometryParameterData function probably has the data but how do i call just that function? and extract the information
0 -
Hi Everyone I am using EDEM 2021.2 and Ansys 2023 R1. When I try to use the RemoveParticle.dill Api file I got the error of The library interface version (3.6.0) is not supported by this release. What is the possible solution for this. I am new user of EDEM coupling. Thanks in Advamce
0 -
Community Guest said:
Hi Everyone I am using EDEM 2021.2 and Ansys 2023 R1. When I try to use the RemoveParticle.dill Api file I got the error of The library interface version (3.6.0) is not supported by this release. What is the possible solution for this. I am new user of EDEM coupling. Thanks in Advamce
Hi,
Version 3.6 of the API only works with EDEM 2023.1 or newer versions. You have to update EDEM in order to use this API.
Best regards,
Renan
0 -
Renan Calmon_20325 said:
Hi,
Version 3.6 of the API only works with EDEM 2023.1 or newer versions. You have to update EDEM in order to use this API.
Best regards,
Renan
how can I get its older version?
0 -
Community Guest said:
how can I get its older version?
Hi,
It really recommended that you update EDEM since the 2021.2 version is no longer supported. However, if, for some reason, you can't update EDEM, you can try downgrading the API version to a version that is compatible with version 2021.2. You must ensure that all functions are compatible with the older version
Regards,
Renan0