*morphconstraintcreateplane

Creates a plane type morphconstraint for the selected nodes with the option of having those nodes either move along the plane or be bounded by it.

Syntax

*morphconstraintcreateplane ntype nmark type name vec plane dist ivec color

Type

HyperMesh Tcl Modify Command

Description

This command creates a plane type morphconstraint for the selected nodes with the option of having those nodes either move along the plane 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 plane
1 - Bounded by the plane
3 - Remains a set distance from the plane
5 - 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).
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.
ivec
0 - The plane normal is used for distance and projection. The nodes will be moved normally to the plane when constraining them or measuring the distance the nodes are away from the plane.
1 - The vector is used for distance and projection. The nodes will be moved along the vector when constraining them or measuring the distance the nodes are away from the plane.
color
The color of the constraint. Valid values are 1 through 64.

Example

To create a morphconstraint for nodes to move along a plane and projected normally to the plane:

*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
*morphconstraintcreateplane nodes 1 0 "plane" 1 1 0.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
}