*adjustgroupsnormal

Adjusts a group normal using an orientation element.

Syntax

*adjustgroupsnormal name main_flag mark_id elem_flag orientation_element reverse_normal

Type

HyperMesh Tcl Modify Command

Description

Adjusts a group normal using an orientation element.

Inputs

name
The name of the group entity to adjust.
main_flag
0 - Use secondary
1 - Use main
mark_id1
The ID of the mark of elements to adjust, when flag is 1. Valid values are 1 and 2.
elem_flag
Flag for reversing the contact normal of all or individual elements of the group.
0 - All elements, mark_id is ignored
1 - Individual elements, mark_id is used.
orientation_element
The ID of the shell element that should be used for shell group normal correction on shell face. This element should be part of the selection.
reverse_normal
0 - Correct group normal along the direction of orientation_element normal (default)
1 - Correct group normal opposite to the direction of orientation_element normal

Examples

To reverse the normal of all main elements of the group "test":

*adjustgroupsnormal "test" 1 1 0 0 0
To reverse the normal of all secondary elements of the group "test":
*adjustgroupsnormal "test" 0 1 0 0 0
To adjust the normal of group "test" for the elements on mark 1 in the normal direction of reference element id 23:
*createmark elems 1 12 29 53 23
*adjustgroupsnormal "test" 1 1 1 23 0
To adjust the normal of group "test" for the elements on mark 1 in the reverse normal direction of reference element id 23:
*createmark elems 1 12 29 53 23
*adjustgroupsnormal "test" 1 1 1 23 1

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

14.0.130