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

[后处理] 节点合力提取写入文件-- 简单的命令流问题

[复制链接]
发表于 2010-6-2 22:05:07 | 显示全部楼层 |阅读模式 来自 上海徐汇区
本帖最后由 gczhang 于 2010-6-3 23:02 编辑

下面提取2个载荷步共26个子步的节点合力数据,然后写入数据文件,但得到的都是同样的26对(Fx,Fy)数据,谁能帮我看一下问题出在哪里?谢谢!

finish
/clear, start
/post1
! Input file name in the following two lines
resume, HViscoNew3,db
file, HViscoNew3,rst

! Input number of steps
nstep=26
*dim,fx_U,array,nstep,1
*dim,fy_U,array,nstep,1

! Input height of the back surface of the indenter  
h=0.000519
nsel,s,loc,y,h

! load step 1, substeps 1~6
*do,k,1,6
set,1,k
*get,fx_U(k),fsum,,item,fx
*get,fy_U(k),fsum,,item,fy
*enddo

! load step 2, substeps 1~20
*do,k,1,20
set,2,k
*get,fx_U(k+6),fsum,,item,fx
*get,fy_U(k+6),fsum,,item,fy
*enddo

*CFOPEN,reaction_force2,txt
*VWRITE,fx_U(1),fy_U(1)
(2(e12.6,2x))  
*CFCLOS
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Simapps系列直播

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

GMT+8, 2024-9-23 09:30 , Processed in 0.055006 second(s), 13 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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