如何提取变形之后的节点坐标(或振型坐标)
想提取变形之后的节点坐标来画图。我只要其中一部分节点,整图不行。
回复 楼主 luyunjun023 的帖子
记得以前讨论过,你搜索一下吧。回复 沙发 16443 的帖子
看到过讨论,但是问题没有解决。 可以这样尝试一下,提取各节点的原始坐标,再提取变形位移,两者相加。回复 地板 venture 的帖子
这样肯定可以呵呵
只是想要更好的办法
那样工作量太大 如何在ansys中获取变形后所有结点坐标(非原创)
allsel !选择所有
*cfopen,'r_out','txt', !定义输出文件名
*get,minnum,node,0,num,min !取最小节点编号
*get,enum,node,0,count !取节点数目
*do,i,1,enum,1 !循环开始
*vwrite,minnum,NX(minnum),NY(minnum),NZ(minnum),ux(minnum),uy(minnum),uz(minnum)
!将节点坐标及变形值写入文件中
(F8.0,tl1,' ','(',f6.4,',',f6.4,',',f6.4,')',' x',f15.12,'x y',f15.12,'y z',f15.12)
minnum=ndnext(minnum) !取下一个节点
*enddo !循环结束
回复 6楼 zhouxman 的帖子
谢谢您!把你的命令输进去,出现以下结果:
*** WARNING *** CP = 18.859 TIME= 19:03:55
In the graphical user interface,the *VWRITE command can only be
executed from an external file such as /INPUT or *USE.The command is
ignored.
*** WARNING *** CP = 18.906 TIME= 19:03:55
Error in format, not enough data format specifiers
.
*** WARNING *** CP = 19.016 TIME= 19:03:55
(F8.0,TL is not a recognized POST1 command, abbreviation, or macro.
This command will be ignored.
提取的结果为
2 (******,5.9240,******) x 0.250773816283x y-0.124269222167y z 0.000000000000
3 (******,******,******) x 0.256903384746x y-0.120730314165y z 0.000000000000
4 (8.6603,******,******) x 0.261452917178x y-0.115308392544y z 0.000000000000
5 (3.0077,******,******) x 0.263873672822x y-0.108657421073y z 0.000000000000
6 (******,******,******) x 0.263873672821x y-0.101579605068y z 0.000000000000
7 (******,******,******) x 0.261452917177x y-0.094928633597y z 0.000000000000
8 (******,******,******) x 0.256903384745x y-0.089506711977y z 0.000000000000
9 (******,5.9240,******) x 0.250773816281x y-0.085967803975y z 0.000000000000
10 (******,0.0000,******) x 0.243803528205x y-0.084738754124y z 0.000000000000
11 (******,******,******) x 0.236833240129x y-0.085967803975y z 0.000000000000
12 (******,******,******) x 0.230703671665x y-0.089506711978y z 0.000000000000
13 (******,******,******) x 0.226154139234x y-0.094928633598y z 0.000000000000
14 (******,******,******) x 0.223733383589x y-0.101579605070y z 0.000000000000
15 (3.0077,******,******) x 0.223733383590x y-0.108657421075y z 0.000000000000
16 (8.6603,******,******) x 0.226154139234x y-0.115308392546y z 0.000000000000
17 (******,******,******) x 0.230703671666x y-0.120730314166y z 0.000000000000
18 (******,******,******) x 0.236833240130x y-0.124269222168y z 0.000000000000
19 (******,0.0000,******) x 0.243803528206x y-0.123145468200y z 0.000000000000
20 (******,5.2401,******) x 0.249969109983x y-0.122058309780y z 0.000000000000
21 (******,9.8481,******) x 0.255391031603x y-0.118927961873y z 0.000000000000
22 (7.6604,******,******) x 0.259415329300x y-0.114131990635y z 0.000000000000
23 (2.6604,******,******) x 0.261556613379x y-0.108248860977y z 0.000000000000
24 (******,******,******) x 0.261556613379x y-0.101988165164y z 0.000000000000
25 (******,******,******) x 0.259415329299x y-0.096105035507y z 0.000000000000
26 (******,9.8481,******) x 0.255391031602x y-0.091309064269y z 0.000000000000
27 (******,5.2401,******) x 0.249969109982x y-0.088178716362y z 0.000000000000
28 (******,0.0000,******) x 0.243803528205x y-0.087091557943y z 0.000000000000
29 (******,******,******) x 0.237637946428x y-0.088178716362y z 0.000000000000
30 (******,******,******) x 0.232216024808x y-0.091309064270y z 0.000000000000
31 (******,******,******) x 0.228191727111x y-0.096105035508y z 0.000000000000
32 (******,******,******) x 0.226050443032x y-0.101988165165y z 0.000000000000
33 (2.6604,******,******) x 0.226050443032x y-0.108248860979y z 0.000000000000
34 (7.6604,******,******) x 0.228191727112x y-0.114131990636y z 0.000000000000
35 (******,******,******) x 0.232216024809x y-0.118927961874y z 0.000000000000
36 (******,******,******) x 0.237637946430x y-0.122058309781y z 0.000000000000
37 (******,0.0000,******) x 0.243803528206x y-0.120244924471y z 0.000000000000
38 (******,4.3969,******) x 0.248977065601x y-0.119332690242y z 0.000000000000
39 (9.8481,8.2635,******) x 0.253526598033x y-0.116706016468y z 0.000000000000
40 (6.4279,******,******) x 0.256903384746x y-0.112681718770y z 0.000000000000
41 (2.2324,******,******) x 0.258700135427x y-0.107745186845y z 0.000000000000
42 (******,******,******) x 0.258700135427x y-0.102491839297y z 0.000000000000
43 (******,******,******) x 0.256903384745x y-0.097555307371y z 0.000000000000
44 (******,8.2635,******) x 0.253526598032x y-0.093531009674y z 0.000000000000
45 (******,4.3969,******) x 0.248977065600x y-0.090904335900y z 0.000000000000
46 (******,0.0000,******) x 0.243803528205x y-0.089992101672y z 0.000000000000
47 (******,******,******) x 0.238629990810x y-0.090904335901y z 0.000000000000
48 (******,******,******) x 0.234080458379x y-0.093531009675y z 0.000000000000
49 (******,******,******) x 0.230703671665x y-0.097555307372y z 0.000000000000
50 (******,******,******) x 0.228906920984x y-0.102491839298y z 0.000000000000
51 (2.2324,******,******) x 0.228906920984x y-0.107745186846y z 0.000000000000
52 (6.4279,******,******) x 0.230703671666x y-0.112681718772y z 0.000000000000
53 (9.8481,******,******) x 0.234080458380x y-0.116706016469y z 0.000000000000
54 (******,******,******) x 0.238629990811x y-0.119332690242y z 0.000000000000
55 (******,0.0000,******) x 0.243803528206x y-0.116884772386y z 0.000000000000
56 (9.3969,3.4202,******) x 0.247827825903x y-0.116175180123y z 0.000000000000
57 (7.6604,6.4279,******) x 0.251366733906x y-0.114131990635y z 0.000000000000
58 (5.0000,8.6603,******) x 0.253993407680x y-0.111001642728y z 0.000000000000
59 (1.7365,9.8481,******) x 0.255391031602x y-0.107161702559y z 0.000000000000
60 (******,9.8481,******) x 0.255391031602x y-0.103075323583y z 0.000000000000
61 (******,8.6603,******) x 0.253993407679x y-0.099235383414y z 0.000000000000
62 (******,6.4279,******) x 0.251366733905x y-0.096105035507y z 0.000000000000
63 (******,3.4202,******) x 0.247827825902x y-0.094061846019y z 0.000000000000
64 (******,0.0000,******) x 0.243803528205x y-0.093352253757y z 0.000000000000
65 (******,******,******) x 0.239779230508x y-0.094061846020y z 0.000000000000
66 (******,******,******) x 0.236240322506x y-0.096105035508y z 0.000000000000
67 (******,******,******) x 0.233613648732x y-0.099235383415y z 0.000000000000
68 (******,******,******) x 0.232216024809x y-0.103075323584y z 0.000000000000
69 (1.7365,******,******) x 0.232216024809x y-0.107161702560y z 0.000000000000
70 (5.0000,******,******) x 0.233613648732x y-0.111001642729y z 0.000000000000
71 (7.6604,******,******) x 0.236240322506x y-0.114131990636y z 0.000000000000
72 (9.3969,******,******) x 0.239779230509x y-0.116175180124y z 0.000000000000
73 (6.8404,0.0000,******) x 0.243803528206x y-0.113167108466y z 0.000000000001
74 (6.4279,2.3396,******) x 0.246556309956x y-0.112681718771y z 0.000000000001
75 (5.2401,4.3969,******) x 0.248977065601x y-0.111284094848y z 0.000000000001
76 (3.4202,5.9240,******) x 0.250773816282x y-0.109142810768y z 0.000000000001
77 (1.1878,6.7365,******) x 0.251729847351x y-0.106516136994y z 0.000000000001
78 (******,6.7365,******) x 0.251729847351x y-0.103720889148y z 0.000000000001
79 (******,5.9240,******) x 0.250773816282x y-0.101094215374y z 0.000000000001
80 (******,4.3969,******) x 0.248977065600x y-0.098952931294y z 0.000000000000
81 (******,2.3396,******) x 0.246556309956x y-0.097555307372y z 0.000000000000
82 (******,0.0000,******) x 0.243803528205x y-0.097069917677y z 0.000000000000
83 (******,******,******) x 0.241050746455x y-0.097555307372y z 0.000000000000
84 (******,******,******) x 0.238629990810x y-0.098952931295y z 0.000000000000
85 (******,******,******) x 0.236833240129x y-0.101094215375y z 0.000000000001
86 (******,******,******) x 0.235877209060x y-0.103720889149y z 0.000000000001
87 (1.1878,******,******) x 0.235877209061x y-0.106516136995y z 0.000000000001
88 (3.4202,******,******) x 0.236833240130x y-0.109142810769y z 0.000000000001
89 (5.2401,******,******) x 0.238629990811x y-0.111284094848y z 0.000000000001
90 (6.4279,******,******) x 0.241050746456x y-0.112681718771y z 0.000000000001
91 (3.4730,0.0000,******) x 0.243803528206x y-0.109204892047y z 0.000000000001
92 (3.2635,1.1878,******) x 0.245201152129x y-0.108958453241y z 0.000000000001
93 (2.6604,2.2324,******) x 0.246430201980x y-0.108248860978y z 0.000000000001
94 (1.7365,3.0077,******) x 0.247342436208x y-0.107161702559y z 0.000000000001
95 (0.6031,3.4202,******) x 0.247827825903x y-0.105828105334y z 0.000000000001
96 (-.6031,3.4202,******) x 0.247827825903x y-0.104408920809y z 0.000000000001
97 (******,3.0077,******) x 0.247342436208x y-0.103075323583y z 0.000000000001
98 (******,2.2324,******) x 0.246430201980x y-0.101988165164y z 0.000000000001
99 (******,1.1878,******) x 0.245201152128x y-0.101278572902y z 0.000000000001
100 (******,0.0000,******) x 0.243803528205x y-0.101032134096y z 0.000000000001
101 (******,******,******) x 0.242405904282x y-0.101278572902y z 0.000000000001
102 (******,******,******) x 0.241176854431x y-0.101988165165y z 0.000000000001
103 (******,******,******) x 0.240264620203x y-0.103075323584y z 0.000000000001
104 (-.6031,******,******) x 0.239779230508x y-0.104408920809y z 0.000000000001
105 (0.6031,******,******) x 0.239779230508x y-0.105828105334y z 0.000000000001
106 (1.7365,******,******) x 0.240264620203x y-0.107161702559y z 0.000000000001
107 (2.6604,******,******) x 0.241176854432x y-0.108248860978y z 0.000000000001
108 (3.2635,******,******) x 0.242405904283x y-0.108958453241y z 0.000000000001
109 (0.0000,0.0000,******) x 0.243803528206x y-0.105118513071y z 0.000000000001
请问怎么会这样了,节点坐标不完整。 可以直接用upgeom或upcoord后用list列出节点变形后坐标。
回复 7楼 luyunjun023 的帖子
呵呵 ,不好意思我也是看到别人发的,不晓得为什么,我也试验了一下,发现大于10的数就写不出来,不知道是不是命令流的问题,还是其他原因上面院长的回答太简洁了,还是不知道怎么弄的
[ 本帖最后由 zhouxman 于 2009-5-3 21:37 编辑 ] 对照帮助看upgeom和upcoord的用法,它会自动将有限元模型更新到变形后的位置,这样你LIST出来的节点坐标就是变形后的坐标,而不是初始建模时的坐标。应该是最简单明了的方法了。 哦 呵呵 谢谢 我试一试 我用了一下,是可以的,我说的那个方法是在网上看到的,不知道有什么问题,大家有可以解释一下么? vwrite,minnum,NX(minnum),NY(minnum),NZ(minnum),ux(minnum),uy(minnum),uz(minnum)
仅给出了节点坐标和变形量,变形后的节点坐标还需要自己处理。 就照着venture的做法弄吧 恩 venture 是牛人,我那个
vwrite,minnum,NX(minnum),NY(minnum),NZ(minnum),ux(minnum),uy(minnum),uz(minnum)
以及命令流还得加深学习,不是很懂这个,谢谢
页:
[1]
2