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.

APDL command PRNSOL

    • maja.wolkenstein
      Subscriber

      I am using following APDL command to print stresses in a text file:

      /OUTPUT,Shaft,txt,,APPEND  ! switch output to file 'Shaft.txt'
      PRNSOL,S,COMP            ! print all stress components
      /OUTPUT

      With the above command the x,y,z,xy,xz,yz the component stresses are ploted in the text file.

      With the following comand the principal stresses are printed in the txt file.

      PRNSOL,S,PRIN            ! print all stress components

      However I would like to print both component and principal stresses to a file. The result should look like this (see picture below). 

      How can I combine PRNSOL,S,PRIN and PRNSOL,S,COMP that all stresses are written to the file (using both commands sequentially is not the desired solution)

      Thanks

      Wolke

    • dlooman
      Ansys Employee

      It will be an APDL exercize, but you can create arrays for the component and principal stresses with *vget and then use *vwrite to create the table.  

Viewing 1 reply thread
  • You must be logged in to reply to this topic.
[bingo_chatbox]