找回密码
 注册
Simdroid-非首页
楼主: ustcgoby

[命令和APDL] 请问:ANSYS中可以列出变形后的节点坐标(x,y,z)吗?

[复制链接]
飞翔 该用户已被删除
发表于 2003-11-25 11:42:15 | 显示全部楼层 来自 天津
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2003-12-1 06:33:15 | 显示全部楼层 来自 上海徐汇区

回复: 请问:ANSYS中可以列出变形后的节点坐标(x,y,z)吗?

Simdroid开发平台
    至少有两种方法给出变形后的节点坐标:
1 用 upcoord 命令直接用位移结果修改节点坐标,命令格式如下:
    upcoord,  factor, key
    其中: factor - 用位移结果修改节点坐标时的比例银子,一般为1;
                key  - 用位移结果修改节点坐标后是否将数据库中的位移清为零。
  使用 upcoord 命令后,再用 list 命令显示出的节点坐标就是变形后的坐标了。
  
2 如果不想修改节点坐标,以下的 APDL 程序可以将当前选定的节点组的变形后坐标写到一个文件(暂定 result.txt,可以自己修改)中,其中参数 arg1 为所要读取的结果组号,默认为 last:
  
!*
/post1
*get,sys0,active,0,csys              !   current coordinate system
csys,0
*cfopen,result,txt                   !   prepar to write result file named result.txt
*get,nn,node,,count                  !   nn - the count of selected nodes
fn=nint(arg1)
*if,fn,gt,0.001,then               !   read the arg1'th set of result  or last set of result
   set,arg1
*else
   set,last
*endif
!*
in=ndnext(0)                         !  teh first node number in selected nodes
*do,i,1,nn
  *if,nsel(in),eq,1,then
    xi=nx(in)+ux(in)
    yi=ny(in)+uy(in)
    zi=nz(in)+uz(in)
    *vwrite,in,xi,yi,zi              !  write the coordinates of node - in
    (f6.0,'  ',3f16.8)
!    *vwrite,nx(in),ny(in),nz(in)    !  for verify
!     ('        ',3f16.8)
!     *vwrite,ux(in),uy(in),uz(in)    !  for verify
!     ('        ',3f16.8)
  *endif
  in=ndnext(in)
*enddo
!*
*cfclos
xi=                    !  release xi ......
yi=
zi=
nn=
in=
fn=
sys0=
i=
csys,sys0

点评

发表于 2012-6-28 10:15
发表于 2007-7-21 23:04:44 | 显示全部楼层 来自 日本
太好了,感谢楼上大侠们指导
回复 不支持

使用道具 举报

发表于 2010-12-14 15:06:54 | 显示全部楼层 来自 重庆沙坪坝区
没看明白是什么意思啊?
回复 不支持

使用道具 举报

发表于 2011-3-15 20:24:57 | 显示全部楼层 来自 大连理工大学
谢谢大家的讨论  方法都很好  提高了工作效率
回复 不支持

使用道具 举报

发表于 2011-7-21 10:31:44 | 显示全部楼层 来自 浙江杭州
ustcgoby 兄
得到节点坐标的函数是
NX(N) X-coordinate of node N in the active coordinate system.  
NY(N) Y-coordinate of node N in the active coordinate system.  
NZ(N) Z-coordinate of node N in t ...
cbsteven 发表于 2003-11-6 20:18
NX(N)用于/prep7,UX(N)用于/post1
回复 不支持

使用道具 举报

发表于 2012-4-16 10:36:20 | 显示全部楼层 来自 山西太原
htbbzzg 发表于 2003-12-1 06:33
    至少有两种方法给出变形后的节点坐标:
1 用 upcoord 命令直接用位移结果修改节 ...

谢谢大神的回复啊,就是这个upcoord命令我找了好久啊,真不知道怎么感谢你好啊,全是眼泪啊
回复 不支持

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-6-5 09:11 , Processed in 0.033086 second(s), 10 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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