tomi122
Civil/Environmental
- Mar 23, 2014
- 3
Hi,
I am doing a nonlinear analysis on z purlins and i have trouble with getting the results in the right form ( in order to export to excel). I am using a shell element and i want to get all the bending moments (mx,my,mz) and stresses along the section in each substep. I wrote a code for it but it doesnt work, I tried it several ways but im stuck.
Several errors came up: Parameter NEV needs subscripts then i hit ok but after that ansys says array size is 80*6 but 0*1 element is missing
This is my code:
*DO,f,1,11
SET,1,f
tav = 50
beosztas = L/tav
*DIM,nev,Array,beosztas,6
nev='igenybevetel_%f%'
*DO,i,0,L,tav
NSEL,S,LOC,Z,i
SPOINT,0,0,(h-t)/2,i
FSUM
*GET,nev(i,1),FSUM,0,ITEM,FX
*GET,nev(i,2),FSUM,0,ITEM,FY
*GET,nev(i,3),FSUM,0,ITEM,FZ
*GET,nev(i,4),FSUM,0,ITEM,MX
*GET,nev(i,5),FSUM,0,ITEM,MY
*GET,nev(i,6),FSUM,0,ITEM,MZ
*ENDDO
*CFOPEN,nev,txt
*VWRITE,nev(i,1),nev(i,2),nev(i,3),nev(i,4),nev(i,5),nev(i,6)
(15.2F,2x,15.2F,2x,15.2F,2x,15.2F,2x,15.2F,2x,15.2F,2x)
*CFCLOS
*ENDDO
Could anybody tell me how can i solve this problem?
I am doing a nonlinear analysis on z purlins and i have trouble with getting the results in the right form ( in order to export to excel). I am using a shell element and i want to get all the bending moments (mx,my,mz) and stresses along the section in each substep. I wrote a code for it but it doesnt work, I tried it several ways but im stuck.
Several errors came up: Parameter NEV needs subscripts then i hit ok but after that ansys says array size is 80*6 but 0*1 element is missing
This is my code:
*DO,f,1,11
SET,1,f
tav = 50
beosztas = L/tav
*DIM,nev,Array,beosztas,6
nev='igenybevetel_%f%'
*DO,i,0,L,tav
NSEL,S,LOC,Z,i
SPOINT,0,0,(h-t)/2,i
FSUM
*GET,nev(i,1),FSUM,0,ITEM,FX
*GET,nev(i,2),FSUM,0,ITEM,FY
*GET,nev(i,3),FSUM,0,ITEM,FZ
*GET,nev(i,4),FSUM,0,ITEM,MX
*GET,nev(i,5),FSUM,0,ITEM,MY
*GET,nev(i,6),FSUM,0,ITEM,MZ
*ENDDO
*CFOPEN,nev,txt
*VWRITE,nev(i,1),nev(i,2),nev(i,3),nev(i,4),nev(i,5),nev(i,6)
(15.2F,2x,15.2F,2x,15.2F,2x,15.2F,2x,15.2F,2x,15.2F,2x)
*CFCLOS
*ENDDO
Could anybody tell me how can i solve this problem?