We’re putting the final touches on our new badges platform. Badge issuance remains temporarily paused, but all completions are being recorded and will be fulfilled once the platform is live. Thank you for your patience.
General Mechanical

General Mechanical

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

OUTPR Command Output

TAGGED: 

    • 2020221038
      Subscriber

      Could you please advise on how to automatically output the result as a file with the .out extension after setting OUTPR, ESOL, LAST in the solution phase?

    • Shashidhar Reddy
      Ansys Employee

      Hi,

      To automatically output the result as a file with the .out extension after setting OUTPR, ESOL, LAST in the solution phase, you can use the /OUTPUT command before issuing the SOLVE command. This will redirect the output to a file instead of the screen. 

      Please find more information through below link.

      5.5. Obtaining the Solution

      /OUTPUT

      Thank you

       

      Regards

      Shashidhar, PhD

    • jennikim266
      Subscriber

      This is an excellent article. This is, in my opinion, one of the best posts ever written. Your work is excellent and inspiring curve rush free game. Thank you very much.

      • Shashidhar Reddy
        Ansys Employee

        Thank you.

    • 2020221038
      Subscriber

      Thank you very much for your reply, I have tested what you said and it still doesn’t work. I have tested the /output position as well and it still doesn’t work.

       

      such as:
      FINISH$/CLEAR
      !/filname,00 SHELL, 1
      /PREP7!!

      ….

      /solu
      /output
      allsel, all
      antype,0
      !nlgeom, on
      ERESX,no
      autots,on
      nsubst,10,500,10
      neqit,100
      !stat, inrtia
      cnvtol,u,,0.05
      cnvtol,f,-1
      cnvtol,M,-1
      outres,esol,last
      OUTPR,ESOL,LAST
      !/output
      solve

      or

      /solu
      !/output
      allsel, all
      antype,0
      !nlgeom, on
      ERESX,no
      autots,on
      nsubst,10,500,10
      neqit,100
      !stat, inrtia
      cnvtol,u,,0.05
      cnvtol,f,-1
      cnvtol,M,-1
      outres,esol,last
      OUTPR,ESOL,LAST
      /output
      solve

      When the output command is placed at the very beginning of all commands, the out file can be output. However, in the solution phase, performing /output before solving doesn’t result in an out file, only in the preprocessor phase?

      /CLEAR
      /OUTPUT,TEST,OUT
      /PREP7!!
      …..
      /solu
      allsel, all
      OUTPR,ESOL,LAST

      antype,0
      !nlgeom, on
      outres,esol,last
      ERESX,no
      autots,on
      nsubst,10,500,10
      neqit,100
      !stat, inrtia
      cnvtol,u,,0.05
      cnvtol,f,-1
      cnvtol,M,-1
      solve

    • Shashidhar Reddy
      Ansys Employee

      Hello, 

      Here is the sample script. It will print all the solution characteristics along with the solution items that are to be printed to a file named "Solutionprint" in solver directory.

      /PREP7
      /TITLE, Example, BENDING OF A SOLID BEAM (PLANE ELEMENTS)
      ANTYPE,STATIC
      ET,1,PLANE42,,,,,,2     ! PLANE42 WITH SURFACE PRINTOUT FOR FACES 1 AND 3
      MP,EX,1,30E6
      MP,NUXY,1,0.0
      N,1  
      N,6,10  
      FILL
      NGEN,2,10,1,6,1,,2
      E,1,2,12,11  
      EGEN,5,1,1
       
      D,1,ALL,,,11,10
      F,6,FX,1000
      F,16,FX,-1000
       
      /SOLU 
       
      OUTPR,NSOL,1
      OUTPR,ESOL,1
      /OUT,Solutionprint
       
      SOLVE
      /POST1
      SET,LAST
      *GET,U1,NODE,16,U,Y
      /GRAPHICS,POWER
      /ESHAPE,1
      /VIEW,1,1,1,1
      PLNSOL,S,X !BENDING STRESS
       
       
       
      • 2020221038
        Subscriber

        Hello! I noticed that the out file results do not include the principal stress results, only the results below, but there is no relevant explanation in the esol documentation.
        “S”     Stresses (11,22,33,12,23,13)
        “EPTO”  Strains  (11,22,33,12)
        “EPEL”  StrainsEL(11,22,33,12)

        My structure is cylindrical, and I want to extract the radial strain and principal stress at the integration point.

    • 2020221038
      Subscriber

      According to your command, a file named “Solutionprint” was generated in the solver directory. However, the file does not contain the solution results.

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