how to detect particles inside contact radius?

satri
satri Altair Community Member
edited October 22 in Community Q&A

Hello 

I am trying to use Hertz-Mindlin API to implement screening distance. But unfortunately I am able to activate the API only when physical contact happens.

Can you please tell me how to get away from this?

I have selected this in the factory.

image

and In API

image

If I activate line 205 and 206 it does not get activated when there is contact overlap (in the absence of physical overlap)

please tell me if I'm doing anything wrong

 

 

Tagged:

Answers

  • Stephen Cole
    Stephen Cole
    Altair Employee
    edited October 22

    Hi Shyam,

    The code looks OK to me.  Do you definitely have particles with contact radii set in the simulation? Have you tried debugging to see what happens when you hit that IF statement.

    Regards

    Stephen

  • satri
    satri Altair Community Member
    edited October 22
    Hello Stephen

    Yes I am positive I have the particles inside contact radius. Not sure why it's still not detecting it. Even in debug mode the contact model only gets activated when the particles come in physical contact.

  • satri
    satri Altair Community Member
    edited October 22

    Never mind this was my confusion

    I was under the impression that 

    image

     

    The condition on line 203 is for actual physical overlap.

    Your terminology on EDEM is confusing; as a user, I would think

    contact.normalPhysicalOverlap <= 0.0 -> This is a condition for when the particles physically overlap

    and 

    contact.normalContactOverlap >= 0.0 -> this is the condition when the contact radius overlaps

    but its the other way around

    contact.normalPhysicalOverlap <= 0.0 -> This is a condition for when the contact radius overlap

    contact.normalContactOverlap >= 0.0 -> this is the condition when the physical radius of the particles overlaps

    I can stop the program when the contact radius starts overlapping