*morphconstraintcreatesurf
Creates a surface type morphconstraint for the selected nodes with the option of having those nodes either move along the surface or be bounded by it.
Syntax
*morphconstraintcreatesurf ntype nmark type name vec surf dist ivec color
Type
HyperMesh Tcl Modify
Description
This command creates a surface type morphconstraint for the selected nodes with the option of having those nodes either move along the surface or be bounded by it.
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 surface
- name
- The name of morph constraint.
- vec
- The ID of the vector created using *createvector. Must be set to 1.
- surface
- The ID of the surface.
- dist
- The minimum distance from the bounding surface.
- ivec
- 0 - The surface normal is used for distance and projection. The nodes will be moved normally to the surface when constraining them or measuring the distance the nodes are away from the surface.
- color
- The color of the constraint. Valid values are 1 through 64.
Example
To create a morphconstraint for nodes to move along a surface and projected normally to the surface:
*createmark nodes 1 1 2 3 4 5
*createvector 1 1.0 0.0 0.0
*morphconstraintcreatesurf nodes 1 0 "surface" 1 12 0.0 0 32
Errors
if { [ catch {command_name...} ] } {
# Handle error
}