ANSYS 节点/单元信息输出至文件
2017-01-16 by:CAE仿真在线 来源:互联网
两种方法,区别:方法一输出文件格式中含有ANSYS的些文字信息,不能直接调入MATLAB。方法二输出文件格式基本可按自己需要定。纯数字。
(一)简单命令
/output,nlist,txt,
nlist
/output,elist,txt,
elist
/output,dlist,txt
dlist
(二)复杂命令
*get,nodenum,node,,num,max ! 获得节点的数目
*dim,nodepos,array,nodenum,3 ! nodepos存放节点的坐标
*do,i,1,nodenum,1
*get,nodepos(i,1),node,i,loc,x !获得节点的X坐标
*get,nodepos(i,2),node,i,loc,y
*get,nodepos(i,3),node,i,loc,z
*enddo
*get,elemnum,elem,,num,max !得到单元的总数目
*dim,elemlist,array,elemnum,6 !单元包含的节点列表,指定每个单元包含6个节点,根据情况修改
*do,i,1,elemnum,1
*do,ii,1,6,1
*get,elemlist(i,ii),elem,i,node,ii !获得节点编号
*enddo
*enddo
*cfopen,geomfile,txt !打开文件,写入数据
*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
相关标签搜索:ANSYS 节点/单元信息输出至文件 abaqus分析培训 abaqus技术教程 abaqus岩土分析 钢筋混凝土仿真 abaqus分析理论 abaqus软件下载 abaqus umat用户子程序编程 Abaqus代做 Abaqus基础知识 Fluent、CFX流体分析 HFSS电磁分析 Ansys培训