EDEM API Factory: Where will particles form?
Hello,
I have currently an API creating particles upon impact with the geometry (milling chamber). However, I have noticed that on some occasions, the particle is generated on the other side of the geometry. I have tried debugging the code, but did not manage to spot any specific posX,Y or Z values that are outside of the geometry boundaries. As such, may I find out how it is determined where the particle is generated? Does the full particle have to be within the geometry or just the center of the particle? And if it is possible to generate two particles into the exact same posX,Y and Z?
Thank you.
Best Regards,
Megan
Best Answer
-
Hi Megan,
This is for particles generated with an API factory only? The API factory doesn't have any kind of contact detection so it only places particles in the X,Y,Z positions specified by the user code.If those positions overlap with other particles or if they are inside a geometry element the particle will still be placed by the API.
Regards
Stephen
0
Answers
-
Hi Megan,
This is for particles generated with an API factory only? The API factory doesn't have any kind of contact detection so it only places particles in the X,Y,Z positions specified by the user code.If those positions overlap with other particles or if they are inside a geometry element the particle will still be placed by the API.
Regards
Stephen
0 -
Stephen Cole_21117 said:
Hi Megan,
This is for particles generated with an API factory only? The API factory doesn't have any kind of contact detection so it only places particles in the X,Y,Z positions specified by the user code.If those positions overlap with other particles or if they are inside a geometry element the particle will still be placed by the API.
Regards
Stephen
Hi Stephen,
Thank you for your prompt response.
The particles are being generated by the API factory only upon contact with the geometry.
Does this mean that the particles that appeared to be generated on the other side of the geometry are due to the contact model? In that case, is there any way to find out how the particles will behave after being generated inside a geometry element? I want to avoid particles appearing on the wrong side of the geometry after being placed. Or is my best option just to ensure that particles are placed at least 1 radius away from the geometry?
Best regards,
Megan
0 -
Megan_21536 said:
Hi Stephen,
Thank you for your prompt response.
The particles are being generated by the API factory only upon contact with the geometry.
Does this mean that the particles that appeared to be generated on the other side of the geometry are due to the contact model? In that case, is there any way to find out how the particles will behave after being generated inside a geometry element? I want to avoid particles appearing on the wrong side of the geometry after being placed. Or is my best option just to ensure that particles are placed at least 1 radius away from the geometry?
Best regards,
Megan
Hi Megan,
It maybe that the particles are been generated and then are moving after they are generated. Depending on your save interval you may not see where the factory is placing them.
When trying to debug/understand the API code I'd recommend running a small test case and saving every EDEM time-step. This can generate huge amounts of data so best to make sure this is for a small time period only and for small numbers of particles. If you save every interval you can better track the particles movement exactly to help understand what is happening.
Alternatively if saving every interval isn't suitable you can go to the Physics > Particle Limits section to limit the particle velocity to 0 m/s. That way you can confirm exactly where the particles are been placed as regardless of forces applied they will always stay in that position.
Regards
Stephen
0