*adjustcontactsurfacenormal

Adjusts a contact surface normal using an orientation element.

Syntax

*adjustcontactsurfacenormal name mark_id elem_flag orientation_element reverse_normal

Type

HyperMesh Tcl Modify

Description

Adjusts a contact surface normal using an orientation element.

Inputs

name
The name of the contact surface entity to adjust.
mark_id1
The ID of the mark of elements to adjust, when flag is 1. Valid values are 1 and 2.
elem_flag
Flag for reversing the contact normal of all or individual elements of the contact surface.
0 - All elements, mark_id is ignored
1 - Individual elements, mark_id is used.
orientation_element
The ID of the shell element that should be used for shell contact surface normal correction on shell face. This element should be part of the selection.
reverse_normal
0 – Correct contact normal along the direction of orientation_element normal (default)
1 - Correct contact normal opposite to the direction of orientation_element normal

Examples

To adjust the normal of contactsurf "test" for the elements on mark 1 in the normal direction of reference element id 23:

*createmark elems 1 12 29 53 23
*adjustcontactsurfacenormal "test" 1 1 23 0
To adjust the normal of contactsurf "test" for the elements on mark 1 in the reverse normal direction of reference element id 23:
*createmark elems 1 12 29 53 23
*adjustcontactsurfacenormal "test" 1 1 23 1

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}

Version History

14.0.130