Edit Contacts

A screenshot of a computer

Description automatically generated

Description

This tool allows the user to visualize and update an existing interaction, one at the time or, several at once. User can optionally change the name of the interaction to reflect the ingoing bodies, and also change the name of the contact bodies.

The updated version of the tool (from v2024.2) also allows the user to visualize gaps and overlaps for bodies within the specified search tolerance in the preprocessing mode, in earlier releases we had to switch to post processing model and visualize Adjustment Vectors. Furthermore, error tolerance and bias can be interactively updated to reflect contact status graphically. Finally, the application can also suggest a new error tolerance/ bias settings required for Nastran to detect the contact. If the combination of Bias and Error tolerance deviates too much from the user provided defaults, a warning will be issued.

This will help the user to more smoothly debug contacts to ensure model is running smoothly.

Finally, there is an option to adjust geometry or mesh to remove gaps or overlaps.

A screenshot of a computer

Description automatically generated

Mesh Independent currently need to be selected from the Model browser and cannot be selected from the canvas.

A red rectangular object with a rectangular object in the middle

Description automatically generated

Workflow 1: Updating Contact Type or tolerances.

After selecting a mesh Independent Tie(s), press the “Show Selected Contact Pair” Button. The default settings are loaded, in the Text Edit forms. The current settings are displayed to the right and are not editable. In addition, the primary and secondary bodies are highlighted.

User can optionally rename contact pairs and contact bodies based on body name.

A screenshot of a computer

Description automatically generated A screenshot of a computer

Description automatically generated

Please note: Only interactions and contact bodies with default names will be renamed with the rename option(s) active.

The user specified defaults are obtained from the UserUtilitySettings.xml located in the “res” folder.

…\Documents\MSC_Apex Workspace\Custom Tools 202x.x \Apex Utilities\Attribution\Contacts\EditContacts\res

See below for an excerpt from the UserUtilitySettings.xml file controlling the defaults.

A screenshot of a computer code

Description automatically generated

Pressing Apply, will update the properties for the selected contact pair-

Depending on the user options, the interaction type name and settings are updated.

If a setting is being changed, (after hitting apply) the changed values are highlighted in yellow. Please note error tolerances computed by the “Auto define pair” option is usually very high and should be changed to more reasonable levels.

In the example below the glue contact tolerance was changed indicated by yellow highlights

A screenshot of a computer

Description automatically generated

A screenshot of a computer

Description automatically generated

T he tool accepts multi select of the contact pairs. In this case, the current settings are not shown and all bodiers are highlighted in orange. For this case the settings will be applied to all selected interactions.- A screenshot of a video game

Description automatically generated

The multi selection workflow is particularly useful in the following case:

For assemblies requiring a large number of touching contacts, the 'Auto Define Pair' option in the “ Interactions” menu can be used to generate contact pairs from geometry. However, this option only creates glued contacts. To address this, the Edit Contact Tool allows users to convert all auto-generated interactions to touching contacts in a single click, applying the specified tolerances." A screenshot of a computer

Description automatically generated

Workflow 2: Visualizing gaps and penetrations

A contact may fail if the gap or overlap is too large to be captured by the combination of error tolerance and bias.

Checking “Show Gaps/Penetrations” will activate this option.

A screenshot of a video game

Description automatically generated

The gap and distance data are computed using SOL400, which this tool will then utilize. To obtain this data, a Nastran analysis must be run, capturing the necessary information. This computation is performed once with a relatively high error tolerance to ensure contact bodies that might be missed by the default tolerance settings are identified. Provided the geometry or mesh remains unchanged, this data can be reused even when analysing new contact pairs.

The model will hold the information about the latest gap/penetration analysis generated by the tool.

If no penetration/gap information exist, the tool can generate this data.

There are two options:

A screenshot of a computer program

Description automatically generated

1. setup a run-ready MSC Nastran job to obtain this info. User will assign a bdf file and manually submit the MSC Nastran job.

2. MSC Nastran can be executed automatically. The MSC Nastran version used is stored in the tool’s res-folder.

…\Documents\MSC_Apex Workspace\Custom Tools 2024.x\Apex Utilities\Attribution\Contacts\EditContacts\res

A computer screen shot of a computer screen

Description automatically generated

For both cases a valid Nonlinear scenario has to exist with the appropriate Model representation

Tool will issue an error message if no nonlinear Scenario is found.

A screenshot of a computer

Description automatically generated

A screenshot of a computer program

Description automatically generated

The link to the bdf file and indirectly the gap/penetrations vectors is stored as a user attribute under top entry in the Part and Assembly tree. The name of the attribute corresponds to the selected non-Linear scenario.

The auto-generated Nastran jobs input, log and result files are stored in the users %TEMP% folder.

A screenshot of a computer

Description automatically generated

If, when enetering the tool, gap/penetration vectors already exist, user is given an offer to reuse the data, or generate new gap/penetration vectors as per above.

A screenshot of a computer

Description automatically generated

Next step is to visalize the gap/penetration vectors:

A screenshot of a video game

Description automatically generated

The option “Show Gaps/Overlaps” will update graphics indicating gaps and overlaps-

Following label options exists. A screenshot of a computer

Description automatically generated

It is clear that in this case, the selected contact tolerance will not detect the intended contact region.

A computer screen shot of a grid

Description automatically generated

We can manually increase the error tolerance using the slider or the text edit box.

A screenshot of a computer

Description automatically generated

The Auto Calculate option is selected.

A screenshot of a computer

Description automatically generated

We now have two choices:

a) We can adjust the error tolerance so that all nodes get in contact.

b) We can adjust the grids’ location.

Option A: adjust error tolerance/bias

The tool is proposing a larger tolerance, 0.28mm

This is not an unreasonable tolerance (less than 2x the user provided default)

A screenshot of a computer

Description automatically generated

Pressing Apply will update the tolerance for this contact pair.

A screenshot of a computer

Description automatically generated

Option B, update mesh or geometry:

Normally there are two options to adjusts geometry/mesh.

The translate Option is only available when the adjustment vectors have similar size and direction-

In our case, there is an uneven distribution of vectors, both concerning length and direction- Hence, only the “Adjust Grids” option is available.

We can control which contact body will be modified. Default is from Contact Body with Hi id to Contact body with Low Id. The Arrows indicate the direction the grids will be moved.

“Hitting Reverse” will flip the vectors.

A screenshot of a computer

Description automatically generated

In this case it seems more suitable to go with the reverse option, that is, adjusting the hole to match the cylinder.

Hitting “Execute Transformation” will move the grids to close the gaps. Please note that the gap/penetration data need to be recomputed for the changes to take effect. The contact status is immediately updated.

Please note that the nodes are moved one by one and for a large contact body (i.e. with a large number of nodes to update this can take a while).

Important: If geometry is changed or body is re-meshed the grids will move back to their original location . This is the drawback of the move grids option.

A screenshot of a computer graphics

Description automatically generated

Translate considerations:

In the case where the gaps are uniform, the option to translate the body is given. Also in this case user can decide which body to update.

In the case below, a translation 0f 0.2 mm will align the Nutwashers and the RH_supportplate perfectly

However, there is a nut that will also need to be translated not to break the washer nut contact pair.

For this case, the user need to consider if there are other contact bodies affected by the translation-

The benefit with a transformation is that the contact pair is normally not destroyed by a remesh operation.

A screenshot of a computer screen

Description automatically generated

Some notes on the bias vs contact tolerance

Image below illustrates how gap vs penetration.

A black line on a white background

Description automatically generated

For touching contact, we are typically using a Bias around 0.9-0.95, Hence shifting the contact zone inwards, meaning there is aa higher tolerance for detecting penetrations, compared to detecting gaps.

For glued contact, bias is usually 0, meaning the contact region is symmetric.