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.

How can I print my Ansys Results in txt format using Command line

    • OnurOnder
      Subscriber

      Hello I'm Onur. I did a static structural analysis and obtained some results. Now I have to create Commands (APDL) to print my results to a txt file. Results must be in a txt file because my friend is preparing a code that use these results. And I will more analysis, I need to accelerate these steps. So Commands is very good to this. But I can't write code on Commands. Could you help me learn this topic?

    • krada
      Subscriber
      Hello
      The command below will help you. Be aware that this command do not work directly in the command line of ANSYS APDL. You have to run a txt file in which this lines are written. You can go to /filemenu /read_input_from option to run the file, If you are working in ANSYS APDL. If you work in the workbench then I do not have idea.
      /output,Folder_name/ File_name,txt ! create a folder in the working directory or you can directly write the file as well
      presol,smisc,1 ! output that you want
      /output
    • OnurOnder
      Subscriber
      Thank you for answer. But I work on ansys workbench. What I'm trying to do is in photo below. I try to write code here and I hope to obtain a txt file at the end of analysis. Do you have any idea about it?
    • hesamkeshavarzz
      Subscriber
      I wrote this command to export my frequency response function.
      1- set the step by the set command
      2- introduce the desired parameter by *dim command
      3- by /out command issue your output file
      4-by *vwrite , write the parameter in the file youve created in step 3
      Its my sample code for you to bring you an insght.

      *dim,frf,table,10,1,1
      *do,ii,1,10
      set,1,ii
      *get,displ,NODE,14,U,X
      frf(ii,1)=displ
      *enddo
      /OUT,C:\Users\SENATOR\Desktop\LXT2,TXT
      *vwrite,frf(1,1,1),txt
      (F)

    • OnurOnder
      Subscriber
      I am grateful for your reply. I wonder if you have any resource suggestions that I can improve myself on this subject? Books, articles etc.
    • lalalala
      Subscriber
      Hello I'm lala and i have the same Onur problem. I did a static structural analysis and obtained some results. Now I have to create Commands (APDL) to print my results to a txt file. Results must be in a txt file because my friend is preparing a code that use these results. And I will more analysis, I need to accelerate these steps. So Commands is very good to this. But I can't write code on Commands. Could you help me learn this topic?

Viewing 5 reply threads
  • The topic ‘How can I print my Ansys Results in txt format using Command line’ is closed to new replies.
[bingo_chatbox]