*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
- 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
}