add_elastic_link
Create elastic links between structural nodes to simulate bearings and member connections. Specify stiffness, link type (general, rigid, tension-only, compression-only), gap, friction, and beta angle.
Instructions
Add an elastic link between two nodes (添加弹性连接).
Elastic links model connections like bearings between members.
弹性连接用于模拟支座等节点间的连接关系。
Args:
start_node_id: Start node ID (起始节点编号)
end_node_id: End node ID (终止节点编号)
link_type: Link type (连接类型):
1=General elastic (一般弹性连接), 2=Rigid (刚性连接),
3=Tension-only (受拉弹性连接), 4=Compression-only (受压弹性连接)
stiffness_values: Stiffness [kx, ky, kz, krx, kry, krz], ONLY for type=1
(刚度值列表,仅一般弹性连接需要)
kx: Axial stiffness for tension/compression links, ONLY for type=3/4
(受拉或受压刚度,仅受拉/受压连接需要)
gap: Gap for tension/compression links (间隙)
friction: Friction coefficient (摩擦系数)
beta_angle: Beta angle in degrees (贝塔角)
dis_ratio: Distance ratio from I-end, ONLY for type=1 (距i端距离比)
group_name: Boundary group name (边界组名)
Example:
add_elastic_link(1, 2, link_type=1, stiffness_values=[1e6,1e6,1e6,0,0,0])
add_elastic_link(1, 2, link_type=3, kx=1e6) # tension-only
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kx | No | ||
| gap | No | ||
| friction | No | ||
| dis_ratio | No | ||
| link_type | No | ||
| beta_angle | No | ||
| group_name | No | ||
| end_node_id | Yes | ||
| start_node_id | Yes | ||
| stiffness_values | No |