*elementquality_move_node

Moves a node from its current position to a new position to improve element quality.

Syntax

*elementquality_move_node entity_id movelength=<value> x=<value> y=<value> z=<value>

Type

HyperMesh Tcl Modify Command

Description

Moves a node from its current position to a new position to improve element quality. The command supports three different use cases: move a node to a specific position, translate the node in a specified direction, or translate it along its normal vector.

Inputs

entity_id
The ID of the node.
movelength=<value>
The distance to translate the node. The value can be positive or negative.
x=<value>
The x-component of the directional vector or the x-coordinate of the new position.
y=<value>
The y-component of the directional vector or the y-coordinate of the new position.
z=<value>
The z-component of the directional vector or the z-coordinate of the new position.

Example

To move node ID 15 to a new position with coordinates x = 25.5, y = 65.9, z = 15.9:
*elementquality_move_node 15 x=25.5 y=65.9 z=15.9
To translate node ID 15 by 6.5 units in the positive direction defined by vector (0, 1, 1):
*elementquality_move_node 15 movelength=6.5 x=0 y=1 z=1
To translate node ID 15 by 6.5 units in the normal direction:
*elementquality_move_node 15 movelength=6.5

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

2021.1