*addedgesorfaces

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

Syntax

*addedgesorfaces entity_type <select_type>=<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_type>=<selection>
The entity or entities that are 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 single entity to modify.
name=<name>
The name of the single entity to modify.
mark=<mark_id>
The ID of the mark containing the entities to modify.
list=<list_id>
The ID of the list containing the entities to modify.
user_ids={<id1> <id2> ... <idN>}
The IDs of one or more entities to modify.
user_names={<name1> <name2> ... <nameN>}
The names of one or more entities to modify.
face_indices=<face_indices>
The face indices of solid elements.
edge_indices=<edge_indices>
The edge indices of shell elements.
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} 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} 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} 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} 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