TAGGED: apdl-commands, mechanical-apdl, structural-mechanics
-
-
May 21, 2021 at 8:42 am
OnurOnder
SubscriberHello 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?
May 21, 2021 at 9:42 amkrada
SubscriberHello
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
May 21, 2021 at 10:33 amOnurOnder
SubscriberThank 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?
May 22, 2021 at 9:38 pmhesamkeshavarzz
SubscriberI 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)
May 23, 2021 at 7:50 pmOnurOnder
SubscriberI am grateful for your reply. I wonder if you have any resource suggestions that I can improve myself on this subject? Books, articles etc.
September 15, 2021 at 12:01 pmlalalala
SubscriberHello 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.
Innovation SpaceTrending discussionsTop Contributors-
5879
-
1906
-
1420
-
1306
-
1021
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.
-