*spring
Creates a spring element between two nodes using an orientation vector.
Syntax
*spring node_id1 node_id2 dof property_name vector_id
Type
HyperMesh Tcl Modify
Description
Creates a spring element between two nodes using an orientation vector.
Inputs
- node_id1
- The ID of the first node.
- node_id2
- The ID of the second node.
- dof
- The degree of freedom for the element.
- property_name
- The name of the property to assign to the element.
- vector_id
- The ID of the orientation vector assigned to the element.
Example
To create a spring element between node 100 and node 101 with DOF 2, property springprop, and orientation vector ID 51:
*spring 100 101 2 "springprop" 51
Errors
Incorrect usage results in a Tcl error. To
detect errors, you can use the catch
command:
if { [ catch {command_name...} ] } {
# Handle error
}