-
-
May 24, 2021 at 10:34 am
SofiK
SubscriberHello,
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Â
May 24, 2021 at 11:33 amErKo
Ansys EmployeeThis 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
May 24, 2021 at 12:14 pmSofiK
SubscriberI'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?
May 24, 2021 at 12:18 pmMay 24, 2021 at 12:34 pmSofiK
SubscriberCan 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?
May 24, 2021 at 12:36 pmMay 30, 2021 at 12:42 pmSofiK
SubscriberIt 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!
May 31, 2021 at 6:45 amErKo
Ansys EmployeeVery 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.
Innovation SpaceTrending discussionsTop Contributors-
6570
-
1906
-
1463
-
1311
-
1022
Top Rated Tags© 2026 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-
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.


