We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.
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.