下面是对已经破坏的塑性区的参数重新赋值结果不对请指教
def get_plast
shearnow = 1
tensionnow = 2
shearpast = 4
tensionpast = 8
p_z = zone_head
loop while p_z # null
if and(z_state(p_z,0),shearnow) = shearnow then
z_prop(p_z,'bulk')=1.7*15.98148e9
z_prop(p_z,'shear')=1.7*6.537878e9
z_prop(p_z,'cohesion')=1.7*21.82e6
z_prop(p_z,'tension')=0.7*8e6
endif
if and(z_state(p_z,0),tensionnow) = tensionnow then
z_prop(p_z,'bulk')=1.3*15.98148e9
z_prop(p_z,'shear')=1.3*6.537878e9
z_prop(p_z,'cohesion')=1.3*21.82e6
z_prop(p_z,'tension')=0.3*8e6
endif
if and(z_state(p_z,0),shearpast) = shearpast then
z_prop(p_z,'bulk')=1.5*15.98148e9
z_prop(p_z,'shear')=1.5*6.537878e9
z_prop(p_z,'cohesion')=1.5*21.82e6
z_prop(p_z,'tension')=0.5*8e6
endif
if and(z_state(p_z,0),tensionpast) = tensionpast then
z_prop(p_z,'bulk')=1.3*15.98148e9
z_prop(p_z,'shear')=1.3*6.537878e9
z_prop(p_z,'cohesion')=1.3*21.82e6
z_prop(p_z,'tension')=0.3*8e6
endif
p_z = z_next(p_z)
endloop
end
get_plast
苦闷中请高手指教 命令流应该是有问题 但不知道怎么改 有 and 这种用法吗? :(:'(:'(:$有 但 很少:o:(:(:D :)太复杂了 先换一个参数 一种状态 先把这个搞定了。 已经解决 fish调用的问题这个函数没什么问题 谢谢了 我也遇到类似原因,你怎么解决的啊?? :o:(:D就行啦 有些特定的程序不一定自己非得编出来 顶一下,很有用。 这个命令流是对的
顶一下,很有用。
页:
[1]