*spatialrenumbering
Renumbers the solver IDs for the specified entity type based on spatial locations.
Syntax
*spatialrenumbering entity_type <option1>=<value1> <option2>=<value2> ... <optionN.=<valueN>
Type
HyperMesh Tcl Modify Command
Description
Renumbers the solver IDs for nodes or elements based on spatial locations. First, it sorts all selected entities based on the preference axis and then it renumbers them. The input for preference axis can be given by specifying the axis or by selecting nodes/elements in the direction of preference axis. The sorted nodes/elements can be renumbered in continuous or non-continuous way.
Inputs
- entity_type
- The type of entity selected for renumbering. Valid values are nodes and elements.
- mark=<mark_id>
- The mark that contains the entities. Valid values are 1 and 2.
- type=<value>
- The type of renumbering.
- renumberingtype=<value>
- The renumbering method.
The following options apply to type=axis only:
- systemid=<value>
- The ID of the system. For the global system, a value of 0 must be used.
- startid=<value>
- The ID to be assigned to the first entity. The value must be an unsigned integer.
- primaryaxis=<value>
- The primary axis followed by the renumbering. +x=1, -x=-1, +y=2, -y=-2, +z=+3, -z=-3, none=0.
- primarytolerance=<value>
- The primary tolerance value.
- primaryidincrement=<value>
- The renumbering increment in the primary direction.
- secondaryaxis=<value>
- The secondary axis followed by the renumbering. +x=1, -x=-1, +y=2, -y=-2, +z=+3, -z=-3, none=0.
- secondarytolerance=<value>
- The secondary tolerance value.
- secondaryidincrement=<value>
- The renumbering increment in the secondary direction.
- ternaryaxis=<value>
- The ternary axis followed by the renumbering. +x=1, -x=-1, +y=2, -y=-2, +z=+3, -z=-3, none=0.
- ternarytolerance=<value>
- The ternary tolerance value.
- ternaryidincrement=<value>
- The renumbering increment in the secondary direction.
The following options apply to type=adjacent only:
- startentityid=<value>
- The entity ID from which renumbering starts. The ID should be from the input mark only.
- primaryentityid=<value>
- The entity ID defining the direction of the primary axis. The direction is given by taking the start entity as the starting point and pointing towards the primary entity ID. The ID should be from the input mark only.
- secondaryentityid=<value>
- The entity ID defining the direction of the primary axis. The direction is given by taking the start entity as the starting point and pointing towards the secondary entity ID. The ID should be from the input mark only. Set to 0 if not specified.
- ternaryentityid=<value>
- The entity ID defining the direction of the primary axis. The direction is given by taking the start entity as starting point and pointing towards the ternary entity ID. The ID should be from input mark only. Set to 0 if not specified.
Examples
*createmark elems 1 displayed
*spatialrenumbering elems mark=1 type=axis renumberingtype=1 systemid=0 startid=1 primaryaxis=1 primarytolerance=0.5 primaryidincrement=1 secondaryaxis=2 secondarytolerance=0.5 secondaryidincrement=1 ternaryaxis=3 ternarytolerance=0.5 ternaryidincrement=1
*createmark elems 1 displayed
*spatialrenumbering elems mark=1 type=adjacent startentityid=349 primaryentityid=351 secondaryentityid=2 ternaryentityid=0 startid=1 primaryidincrement=1 secondaryidincrement=10 ternaryidincrement=100
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
14.0.120
2021.2 - Added new arguments renumbering_type, ternary_axis, ternary_tolerance, ternaryid_increment, and ternary_entity_id.