*autoupdate1delems

Update orientation and/or offset of 1D elements with reference to neighboring shells.

Syntax

*autoupdate1delems <option1>=<value1> <option2>=<value2> ... <optionN>=<valueN>

Type

HyperMesh Tcl Modify

Description

This command updates the orientation and offset of 1D elements using the normal and thickness of neighboring shells. These shells are identified by the command itself. It works only with bar/beam elements.

Options can be provided in any order.

Inputs

mark=<mark_id>
The ID of the mark containing the input elements. Valid values are 1 and 2.
adjustoffset=<value>
Flag to adjust offset in vertical (normal) and/or lateral direction. Valid values are:
vert - Adjusts vertical offset
lat - Adjusts lateral offset
all - Adjusts both offsets
allshells=<value>
Flag to consider all or displayed neighbouring shells. Valid values are:
0 - Only displayed shells
1 - All shells
angletol=<value>
The angular tolerance in degrees, used for orientation to check whether shell normal is within limit.
offsetends=<value>
The flag to offset at both ends of the elements or any one. Valid values are:
start - Offset at start/end a
end - Offset at end/end b
startend - Offset at both ends
offsetlateral=<value>
The offset flag in lateral direction. Valid values are:
neg - Negative
pos - Positive
offsetnormal=<value>
The offset flag in normal direction. Valid values are:
neg - Negative
pos - Positive
orient=<value>
Flag to orient the elements. Valid values are:
0 - False
1 - True
rotate=<angle>
The rotation angle in degrees, for orientation. Elements are rotated along their respective X-axis.
thickness=<value>
The mode of thickness to be considered for shell thickness, in case of multiple neighboring shells having different thickness values. Valid values are:
avg - Averaged thickness
max - Maximum thickness
min - Minimum thickness

Examples

Update orientation of selected 1D elements by 180 degrees to shell normal:

*createmark elements 1 1 2 3 4
*autoupdate1delems mark=1 orient=1 rotate=180 allshells=0

Update offset of selected 1D elements at both ends in negative direction of base and positive direction of adjacent with respect to neighboring shells (considering its average thickness):

*createmark elements 1 1 2 3 4
*autoupdate1delems mark=1 orient=0 allshells=0 thickness=avg offsetnormal=neg offsetlateral=pos adjustoffset=all offsetends=startend

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

2019