*contactsurfcreatewithfacesusingfacenumber

Creates a contact surface using 2D element edges or 2D/3D element faces.

Syntax

*contactsurfcreatewithfacesusingfacenumber name color mark_id face_number reverse_normals ?element_id? ?use_element_id?

Type

HyperMesh Tcl Modify Command

Description

Creates a contact surface using 2D element edges or 2D/3D element faces.

Inputs

name
The name of the contact surface to create.
color
The color of the contact surface. Valid values are 1 through 64.
mark_id
The ID of the mark that contains the elements to use. Valid values are 1 and 2.
face_number
The face number of the element (starting from 0).
reverse_normals
0 - Create contact surface along element normal.
1 - Create contact surface opposite element normal.
element_id
The single element ID to use (default is 0).
use_element_id
0 - Use mark_id (default).
1 - Use element_id.

Examples

To create a contact surface named "test" with elements 1-100 using face number 3:
*createmark elems 1 1-100
*contactsurfcreatewithfacesusingfacenumber "test" 5 1 3 0 0 0

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

11.0.101

2019 - Added new optional arguments element_id and use_element_id.