CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   ANSYS (http://www.cfd-online.com/Forums/ansys/)
-   -   problem in apdl (http://www.cfd-online.com/Forums/ansys/77333-problem-apdl.html)

fsi June 20, 2010 12:07

problem in apdl
 
I have created a block in 3D and I have tried to display the mesh information in separate files.
First, I have got the elements number with their rnodes number.
Second, I have got the nodes number with their locations x y and z.
But, I can't find how to get the face number with their corresponding nodes for a specified boundary.(area)
please any help
here is the apdl program


/PREP7
!*
ET,1,FLUID142
!*
BLOCK,-3,12,-3,3,0,3,
/VIEW,1,1,2,3
/ANG,1
/REP,FAST
MSHAPE,0,3D
MSHKEY,1
!*
CM,_Y,VOLU
VSEL, , , , 1
CM,_Y1,VOLU
CHKMSH,'VOLU'
CMSEL,S,_Y
!*
VMESH,_Y1
!*
CMDELE,_Y
CMDELE,_Y1
CMDELE,_Y2
!*

*CFOPEN,test1,cell
*GET,NE,ELEM,0,COUNT
UNI=1
*DO,I,1,NE
*get,NE1,ELEM,I,node,1
*get,NE2,ELEM,I,node,2
*get,NE3,ELEM,I,node,3
*get,NE4,ELEM,I,node,4
*get,NE5,ELEM,I,node,5
*get,NE6,ELEM,I,node,6
*get,NE7,ELEM,I,node,7
*get,NE8,ELEM,I,node,8
*vwrite,I,NE1,NE2,NE3,NE4,NE5,NE6,NE7,NE8,UNI,UNI
(I8,2x,E10.4,2x,E10.4,2x,E10.4,2x,E10.4,2x,E10.4,2 x,E10.4,2x,E10.4,2x,E10.4,2x,I1,2x,I1)
*ENDDO
*CFCLOS
*CFOPEN,Test2,vrt
*GET,NN,NODE,0,COUNT
*DO,I,1,NN
*get,xnode,node,I,loc,x
*get,ynode,node,I,loc,y
*get,znode,node,I,loc,z
*vwrite,I,xnode,ynode,znode
(I8,2x,E20.9,3x,E20.9,3X,E20.9)
*ENDDO
*CFCLOS
FINISH


All times are GMT -4. The time now is 10:50.