*morphconstraintupdatefc
Creates either a fixed or cluster type morphconstraint for the selected nodes with the options of having mesh stretching around those nodes and having the nodes rotate.
Syntax
*morphconstraintupdatefc ntype nmark type mcon color
Type
HyperMesh Tcl Modify Command
Description
This command updates either a fixed type morphconstraint or a cluster type morphconstraint for the selected nodes with the option of having mesh stretching around those nodes. Rotation options are also available for cluster type morphconstraints.
There are three options for rotation: in-plane, out-of-plane, and full rotation. In-plane will limit rotation of the cluster to the plane in which the cluster lies (spinning) while out-of-plane limits the rotation of the cluster to take place normal to the plane of the cluster (tilting). Full rotation allows both in-plane and out-of-plane rotation. For cluster constraints where the nodes do not lie in a discernable plane any rotation option results in full rotation.
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 - Fixed type constraint without mesh stretching
- mcon
- The ID of the morph constraint to update.
- color
- The color of the constraint. Valid values are 1 through 64.
Examples
To update a cluster morphconstraint with mesh stretching and full rotation:
*createmark nodes 1 "all"
*morphconstraintupdatefc nodes 1 37 "rivet" 12
To update a cluster morphconstraint without mesh stretching and with in-plane rotation:
*createmark nodes 1 "all"
*morphconstraintupdatefc nodes 1 29 "rivet" 12
Errors
if { [ catch {command_name...} ] } {
# Handle error
}