*morphconstraintcreatevec
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
*morphconstraintcreatevec ntype nmark type name vec plane dist color
Type
HyperMesh Tcl Modify Command
Description
This command 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.
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
- name
- The name of morph constraint.
- 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 create 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
*morphconstraintcreatevec nodes 1 0 "vec" 1 1 0.0 32
Errors
if { [ catch {command_name...} ] } {
# Handle error
}