*findattachedelementfaces
Returns information to a table about solid elements attached to quad/tria element.
Syntax
*findattachedelementfaces mark_id table_id
Type
HyperMesh Tcl Modify
Description
Returns information to a table about solid elements attached to quad/tria element. The
table must be created with 6 integer columns using the *tablecreate
command. The output to each column is as follows:
- Input element IDs
- Attached element IDs
- Attached element face IDs
- Attached element configs
- Input element component IDs
- Attached element component IDs
Inputs
- mark_id
- The mark ID containing the input quad/tria elements. Valid values are 1 and 2.
- table_id
- The table ID to output the results to. The table must have 6 integer columns.
Example
To find the elements attached to elements 12 and
13:
*createstringarray 6 int int int int int int
*tablecreate "attachedelementtable" 1 1 1 6
set table_id [hm_getvalue tables name=attachedelementtable dataname=id]
*createmark elems 1 12 13
*findattachedelementfaces 1 $table_id
#Use hm_gettablecolumndata to get the table data:
set elemList [hm_gettablecolumndata $table_id 1]
set elemAttachedList [hm_gettablecolumndata $table_id 2]
set elemFaceList [hm_gettablecolumndata $table_id 3]
set elemConfigList [hm_gettablecolumndata $table_id 4]
set elemRevNormalList [hm_gettablecolumndata $table_id 5]
set elemCompList [hm_gettablecolumndata $table_id 6]
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