


{"id":246994,"date":"2023-01-19T10:09:03","date_gmt":"2023-01-19T10:09:03","guid":{"rendered":"\/forum\/forums\/topic\/apdl-scripting-node-selection-for-informations\/"},"modified":"2023-01-19T10:09:03","modified_gmt":"2023-01-19T10:09:03","slug":"apdl-scripting-node-selection-for-informations","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/apdl-scripting-node-selection-for-informations\/","title":{"rendered":"APDL scripting, node selection for informations"},"content":{"rendered":"<p>Hello everyone,<\/p>\n<p>i&#8217;m new in the APDL scripting.&nbsp;<br \/>I only need the stress tensor of the node with the maximum equivalent stress, as txt output.&nbsp; <\/p>\n<p>This is the APDL-script:<\/p>\n<p><span>\/POST1&nbsp;<\/span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; !First postprocessing step<\/p>\n<p><span>\/com,<\/span> ########### Postprocessing #########<\/p>\n<p><span>\/com,<\/span> ########### Maximum equivalent stress &#8211; global cartesian &nbsp;#########<br \/><span>\/SHOW,<\/span>PNG&nbsp;&nbsp;&nbsp; !Show plot. Required to show plot in workbench<br \/><span>SET<\/span>,LAST&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; !Specify last time step for post-processing<\/p>\n<p><span>\/output<\/span>,Max_EQV_and_Tensor,txt &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; !Open a text file titled Max_EQV_and_Tensor<\/p>\n<p><span>\/com<\/span>, ########### Postprocessing #########<\/p>\n<p><span>\/com<\/span>, ########### Maximum equivalent stress &#8211; global cartesian &nbsp;#########<\/p>\n<p><span>PLNSOL<\/span>,S,EQV&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; !Plot nodal solution for equivalent stress<br \/><span>*GET<\/span>,NODENUM,COMMON,,CPOST1,,INT,108&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; !Get node number of node with the max value in previous<\/p>\n<p><span>\/com<\/span>, #### stress tensor &#8211; solution cartesian ####<br \/><span>RSYS<\/span>,solu&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; !Activates a coordinate system for printout, Solution coordinate system<\/p>\n<p><span>NSEL<\/span>, S, NODE, ,&nbsp;&nbsp;&nbsp;&nbsp; <span>&lt;&#8212;&#8211; there is the problem. How can i select the node of the maximum equivalent stress or the node of the last *GET command?<\/span><\/p>\n<p><span>prnsol<\/span>, s, comp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; !Prints nodal solution result, components of the Stress tensor<\/p>\n<p><span>\/output<\/span>,term<\/p>\n<p>Now, the post-solver writes every node in the txt-file, but i only want that one node with the above written information.<\/p>\n<p>Thanks for help. I hope you can help me.<\/p>\n<p>&nbsp;<\/p>\n<p>Here is the outputscript:<\/p>\n<p><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/01\/19-01-2023-1674122835-error.JPG\" alt=\"\"><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"template":"","class_list":["post-246994","topic","type-topic","status-closed","hentry"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["272190"],"_bbp_author_ip":["23.77.218.237"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["1434"],"_edit_lock":["1674123381:202294"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["246994"],"_bbp_forum_id":["27791"],"_bbp_engagement":["272190"],"_bbp_voice_count":["1"],"_bbp_reply_count":["1"],"_bbp_last_reply_id":["246998"],"_bbp_last_active_id":["246998"],"_bbp_last_active_time":["2023-01-19 10:21:35"]},"test":"warthmv-uni-kl-de"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/246994","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\/246994\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=246994"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}