EDEM Post Processing | Hide 'out of bounds' particles / Only show particles that have bonded or met certain contact condition?
Hi Everyone,
Is it possible to hide out-of-bounds particles w.r.t. their BondStatus?
BondStatus = 0: Particles not bonded; BondStatus = 1: Particles bonded.
I have set a certain condition that bonds the selected particles only (please see the image below), and set their BondStatus to 1. So, the particles having the red discs (overlap representation in this case) are bonded. I would only like to view them, while rest being hidden.
P.S. This is an API based custom contact model, not the EDEM's built-in, so the variable 'BondStatus' is being accessed under contact tree.
Thank you.
Best regards,
MQ
Answers
-
Hi MQ,
Unfortunately not, the bond status is a contact property so you can show/hide the contacts based on the status but not the particles.
If it's an API model you can possibly set another property to assign to the particles, it is a bit tricky with contacts because as soon as the contact is broken/lost then you no longer have access to the particle ID's in the contact and wouldn't be able to update the value easily.
It maybe worth looking at EDEMpy to set the particle properties then you can hide them:
Here is an example of setting custom properties with EDEMpy:
https://support.altair.com/community?id=kb_article_view&sysparm_article=KB0119714
and the EDEMpy e-learning
https://learn.altair.com/enrol/index.php?id=228
Regards
Stephen
0 -
Stephen Cole_21117 said:
Hi MQ,
Unfortunately not, the bond status is a contact property so you can show/hide the contacts based on the status but not the particles.
If it's an API model you can possibly set another property to assign to the particles, it is a bit tricky with contacts because as soon as the contact is broken/lost then you no longer have access to the particle ID's in the contact and wouldn't be able to update the value easily.
It maybe worth looking at EDEMpy to set the particle properties then you can hide them:
Here is an example of setting custom properties with EDEMpy:
https://support.altair.com/community?id=kb_article_view&sysparm_article=KB0119714
and the EDEMpy e-learning
https://learn.altair.com/enrol/index.php?id=228
Regards
Stephen
Hi Stephen,
Thank you for your response.
To follow up on this: In this case, even if the contacts are lost at a later stage, I am not worried. I would just like to see that particle that bonded at any point during the simulation, should only be visible.
So, can we somehow update the 'particle custom property' within the contact API? In this way, if BondStatus becomes 1, I could set Element 1 and Element 2 individual custom property to 1.
Thank you.
Best regards,
Mohammad Ali
0 -
MQ said:
Hi Stephen,
Thank you for your response.
To follow up on this: In this case, even if the contacts are lost at a later stage, I am not worried. I would just like to see that particle that bonded at any point during the simulation, should only be visible.
So, can we somehow update the 'particle custom property' within the contact API? In this way, if BondStatus becomes 1, I could set Element 1 and Element 2 individual custom property to 1.
Thank you.
Best regards,
Mohammad Ali
Hi Mohammad,
It would be possible to add another custom particle property to the model. In the bonded particle code there is a point at which the bonds are created, you could set +1 to each particle when this is complete.
If one particle is bonded multiple times to different particles it would get a value higher than 1 however this should still cover what you are suggesting.
Regards
Stephen
0