Using ACT, how can I define a contact sizing for the mesh?

Pernelle Marone-Hitz
Pernelle Marone-Hitz Member, Moderator, Employee Posts: 732
First Comment First Anniversary Ansys Employee Solution Developer Community of Practice Member
edited June 2023 in Structures

Using ACT, how can I define a contact sizing for the mesh ?

Tagged:

Answers

  • Pernelle Marone-Hitz
    Pernelle Marone-Hitz Member, Moderator, Employee Posts: 732
    First Comment First Anniversary Ansys Employee Solution Developer Community of Practice Member
    Answer ✓

    The contact sizing can be created in the following way :

        mesh=ExtAPI.DataModel.Project.Model.Mesh
        my_sizing=mesh.AddContactSizing()
        my_sizing.ElementSize=Quantity('0.002 [mm]')
        my_sizing. Name = "Contact Sizing Mesh"
    

    Then, there are several methods to select which contact should be scoped in the sizing:

    • If you would like to select the contact by its order in the tree:

        my_sizing.ContactRegion=ExtAPI.DataModel.Project.Model.Connections.Children[0].Children[0] 
      
    • If you would like to select the contact by its name:

        my_sizing.ContactRegion=ExtAPI.DataModel.GetObjectsByName("Contact2")[0]