Get contact area in cuda

satri
satri Altair Community Member
edited March 20 in Community Q&A

Hello

I have two spheroCyl particles or two sphere particles. I am running them through Cuda. I wanted to compute the contact area of them when I define a variable real coA = contact.getContactNormalArea(), I always get the value zero even though the particles are inside the contact radius. Why is this so, and how can I fix this?

I get zero even if I print 30 significant digits after the decimal point.

image.png image.png
Tagged:

Answers

  • satri
    satri Altair Community Member

    if i put that inside this i get 0 if i print outside

    if (contact.getNormalPhysicalOverlap() <= REAL_CONST(0.0))
    {

    return;
    }

    I do not get 0. Is there any in built variable that keeps track of this? I am asking this because for sphere i can write based on geometry. but i am not sure what to do for spherocyl.

  • Stephen Cole
    Stephen Cole
    Altair Employee

    Hi Satri,

    Contact overlap is for Polyhedral only, the Spheres and Sphero-Cylinders give overlap as a normal distance not area.

    image.png

    Regards

    Stephen