- 积分
- 0
- 注册时间
- 2008-8-13
- 仿真币
-
- 最后登录
- 1970-1-1
|
发表于 2008-8-22 11:21:09
|
显示全部楼层
来自 四川成都
结构单元之间的链接问题(求助!)
对隧洞开挖过程中的临时支护进行模拟,下面这段命令:
def oper_link
link_id=1e7
z_=0.5
loop m(1,p)
loop n(0,14)
J_J3=n*1.5*pi/14-pi/4
x_shellnode=Rshell*cos(J_J3)
y_shellnode=z_
z_shellnode=Rshell*sin(J_J3)
x_beamnode=Rbeam*cos(J_J3)
y_beamnode=z_
z_beamnode=Rbeam*sin(J_J3)
sn_pointer=nd_near(x_shellnode, y_shellnode, z_shellnode)
bn_pointer=nd_near(x_beamnode, y_beamnode, z_beamnode)
shellnode_id=nd_id(sn_pointer)
beamnode_id=nd_id(bn_pointer)
command
sel set link node_tol 0.3
sel link id link_id beamnode_id target node tgt_num shellnode_id
sel link attach xdir=rigid ydir=rigid zdir=rigid range id link_id
sel link attach xrdir=free yrdir=free zrdir=free range id link_id
end_command
link_id=link_id+1
end_loop
z_=z_+1
end_loop
end
运行后出现“Target node and source node are same”。
调整Rbeam和Rshell值好像也没什么影响啊!! |
|