ANSYS 節(jié)點(diǎn)/單元信息輸出至文件
2017-01-16 by:CAE仿真在線 來(lái)源:互聯(lián)網(wǎng)
兩種方法,區(qū)別:方法一輸出文件格式中含有ANSYS的些文字信息,不能直接調(diào)入MATLAB。方法二輸出文件格式基本可按自己需要定。純數(shù)字。
(一)簡(jiǎn)單命令
/output,nlist,txt,
nlist
/output,elist,txt,
elist
/output,dlist,txt
dlist
(二)復(fù)雜命令
*get,nodenum,node,,num,max ! 獲得節(jié)點(diǎn)的數(shù)目
*dim,nodepos,array,nodenum,3 ! nodepos存放節(jié)點(diǎn)的坐標(biāo)
*do,i,1,nodenum,1
*get,nodepos(i,1),node,i,loc,x !獲得節(jié)點(diǎn)的X坐標(biāo)
*get,nodepos(i,2),node,i,loc,y
*get,nodepos(i,3),node,i,loc,z
*enddo
*get,elemnum,elem,,num,max !得到單元的總數(shù)目
*dim,elemlist,array,elemnum,6 !單元包含的節(jié)點(diǎn)列表,指定每個(gè)單元包含6個(gè)節(jié)點(diǎn),根據(jù)情況修改
*do,i,1,elemnum,1
*do,ii,1,6,1
*get,elemlist(i,ii),elem,i,node,ii !獲得節(jié)點(diǎn)編號(hào)
*enddo
*enddo
*cfopen,geomfile,txt !打開(kāi)文件,寫(xiě)入數(shù)據(jù)
*vwrite,0
(F8.0,' Coordinates of each node')
*vwrite,sequ,nodepos(1,1),nodepos(1,2),nodepos(1,3)
(F8.0,3e16.8)
*vwrite,0
(F8.0,' Nodes No. of each element')
*vwrite,sequ,elemlist(1,1),elemlist(1,2),elemlist(1,3),elemlist(1,4),elemlist(1,5),elemlist(1,6)
(F8.0,6f8.0)
*vwrite,0
(F8.0)
*cfclos
===========================
方法一輸出文件格式樣式如下:
====================================================================
LIST ALL SELECTED
NODES.
DSYS=
0
1
***** ANSYS - ENGINEERING ANALYSIS
SYSTEM RELEASE 11.0SP1
*****
ANSYS
Multiphysics
00235603
VERSION=INTEL
NT
12:35:26 NOV 17, 2010
CP=
0.437
NODE
X
Y
Z
THXY
THYZ
THZX
1
0.0000
0.0000
0.0000
0.00
0.00
0.00
2
0.50000
0.0000
0.0000
0.00
0.00
0.00
3
1.0000
0.0000
0.0000
0.00
0.00
0.00
4
0.50000
0.50000
0.0000
0.00
0.00
0.00
5
0.0000
0.0000
0.50000
0.00
0.00
0.00
6
0.50000
0.50000
0.50000
0.00
0.00
0.00
7
0.50000
0.0000
0.50000
0.00
0.00
0.00
8
1.0000
0.0000
0.50000
0.00
0.00
0.00
9
1.5000
0.0000
0.50000
0.00
0.00
0.00
10
1.5000
0.0000
0.0000
0.00
0.00
0.00
11
2.0000
0.0000
0.0000
0.00
0.00
0.00
12
2.0000
0.0000
0.50000
0.00
0.00
0.00
13
2.5000
0.0000
0.0000
0.00
0.00 0.00
=========================================================================================
LIST CONSTRAINTS FOR SELECTED
NODES
1
TO
24
BY
1
CURRENTLY SELECTED DOF SET=
UX
UY
UZ ROTX ROTY ROTZ
1
***** ANSYS - ENGINEERING ANALYSIS
SYSTEM RELEASE 11.0SP1
*****
ANSYS
Multiphysics
00235603
VERSION=INTEL
NT
12:35:26 NOV 17, 2010
CP=
0.468
NODE
LABEL
REAL
IMAG
1
UX
0.00000000
0.00000000
1
UY
0.00000000
0.00000000
1
UZ
0.00000000
0.00000000
5
UX
0.00000000
0.00000000
5
UY
0.00000000
0.00000000
5
UZ
0.00000000
0.00000000
23
UY
0.00000000
0.00000000
23
UZ
0.00000000
0.00000000
24
UY
0.00000000
0.00000000
24
UZ
0.00000000
0.00000000
***** END OF INPUT ENCOUNTERED *****
NUMBER OF WARNING MESSAGES
ENCOUNTERED=
0
NUMBER OF
ERROR MESSAGES
ENCOUNTERED=
0
==============================================================================
方法二輸出文件樣式如下:
==============================================================================
0. Coordinates of each node
1. 0.00000000E+00
0.00000000E+00 0.00000000E+00
2. 0.50000000E+00
0.00000000E+00 0.00000000E+00
3. 0.10000000E+01
0.00000000E+00 0.00000000E+00
4. 0.50000000E+00
0.50000000E+00 0.00000000E+00
5. 0.00000000E+00
0.00000000E+00 0.50000000E+00
6. 0.50000000E+00
0.50000000E+00 0.50000000E+00
7. 0.50000000E+00
0.00000000E+00 0.50000000E+00
8. 0.10000000E+01
0.00000000E+00 0.50000000E+00
9. 0.15000000E+01
0.00000000E+00 0.50000000E+00
10. 0.15000000E+01
0.00000000E+00 0.00000000E+00
11. 0.20000000E+01
0.00000000E+00 0.00000000E+00
相關(guān)標(biāo)簽搜索:ANSYS 節(jié)點(diǎn)/單元信息輸出至文件 abaqus分析培訓(xùn) abaqus技術(shù)教程 abaqus巖土分析 鋼筋混凝土仿真 abaqus分析理論 abaqus軟件下載 abaqus umat用戶子程序編程 Abaqus代做 Abaqus基礎(chǔ)知識(shí) Fluent、CFX流體分析 HFSS電磁分析 Ansys培訓(xùn)