


{"id":32809,"date":"2019-01-23T08:59:50","date_gmt":"2019-01-23T08:59:50","guid":{"rendered":"\/forum\/forums\/topic\/how-to-write-command-in-workbench-to-save-results-to-text-file\/"},"modified":"2019-01-23T08:59:50","modified_gmt":"2019-01-23T08:59:50","slug":"how-to-write-command-in-workbench-to-save-results-to-text-file","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-write-command-in-workbench-to-save-results-to-text-file\/","title":{"rendered":"How to write command in workbench to save results to text file"},"content":{"rendered":"<p>Hi everyone,<\/p>\n<p><\/p>\n<p>I&#8217;m trying to write a command to save a certain result set as txt-file automatically after the analysis. I&#8217;m using workbench, therefore I&#8217;m not really familiar with APDL code.<\/p>\n<p><\/p>\n<p>Currently I&#8217;m running an analysis with several design points, which need certain post-processing. I wrote a python script for this task and would like to keep using it, as the analysis is quite complex. Currently I open each design point and extract each relevant result set by hand, namely right-click -&gt; export -&gt;export text file. As an example I&#8217;d extract the maximum principal stress (at all nodes) and the custom result volume.<\/p>\n<p><\/p>\n<p>This task is tedious and time consuming and ultimately limiting the quality of my analysis.<\/p>\n<p><\/p>\n<p>It would seem like such a simple task to simply add a command to save the result set after the analysis, however I can&#8217;t figure it out. If someone could hint me to the right direction I&#8217;d be much obliged.<\/p>\n<p><\/p>\n<p>&nbsp;<\/p>\n<p><\/p>\n<p>Best regards<\/p>\n<p><\/p>\n<p>Magneticfluxquantum<\/p>\n","protected":false},"template":"","class_list":["post-32809","topic","type-topic","status-closed","hentry"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_old_topic_id":["4981"],"_bbp_old_topic_author_name_id":["Anonymous"],"_bbp_old_is_topic_anonymous_id":["false"],"_bbp_old_closed_status_id":["publish"],"_bbp_author_ip":[null],"_bbp_old_sticky_status_id":["normal"],"_bbp_likes_count":["0","0","0","0","0"],"_btv_view_count":["10519"],"_bbp_subscription":["238153"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["32809"],"_bbp_forum_id":["27791"],"_bbp_engagement":["157553","160434","161134","161589","161677"],"_bbp_voice_count":["5"],"_bbp_reply_count":["11"],"_bbp_last_reply_id":["100250"],"_bbp_last_active_id":["100250"],"_bbp_last_active_time":["2019-12-07 21:54:10"]},"test":"magneticfluxquantum"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/32809","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\/32809\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=32809"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}