


{"id":284828,"date":"2023-05-19T08:19:17","date_gmt":"2023-05-19T08:19:17","guid":{"rendered":"\/forum\/forums\/topic\/save-thermal-results-in-txt-file-via-post1-snippet\/"},"modified":"2023-05-26T09:50:00","modified_gmt":"2023-05-26T09:50:00","slug":"save-thermal-results-in-txt-file-via-post1-snippet","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/save-thermal-results-in-txt-file-via-post1-snippet\/","title":{"rendered":"Save thermal results in txt file via \/post1 snippet"},"content":{"rendered":"<p>Hello together,<\/p>\n<p>&nbsp;<\/p>\n<p class=\"MsoNormal\"><span lang=\"EN-GB\">I wrote a small snippet to save temperature results to a text (txt) file:<\/span><\/p>\n<p class=\"MsoNormal\"><span lang=\"EN-GB\">&nbsp;<\/span><\/p>\n<p>LoadStep=1<br \/>!<br \/>\/post1<br \/>set,LoadStep&nbsp;<br \/>*get,numnode,node,,count &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; !Retrieves a value and stores it as a scalar parameter or part of an array parameter.<br \/>*dim,NodeTemp,array,numnode &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;!Defines an array parameter and its dimensions.<br \/>*vget,NodeTemp(1),node,,TEMP &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; !Retrieves values and stores them into an array parameter.<br \/>*cfopen,&#8217;myTempfile&#8217;,&#8217;txt&#8217;<br \/>*vlen,1<br \/>*vwrite,&#8217;Nodal&#8217;,&#8217;Temperature&#8217;<br \/>(A8,X,A8)<br \/>*vwrite,sequ,NodeTemp(1)<br \/>(F8.0,X,E13.6,X,E13.6)<br \/>*cfclos<\/p>\n<p>&nbsp;<\/p>\n<p><span lang=\"EN-GB\">For the temperature of every node sorted for nodal number, it&rsquo;s working quite well.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>Nodal &nbsp; &nbsp;Temperat<br \/>&nbsp; &nbsp; &nbsp; 1. &nbsp;0.344929E+02<br \/>&nbsp; &nbsp; &nbsp; 2. &nbsp;0.419993E+02<br \/>&nbsp; &nbsp; &nbsp; 3. &nbsp;0.407717E+02<br \/>&nbsp; &nbsp; &nbsp; 4. &nbsp;0.414503E+02<br \/>&nbsp; &nbsp; &nbsp; 5. &nbsp;0.416919E+02<br \/>&nbsp; &nbsp; &nbsp; 6. &nbsp;0.420074E+02<\/p>\n<p>&#8230;.<\/p>\n<p>&#8230;.<\/p>\n<p>&nbsp;283051. &nbsp;0.400000E+02<br \/>&nbsp;283052. &nbsp;0.400000E+02<br \/>&nbsp;283053. &nbsp;0.400000E+02<br \/>&nbsp;283054. &nbsp;0.400000E+02<\/p>\n<p>&nbsp;<\/p>\n<p class=\"MsoNormal\"><span lang=\"EN-GB\">My question is how can I save not the nodal number but the coordinates (x,y,z position of the node and the node temperature? Can I save the Temperature results of one specific node over the time (known ID or x,y,z position)?<br \/><\/span><\/p>\n<p class=\"MsoNormal\">&nbsp;<\/p>\n<p class=\"MsoNormal\"><span lang=\"EN-GB\"> What changes are necessary?<\/span><\/p>\n<p class=\"MsoNormal\"><span lang=\"EN-GB\">&nbsp;<\/span><\/p>\n<p class=\"MsoNormal\"><span lang=\"EN-GB\">With best regards<\/span><\/p>\n<p class=\"MsoNormal\"><span lang=\"EN-GB\">John M.<\/span><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"template":"","class_list":["post-284828","topic","type-topic","status-closed","hentry","topic-tag-post1-1","topic-tag-3DTransientThermal-1","topic-tag-ansys-thermal-1","topic-tag-result-postprocessing"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["191113","23687"],"_bbp_author_ip":["23.39.172.22"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_bbp_likes_count":["1"],"_btv_view_count":["788"],"_edit_lock":["1684484556:76812"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["284828"],"_bbp_forum_id":["27791"],"_bbp_engagement":["23687","191113"],"_bbp_voice_count":["2"],"_bbp_reply_count":["7"],"_bbp_last_reply_id":["285914"],"_bbp_last_active_id":["285914"],"_bbp_last_active_time":["2023-05-26 09:36:11"]},"test":"steffen-briermb-tu-chemnitz-de"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/284828","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\/284828\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=284828"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}