General Mechanical

General Mechanical

Exporting Participation Factors using APDL commands (Modal Analysis)

    • SofiK
      Subscriber

      Hello,

      I'm trying to extract the participation factors of a structure as part of a modal analysis.

      In the commands code, I create an array called "PF" of size [NumberOfModes x 7], which is used to store the frequency values and 6 participation factors (in each direction x,y,z,rotx,...) for all the modes that are needed.

      When I open the results file I see that for all the modes, all the participation factors are stored only for the ROTZ direction regardless of the desired direction (x,y, etc...). The "PF" array contains [NumberOfModes x 1] frequencies, and [NumberOfModes x 6] which all contain the same Participation factors for ROTZ direction copied 6 times in a row.

      How can I fix the problem?

      If any additional information is needed please let me know.


      The code I've been using is attached here:


      NumberOfModes=500

      /post1

      ALLSEL

      *DIM,PF,,NumberOfModes,7


      *do,iMode,1,NumberOfModes,1

      *get,PF(iMode,1),mode,iMode,FREQ,,,

      *get,PF(iMode,2),mode,iMode,pfact,,DIREC,x

      *get,PF(iMode,3),mode,iMode,pfact,,DIREC,y

      *get,PF(iMode,4),mode,iMode,pfact,,DIREC,z

      *get,PF(iMode,5),mode,iMode,pfact,,DIREC,ROTX

      *get,PF(iMode,6),mode,iMode,pfact,,DIREC,ROTY

      *get,PF(iMode,7),mode,iMode,pfact,,DIREC,ROTZ

      *ENDDO


      /OUTPUT,'C:UsersSofiDesktopWorkAnsys checkLPlateModalOutSelectedModesParticipationFactor','txt',,

      *STATUS,PF 

      /OUTPUT 

    • Erik Kostson
      Ansys Employee
      This will do what you need (change the C: drive to whatever location you need):

      *GET,nbmode,ACTIVE,0,SOLU,NCMSS
      *DIM,PF,ARRAY,nbmode,6
      *do,i,1,nbmode
      SET,1,i
      *GET,PF(i,1),MODE,i,PFACT,,DIREC,X
      *GET,PF(i,2),MODE,i,PFACT,,DIREC,Y
      *GET,PF(i,3),MODE,i,PFACT,,DIREC,Z
      *GET,PF(i,4),MODE,i,PFACT,,DIREC,ROTX
      *GET,PF(i,5),MODE,i,PFACT,,DIREC,ROTY
      *GET,PF(i,6),MODE,i,PFACT,,DIREC,ROTZ
      *enddo
      *CFOPEN,ParticipationFactor,txt,'C:\\'
      *VWRITE,PF(1,1),PF(1,2),PF(1,3),PF(1,4),PF(1,5),PF(1,6)
      (6(' ',F10.5))
      *CFCLOS
    • SofiK
      Subscriber
      I'm sorry but your proposed code gives exactly the same results. The results contain only the results for ROTZ direction.
      Any other methods to try?
    • Erik Kostson
      Ansys Employee

      So this code works - we have tried this and it works fine (used it for project work also and it works always) : see below.



    • SofiK
      Subscriber
      Can you maybe send me the beginning of your code to understand if I need to change something in the settings prior to your suggested part of the code?
    • Erik Kostson
      Ansys Employee
      That is all the code that is inserted into a command object as shown:


    • SofiK
      Subscriber
      It worked once I cleared the generated results and restarted the analysis. I guess the software could not overwrite the results for some reason.
      Thank you for your help!
    • Erik Kostson
      Ansys Employee
      Very good.
      Glad to be of help.

      Erik
Viewing 7 reply threads
  • You must be logged in to reply to this topic.