HM-4430: Define ANSYS Contacts for Models in HyperMesh

In this tutorial you will learn how to set up surface to surface contacts and contacts manually.

Before you begin, it is recommended that you complete HM-1000: Getting Started with HyperMesh and Exploring the ANSYS Interface.

Also, copy hm-ansys_contact_manager_3-d_tutorial.hm from <hm.zip>/interfaces/ansys/ to your working directory.

In HyperMesh, you can create contact pairs manually or with the Autocontact tool.
Restriction: This tutorial is only applicable for HyperMesh 14.0.130 and on.

Load the ANSYS User Profile

In this step you will load the ANSYS user profile in HyperMesh.

  1. Start HyperMesh Desktop.
  2. In the User Profile dialog, set the user profile to Ansys.

Retrieve the HyperMesh Model File

In this step, you will open a model file in HyperMesh.

  1. From the menu bar, click File > Open > Model.
  2. In the Open Model dialog, open the hm-ansys_contact_manager_3-d_tutorial.hm file.
    A model loads in the graphics area.
  3. If the load collector is displayed, in the Model Browser, click next to the load collector to turn off the display of its elements.


    Figure 1.
  4. In the graphics area, click once to make it the current window for keyboard commands.
  5. Fit the model to the graphics area by pressing F.


    Figure 2.

Create a Contact Pair

In this step you will create a contact pair in HyperMesh.

  1. Optional: If necessary, click View > Browsers > HyperMesh > Contact to open the Contact Browser.
  2. In the second pane of the Contact Browser, right-click and select Create > Contact Pair from the context menu.
    HyperMesh creates and opens a contact pair in the Entity Editor as indicated in Figure 3.


    Figure 3.

Create and Attach a Contact Surface

In this step you, will create and attach a contact (master) surface in HyperMesh.

  1. Mask the BOX_SOLID45 and CYLINDER_SOLID45 components in the first pane of the Contact Browser.
    1. Right-click on the BOX_SOLID45 component.
    2. Select Hide from the context menu.
    3. Right-click on the CYLINDER_SOLID45 component.
    4. Select Hide from the context menu.


    Figure 4.
  2. In the second pane of the Contact Browser, select contactPair_1.
  3. Create and attach a contact (master) surface.
    1. In the Entity Editor, right-click on Master IDs and select Create Contact Surface using Elements from the context menu.


      Figure 5.
    2. In the panel area, set the first switch to add solid faces.
    3. Set the advanced selection switch to faces.


      Figure 6.
    4. Select the top faces of the cube as indicated in Figure 7.


      Figure 7.
    5. Click add.
    6. Observe the newly created contact surfaces.
      By default, when contact surfaces are created over solid element faces, normals point outwards.


      Figure 8.
    7. In the panel area, click return.
  4. Create and attach an Et Type to the contact surface.
    1. In theEntity Editor, under MASTER, right-click on ETType and select Create from the context menu.


      Figure 9.
    2. In the Create Sensors dialog, define the sensor.
      Note: By default, the Element Type is set to CONTA174.
      • Enable KeyOpt12.
      • Select 0-Standard from the list.
    3. Close the dialog.


      Figure 10.

Create and Attach a Target Surface

In this step, you will create and attach a target surface in HyperMesh.

The bottom half of the CYLINDER_SOLID45 component will be used as the target surface.
  1. Unmask the CYLINDER_SOLID45 component.
    1. Right-click on CYLINDER_SOLID45 in the first pane of the Contact Browser.
    2. Select Show Attached > Contacts from the context menu.
  2. Mask the BOX_SOLID95 component.
    1. Right-click on BOX_SOLID95 in the second pane of the Contact Browser.
    2. Select Hide from the context menu.
  3. Mask the contactPair_1 contact surfaces.
    1. Right-click on contactPair_1 in the second pane of the Contact Browser.
    2. Select Hide from the context menu.
  4. On the Standard Views toolbar, click to orient the model to the XY top plane view.
  5. Create and attach a target (secondary) surface.
    1. In the Entity Editor, right-click on Secondary IDs and select Create Contact Surface using Elements from the context menu.
    2. In the panel area, set the first switch to add solid faces.
    3. Set the advanced selection switch to elems.


      Figure 11.
    4. Select the elements indicated in Figure 12.
      Tip: Quickly select elements with window selection by pressing Shift while clicking and dragging your mouse.


      Figure 12.
    5. Using the nodes selector, select face nodes on the selected elements as indicated in Figure 13.
      Figure 13.
    6. Click add.
      Surfaces are created on selected elements.


      Figure 14.
    7. In the panel area, click return.
  6. Create and attach an Et Type to the contact surface.
    1. In the Entity Editor, under SECONDARY, right-click on ETType and select Create from the context menu.
    2. In the Create Sensors dialog, define the sensor.
      Note: The Element Type is set to TARGE169 by default.
      • Enable KeyOpt4.
      • Select 0-All from the list.
    3. Close the dialog.

Create and Attach a Property and Material to the Contact Pair

In this step, you will create and attach a property and material to a contact pair.

  1. Create and attach a contact property.
    1. In the Entity Editor, right-click on Property and select Create from the context menu.
    2. In the Create Properties dialog, define the property.
    • For FKN, enter 1.0.
    • For FTOLN, enter 0.1.
    • For TAUMAX, enter 1e20.
    • For FKOP, enter 1.0.
    • For FKT, enter 1.0.
    • For FHTG, enter 1.0.
    • For RDVF, enter 1.0.
    • For FWGT, enter 0.5.
    • For FACT, enter 1.0.
  2. Click Close.
  3. Create and attach a contact material.
    1. In the Entity Editor, right-click on Material and select Create from the context menu.
      The Create Materials dialog opens.
    2. In the Create Materials dialog, define the material.
      • Set card image to MPDATA.
      • Select the MU (coefficient of friction) checkbox.
      • For MP_MU_LEN, enter 1.
      • For C, enter -0.45.
    3. Click Close.

Review the Contact Pair

In this step, you will review the contact pair you created.

  1. In the first pane of the Contact Browser, unmask all of the components and contact surfaces.
  2. In the second pane of the Contact Browser, right-click on contactPair_1 and select Isolate Only from the context menu.
    Only the main and secondary surfaces display.


    Figure 15.
  3. Check the normals of the surfaces.
    Note: Notice how the surfaces are pointing out. If the normals are facing each other then it is a valid direction. In this tutorial, the normals should be pointing at each other.
  4. Turn the display of all entities back on when you are done reviewing.
  5. Right-click on contactPair_1 and select Review from the context menu.
    Contact regions display.


    Figure 16.
  6. Right-click on contactPair_1 and select Reset Review from the context menu.

Add /SOLU and SOLVE in the Control Cards

In this step, you will add the following Control Cards.

Restriction: Only complete this step if your model needs to be solved in ANSYS.
  1. Click Setup > Create > Control Cards from the menu bar.
    The Control Cards panel opens.
  2. Click /SOLU to exit the PREP7 preprocessor and enter the SOLU preprocessor.


    Figure 17.
  3. Click return.


    Figure 18.
  4. Click SOLVE.
    Tip: If you do not see the SOLVE Control Card, click next.


    Figure 19.
  5. Click return to exit the card image.
  6. Click return to exit the Control Cards panel.