*findattachedelementfaces
Returns information to a table about solid elements attached to quad/tria element.
Syntax
*findattachedelementfaces mark_id table_id
Type
HyperMesh Tcl Modify Command
Description
- Input element IDs
- Attached element IDs
- Attached element face IDs
- Attached element configs
- Input element collector IDs
- Input element normal reversed flags
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
*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 "by config" 104 103
*findattachedelementfaces 1 $table_id
array unset faceTable
set numOfRows [hm_getvalue tables id=$table_id dataname=rows]
for {set r 0} {$r < $numOfRows} {incr r} {
lappend faceTable(shlList) [hm_getvalue tables id=$table_id dataname=cellvalue COLUMN=0 ROW=$r]
lappend faceTable(solList) [hm_getvalue tables id=$table_id dataname=cellvalue COLUMN=1 ROW=$r]
lappend faceTable(solFaceId) [hm_getvalue tables id=$table_id dataname=cellvalue COLUMN=2 ROW=$r]
lappend faceTable(solCfg) [hm_getvalue tables id=$table_id dataname=cellvalue COLUMN=3 ROW=$r]
lappend faceTable(shlCmp) [hm_getvalue tables id=$table_id dataname=cellvalue COLUMN=4 ROW=$r]
lappend faceTable(shlRevNrm) [hm_getvalue tables id=$table_id dataname=cellvalue COLUMN=5 ROW=$r]
}
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
11.0.101