Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
General Mechanical

General Mechanical

Topics related to Mechanical Enterprise, Motion, Additive Print and more.

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 

    • ErKo
      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?
    • ErKo
      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?
    • ErKo
      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!
    • ErKo
      Ansys Employee
      Very good.
      Glad to be of help.

      Erik
Viewing 7 reply threads
  • The topic ‘Exporting Participation Factors using APDL commands (Modal Analysis)’ is closed to new replies.
[bingo_chatbox]