*morphconstraintcreateavm
Creates a model type constraint based on the area, volume, or mass of the elements on the mark.
Syntax
*morphconstraintcreateavm stype smark etype emark type name target bound color
Type
HyperMesh Tcl Modify
Description
This command creates a model type constraint for the elements on the mark with the option of having the area, volume, or mass forced to be greater than, less than, or equal to the specified value.
The shapes on the mark will be used to force the model into compliance with the specified constraint if possible.
Inputs
- stype
- Must be set to shapes.
- smark
- The ID of the mark containing the shapes. Valid values are 1 and 2.
- etype
- Must be set to elements
- emark
- The ID of the mark containing the elements. Valid values are 1 and 2.
- type
- 0 - Area
- name
- The name of morph constraint.
- target
- The constrained value for area, volume, or mass.
- bound
- -1 - Greater than specified target
- color
- The color of the constraint. Valid values are 1 through 64.
Example
To create a constraint named "area" where the area is specified to be exactly 3600:
*morphconstraintcreateavm shapes 1 elements 1 0 "area" 3600.0 0 32
Errors
if { [ catch {command_name...} ] } {
# Handle error
}