find surface area of 2 component with some tolerance to create contact

Pandurang
Pandurang Altair Community Member
edited October 2020 in Community Q&A

Hi All,

 

by selecting 2 components , can we find surface area of both component close to each other with some tolerance to create contact.

is there any direct API?

any one having any idea regarding this?

@tinh

@Imoto

@vipin

Regards,

PD

Tagged:

Answers

  • tinh
    tinh Altair Community Member
    edited September 2019

    Hi

    Do you mean area of FE comp or area of surfs entites (CAD comp)

     

    For FE comp we use hm_getmass to get area

    But for CAD comp we have to loop foreach surface entity and use hm_getareaofsurface to get area and add it to comp area. It costs longer time.

     

  • Pandurang
    Pandurang Altair Community Member
    edited September 2019

    @tinh Thanks for quick response...

     

    in my case..

    1. user will select 2 comp (CAD)....only input

    2. then i have to find surfaces of these comp having give tolerance gap.

    3. find smallest(area) out of 2.

    4  Mesh it (tria) smallest one

    5. project the mesh on other surface. (so that mesh will be matching for contact creation)

    6. create contact between them

    7. then create mesh for remaining surfaces of these two component.

    @Manjunath Dasar 

    @tinh

    @Imoto

    @vipin

    any idea how i can do this?

    any relevant API's...

     

  • tinh
    tinh Altair Community Member
    edited September 2019

    No 2. You should use hm_measureshortestdistance

    No 3. Just a loop to find out smallest number