Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extracting ANSYS results as CSV file using Python

Status
Not open for further replies.

jmcgreevy

Mechanical
Jun 19, 2017
1
Hi all,
I am having great difficulty writing part of a Python code that will automatically extract and record my ANSYS results in a CSV text format, without manually opening each and every analysis and copying them individually.
Any help would be greatly appreciated; there is a similar thread by andy5powell which has proved useful, however my problem lies in the extraction of results from ANSYS to excel, rather than getting ANSYS to read varying input parameters from excel.

Hope I make myself clear,
Thanks
 
Replies continue below

Recommended for you

I'm guessing you are trying to script from within Workbench desktop, pulling results from multiple Mechanical Analysis contained within it. In the Workbench Scripting Guide, there is an example under the title Mechanical APDL and Sending Commands to Integrated Applications which utilizes [tt]SendCommand[/tt] that may be useful.

Alternately, depending on what you're after, you could write an APDL script that sequentially look into each [tt]dp0\SYS\MECH[/tt] folder, reads in the RST file, then extract the data into a CSV file.


Best regards,
Jason
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor