


{"id":295087,"date":"2023-07-27T08:49:46","date_gmt":"2023-07-27T08:49:46","guid":{"rendered":"\/forum\/forums\/topic\/python-script-for-exporting-harmonic-response-analysis-results-to-txt-files\/"},"modified":"2023-07-28T05:44:54","modified_gmt":"2023-07-28T05:44:54","slug":"python-script-for-exporting-harmonic-response-analysis-results-to-txt-files","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/python-script-for-exporting-harmonic-response-analysis-results-to-txt-files\/","title":{"rendered":"Python script for exporting Harmonic Response analysis results to .txt files"},"content":{"rendered":"<p>Hi all,<\/p>\n<p>I&#8217;m working on a Harmonic Response analysis.<br \/>My calculations are set up in a way that I have multiple analysis systems, like in the picture below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/07\/27-07-2023-1690446630-mceclip0.png\" width=\"524\" height=\"390\"><\/p>\n<p>&nbsp;<\/p>\n<p>Results I&#8217;m interested in are the frequency responses for the stresses at the specific nodes:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/07\/27-07-2023-1690446808-mceclip1.png\" width=\"354\" height=\"442\"><\/p>\n<p>In total I have 216 results which I would like to export to separate .txt files.<\/p>\n<p>I can do it manually for each result, but it takes a lot of time, so the best option is to write a Python script.<\/p>\n<p>The simple script I made looks like this:<\/p>\n<div><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/07\/27-07-2023-1690447490-mceclip2.png\"><\/div>\n<div>&nbsp;<\/div>\n<div>When I run the script I get the following error message:<\/div>\n<div><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/07\/27-07-2023-1690447509-mceclip3.png\"><\/div>\n<div>&nbsp;<\/div>\n<div>Is there any other way of exporting the frequency and amplitude data for the selected results?<\/div>\n","protected":false},"template":"","class_list":["post-295087","topic","type-topic","status-closed","hentry"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["4206","200"],"_bbp_author_ip":["23.217.200.46"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["1331"],"_bbp_status":["publish"],"_bbp_topic_status":["unanswered"],"_bbp_topic_id":["295087"],"_bbp_forum_id":["27791"],"_bbp_engagement":["200","4206"],"_bbp_voice_count":["2"],"_bbp_reply_count":["3"],"_bbp_last_reply_id":["295293"],"_bbp_last_active_id":["295293"],"_bbp_last_active_time":["2023-07-28 05:44:48"]},"test":"tomasz-walkowiaktechnipfmc-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/295087","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/295087\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=295087"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}