Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng 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
Joined
Jun 19, 2017
Messages
1
Location
GB
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
 
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

Back
Top