*contactsurfcreatewithfaces
Creates a contact surface using 2D element edges or 2D/3D element faces.
Syntax
*contactsurfcreatewithfaces name color elem_mark_id node_mark_id break_angle reverse_normals on_face
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.
- elem_mark_id
- The ID of the mark that contains the elements to use. Valid values are 1 and 2.
- node_mark_id
- The ID of the mark 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
- 0 - Create contact surface along element normal.
- of_face
- 0 - Create contact surface on edge.
Examples
To create a contact surface named "test" with elements 1-100 with faces defined by nodes
1-5 and a breakangle of
30.0:
*createmark elems 1 1-100
*createmark nodes 1 1-5
*contactsurfcreatewithfaces "test" 5 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
}