*morphconstraintupdateavm

Updates a model type constraint based on the area, volume, or mass of the elements on the mark.

Syntax

*morphconstraintupdateavm stype smark etype emark type mcon target bound color

Type

HyperMesh Tcl Modify Command

Description

This command updates 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
1 - Volume
2 - Mass
mcon
The ID of morph constraint to update.
target
The constrained value for area, volume, or mass.
bound
-1 - Greater than specified target
0 - Equal to specified target
1 - Less than specified target
color
The color of the constraint. Valid values are 1 through 64.

Example

To update a constraint named "area" where the area is specified to be exactly 3600:

*morphconstraintupdateavm shapes 1 elements 1 0 5 3600.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
}