- 积分
- 0
- 注册时间
- 2019-8-29
- 仿真币
-
- 最后登录
- 1970-1-1
|
发表于 2019-10-8 18:23:54
|
显示全部楼层
来自 重庆沙坪坝区
本帖最后由 qq511639960 于 2019-10-10 23:10 编辑
对上面的进行了一下改进,1.41422是我的节理角度为45°,ipd = in_sstr(p_in,1)里的1,2,3分别指的是整体坐标系的xyz轴。
希望能对大家有所帮助!!!!!!
def iget_plast
while_stepping
p_i=i_head
p_in=i_node_head(p_i)
loop while p_in # null
if in_prop(p_in,'coh') = 4820000 then
ipd = in_sstr(p_in,1)
ipdd=ipd*1.41422
innstr=in_nstr(p_in)
incoh=in_prop(p_in,'coh')
infric=in_prop(p_in,'fric')
infric1=infric*pi/180
infric2=tan(infric1)
pohuai=innstr*infric2+incoh
if ipdd > pohuai then
in_prop(p_in,'fric') = 1
in_prop(p_in,'coh') = 0
in_prop(p_in,'ten') = 0
endif
endif
p_in= in_next(p_in)
end_loop
end
不好意思,网络卡了发重了,版主看到可以帮忙删一下 |
|