*barelement

Creates a bar element.

Syntax

*barelement node1 node2 vector_id orientation_node y_dir pin_flags_a pin_flags_b property_name

Type

HyperMesh Tcl Modify

Description

Creates a bar element.

Inputs

node1
The first node ID (end a).
node2
The second node ID (end b).
vector_id
The ID of the y-axis vector to use, defined using the *createvector command. If used, this must be set to 1. This argument is only used if orientation_node is 0.
orientation_node
The orientation node ID. If set to 0, then vector_id is used. If non-zero, then y_dir specifies whether this node defines the local y- or local z-axis.
y_dir
If set to 1, then orientation_node defines the local y-axis of the bar. Otherwise, orientation_node defines the local z-axis.
pin_flags_a
The pin flags at end a. A pin flag of 0 passes forces in all degrees of freedom.
pin_flags_b
The pin flags at end b. A pin flag of 0 passes force in all degrees of freedom.
property_name
The name of the property collector assigned to the bar.

Examples

To create a bar3 element between nodes 101 and 102 with its local y-axis defined by the vector (1,0,0) and assigned property prop1:
*createvector 1 1.0000 0.0000 0.0000
*barelement 101 102 1 0 0 0 0 "prop1"

Errors

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