*addfacestocontactsurf

Adds elements using the face/edge option to a contact surface.

Syntax

*addfacestocontactsurf name elem_mark_id node_mark_id break_angle reverse_normals face_or_edge

Type

HyperMesh Tcl Modify

Description

Adds elements using the face/edge option to a contact surface.

Inputs

name
The name of the contact surface to update.
elem_mark_id
The mark ID that contains the elements to add. Valid values are 1 and 2.
node_mark_id
The mark ID that contains the nodes that define an edge or a face of an element. Valid values are 1 and 2.
break_angle
The break angle for finding adjacent elements.
reverse_normals
Create contact surface.
  • 0 - Along element normal.
  • 1: Opposite element normal.
face_or_edge
Create contact surface.
  • 0 - On edge.
  • 1 - On face.

Examples

To add elements 1-100 with faces defined by nodes 1-5 to contactsurf "test" with a break_angle of 30.0:

*createmark elems 1 1-100
*createmark nodes 1 1-5
*addfacestocontactsurf "test" 1 1 30.0 0 1

Errors

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