*morphconstraintupdatevec

Creates a vector type morphconstraint for the selected nodes with the option of having those nodes bounded to move no closer than a given distance from the specified plane.

Syntax

*morphconstraintupdatevec ntype nmark type mcon vec plane dist color

Type

HyperMesh Tcl Modify

Description

This command updates a vector type morphconstraint for the selected nodes with the option of having those nodes bounded to move no closer than a given distance from the specified plane.

Inputs

ntype
Must be set to nodes.
nmark
The ID of the mark for the constrained nodes. Valid values are 1 and 2.
type
0 - Moves along the vector
1 - Moves along the vector and is bounded by the plane
3 - Moves along the vector, at a set distance from the plane
5 - Moves along the vector and remains its original distance from the plane
+32 - Enable mesh stretching around constrained nodes. Add this value to the type (thus 1, 3, and 5 become 33, 35, and 37).
mcon
The ID of the morph constraint to update.
vec
The ID of the vector created using *createvector. Must be set to 1.
plane
The ID of the plane created using *createplane. Must be set to 1.
dist
The minimum distance from the bounding plane.
color
The color of the constraint. Valid values are 1 through 64.

Example

To update a morphconstraint for nodes to move along a vector and projected normally to the surface:

*createmark nodes 1 1 2 3 4 5
*createvector 1 1.0 0.0 0.0
*createplane 1 1.0 0.0 0.0 0.0 0.0 0.0
*morphconstraintupdatevec nodes 1 0 "vec" 1 1 0.0 32

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}