*morphcreatemodelshape

Creates an arbitrary shape that can be used with a model constraint.

Syntax

*morphcreatemodelshape type mode e_entity_type e_mark_id node_list plane did lid

Type

HyperMesh Tcl Modify

Description

This command will create a shape which, when applied, will change the value specified in type (length along nodes, angle measured by three nodes, the radius or arc angle of an edge domain, or the area, volume, or mass of selected elements) for the mesh.

This command is intended to be used as a precursor to the creation of a "model constraint" where some feature of a mesh is constrained and one or more assigned shapes are used to adjust the mesh to meet the constraint. This command is best used to generate an arbitrary shape which can then be selected when creating the model constraint.

Each shape type has different required values. Length (type 0) requires two or more nodes in the node_list node list. Angle (type 1) requires three nodes in the node_list node list. Radius and arc angle (type 2 and 3) require an edge domain ID for did and for mode 1 a plane is required for plane, for mode 2 a line ID is required for lid, and for mode 3 a node is required for nodes. Area, volume, and mass (type 4, 5, and 6) require elements in mark_id.

Inputs

type
0 – Length
1 – Angle
2 – Radius
3 – Arc angle
4 – Area
5 – Volume
6 – Mass
mode
Calculation mode for a radius or arc angle:
0 – By domain
1 – By axis
2 – By line
3 – By node
e_entity_type
Must be set to elems.
e_mark_id
The mark ID containing elements for types 4, 5, and 6. Valid values are 1 and 2.
node_list
The node list ID.
For type 0, this is a list of nodes which measures the length.
For type 1, this is three nodes which measure the angle.
For type 2 and 3, this is the node for measuring the radius or arc angle (mode 3). Valid values are 1 and 2.
plane
Temporary plane ID (axis - point and vector) used to measure the radius or arc angle (type 2 and 3, mode 1)
did
ID of domain for measuring radius and arc angle (type 2 and 3)
lid
ID of line for measuring the radius and arc angle (type 2 and 3, mode 2)

Examples

To create a shape for a model constraint for a length measured from nodes 11 to 12 to 13:

*createmark elems 1
*createlist nodes 1 11 12 13
*createplane 1,1.0 0.0 0.0 1.0 0.0 0.0
*morphcreatemodelshape 0 0 elems 1 1 1 0 0

To create a shape for a model constraint for a radius measured about an axis:

*createmark elems 1
*createlist nodes 1
*createplane 1,1.0 0.0 0.0 1.0 0.0 0.0
*morphcreatemodelshape 2 1 elems 1 1 1 33 0

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}

"Domain not found." - occurs if the domain ID (did) does not exist in the model (required for types 2 and 3).

"Line not found." - occurs if the line ID (lid) does not exist in the model (required for types 2 and 3, mode 2).

Version History

10.0