| Message |
|---|
FEA Forums » Ansys Forum
[APDL] Shorten array to array transfer
-
Posted 2 weeks ago #
-
This is my current code
First, i obtain data on my specified path, that data is exported to an array using paget. But i have 120 load steps, so i map that into another array but unlike matlab i can't seem to do it easily, so I *do loop it as shown below.
Surely there is a shorter way to do this? I believe i could get this done in matlab with 3-4 lines of codes.
*dim,test,array,120,120
path,Path1,2,10,120
Ppath,2,,wide/2,high
ppath,1,,wide/2,0*do,jj,1,120,1
set,jj,1,1,real, !!!!Select load step
PDEF, ,S,INT,AVG !!!!Plot average component stress into pathpaget,HJHJ%jj%,table !!!!export path data into array,
!!!!i'm interested in data in collumn 2*do,kk,1,120,1
*set,test(KK,jj),hjhj%jj%(KK,2) !!!!!array to array transfer, one address at a time
*enddo
*del,HJHJ%jj%,,NOPR*enddo
Posted 1 year ago #
|
|
RSS feed for this topic |
Reply
You must log in to post.
