*addedgesorfaces

Adds faces of solid elements or edges of shell elements to a segment set and contactsurf.

Syntax

*addedgesorfaces entity_type <select_type1>=<selection> <select_type2>=<selection> <select_type3>=<selection> reversenormal=<value> main=<value>

Type

HyperMesh Tcl Modify Command

Description

Adds faces of solid elements or edges of shell elements using a specific edge/face number to a segment set or contact surface. Creates interface elements on edges of shell elements or faces of solid elements using specific edge/face numbers.

Inputs

entity_type
The type of entity to modify.
<select_type1>=<selection>
The segment set or contact surface to be used as the input. There are several ways to provide the entities to be used as the input. Only one option can be used at a time:
id=<id>
The ID of the segment set or contact surface to modify.
name=<name>
The name of the segment set or contact surface to modify.
<select_type2>=<selection>
The elements of the set or contact surface to be modified. There are several ways to provide the entities to be used as the input. Only one option can be used at a time:
mark=<mark_id>
The ID of the mark containing the elements to modify.
list=<list_id>
The ID of the list containing the elements to modify.
user_ids={<id1> <id2> ... <idN>}
The IDs of the elements to modify.
<select_type3>=<selection>
The indices of the faces or edges of the elements. There are several ways to provide the entities to be used as the input. Only one option can be used at a time:
face_indices=<face_indices>
The face indices of solid elements. The format is a list of lists.
edge_indices=<edge_indices>
The edge indices of shell elements. The format is a list of lists.
reversenormal=<value>
Determines if the secondary elements should be reversed when created. Applicable for contact.
0 - Along element normal
1 - Opposite element normal
main=<value>
Determines if main or secondary interface elements are created. Applicable for contact.
1 – Main
0 – Secondary

Examples

To add faces {1 2} of solid elements 10 and 11 to segment set 1:
*addedgesorfaces sets id=1 "user_ids={10 11}" "face_indices={{1 2}{1 2}}" reversenormal=1
To add edges {1 2} of shell elements 10 and 11 to segment set 1:
*addedgesorfaces sets id=1 "user_ids={10 11}" "edge_indices={{1 2}{1 2}}" reversenormal=1
To add edges {1 2} of shell element 10 and 11 to contact surface 1:
*addedgesorfaces contactsurfs id=1 "user_ids={10 11}" "edge_indices={{1 2}{1 2}}" reversenormal=1
To create secondary interface elements on faces {1 2} of solid elements 10 and 11 on interface 1:
*addedgesorfaces groups id=1 "user_ids={10 11}" "face_indices={{1 2}{1 2}}" main=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

2021.2