找回密码
 注册
Simdroid-非首页
查看: 593|回复: 12

[命令/FISH] (原创)逐个取得模型中interface面上的法向力和切向力!

[复制链接]
发表于 2006-9-4 16:35:10 | 显示全部楼层 |阅读模式 来自 陕西铜川
本帖最后由 cloud328 于 2010-6-8 13:29 编辑

;file
;Int_force_setout.dat
;Used for FLAC2D only
;#########################################################################
; Get the normal froce and shear shear of interfaces.Set out the normal and

; shear force by plot.In the plot , X-axes is the X-cordinate of the ;

interface and  Y-axes is the absolute value of the force.
;#########################################################################
;-------------- written by tg0215 on 2006-9-4 -----------------------------

set echo off
cal int.fin
set echo on

; example model
g 10 11
m e
prop dens 2000 sh 1e8 bu 2e8
m n j=6
ini x add 2.5  y add -0.9 j=7,12
int 4 aside from 1,6 to 11,6 bside from 1,7 to 11,7
int 4 kn 5e8 ks 2.5e8 fric 10
set grav 10,5  large
fix x y j=1
step 1000
;
def save_data
  
  ip=int_pnt
  loop while ip # 0
    id_int=imem(ip+$kicid)  
    A_side_pointer=imem(ip+$kicapt)
    B_side_pointer=imem(ip+$kicbpt)
    n=1
    loop while A_side_pointer # 0
      jj=imem(A_side_pointer+$kidj)
      ii=imem(A_side_pointer+$kidi)
      xtable(id_int,n)=x(ii,jj)
      xtable(id_int+10,n)=x(ii,jj)
      ytable(id_int,n)=abs(fmem(A_side_pointer+$kidfn))
      ytable(id_int+10,n)=abs(fmem(A_side_pointer+$kidfs))
      A_side_pointer=imem(A_side_pointer)
      n=n+1
    endloop
    ip=imem(ip)
  endloop
end
save_data

def set_out
  ip=int_pnt
  loop while ip # 0
    id_int=imem(ip+$kicid)
    ppp=id_int+10
    command
      pl hold table id_int both
      pl hold table ppp both
    endcommand
    ip=imem(ip)
  endloop
end
set_out

评分

1

查看全部评分

 楼主| 发表于 2006-9-4 16:38:32 | 显示全部楼层 来自 陕西铜川

模型及interface所在位置。

Simdroid开发平台
模型及interface所在位置。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
 楼主| 发表于 2006-9-4 16:39:23 | 显示全部楼层 来自 陕西铜川

取出的interface法向力-normal force

法向力-normal force

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
 楼主| 发表于 2006-9-4 16:40:00 | 显示全部楼层 来自 陕西铜川

取出的interface切向力-shear force

切向力-shear force

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
 楼主| 发表于 2006-9-4 17:27:36 | 显示全部楼层 来自 陕西铜川

两点说明

两点说明
1,interface的两个面,只取了aside面的normal force和shear force;
2,无法取liner和beam单元的interface上的力。
发表于 2006-9-5 14:40:46 | 显示全部楼层 来自 贵州毕节
过来支持你!
发表于 2007-12-21 10:19:44 | 显示全部楼层 来自 江苏南京
顶一下!
回复 不支持

使用道具 举报

发表于 2008-6-29 09:28:46 | 显示全部楼层 来自 河北石家庄
先学习一下flac2d,不错的资料,哈哈
回复 不支持

使用道具 举报

发表于 2008-7-3 11:26:22 | 显示全部楼层 来自 湖南长沙

厉害

有人做3D的吗
回复 不支持

使用道具 举报

发表于 2008-9-5 09:01:07 | 显示全部楼层 来自 四川成都
谢谢版主讲解,谢谢了。。。
回复 不支持

使用道具 举报

发表于 2009-10-26 17:42:35 | 显示全部楼层 来自 河北唐山
牛人啊,敬仰
回复 不支持

使用道具 举报

发表于 2010-6-8 12:10:45 | 显示全部楼层 来自 湖北武汉
只是用于2d,先是很高兴,后是很失望
回复 不支持

使用道具 举报

发表于 2010-6-8 12:11:40 | 显示全部楼层 来自 湖北武汉
不过还是可以学习研究一下的
回复 不支持

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Simapps系列直播

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-9-25 18:31 , Processed in 0.050167 second(s), 13 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表