FEA Forums » Ansys Forum



Design World

AM8000 Servo Motor with Single-Cable Technology from Beckhoff

WAGO 1.5MHz DIN-rail Optocoupler

Magnetic Rotary Position Sensors for Use in Medical Applications

QC Industries Introduces Online Conveyor Configuration Tool

Reversing Perceptions: How to Make Hearing Aids “Cool”

[APDL] Shorten array to array transfer

  • Started 1 year ago by notydino : : Current there are 1 post :
  1. Author

    Message

    Posted 2 weeks ago #
  2. notydino
    Member

    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 path

    paget,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.