


{"id":250200,"date":"2023-02-16T13:10:46","date_gmt":"2023-02-16T13:10:46","guid":{"rendered":"\/forum\/forums\/topic\/assign-temperature-to-a-named-selection-surface-using-commands-in-ansys\/"},"modified":"2023-02-16T13:10:46","modified_gmt":"2023-02-16T13:10:46","slug":"assign-temperature-to-a-named-selection-surface-using-commands-in-ansys","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/assign-temperature-to-a-named-selection-surface-using-commands-in-ansys\/","title":{"rendered":"assign temperature to a named selection surface using commands in ansys"},"content":{"rendered":"<p>Hi, I am fairly new to ANSYS, and was trying to impose a particular temperature on a named selection (surface) through the &#8220;COMMANDS&#8221; option. However, I am seeing that all the nodes are getting selected instead of the particular named selection. Here&#8217;s my code snippet:<\/p>\n<p>temp_top = 100 ! C<\/p>\n<p>ALLSEL, ALL<br \/>CMSEL,S,y_top_surface<\/p>\n<p>NSLE,S,ALL<br \/>NumNodes=0<br \/>COUNT=0<br \/>*GET,NumNodes,NODE,0,COUNT<br \/>CurNode=0<br \/>*DO,i,1,NumNodes<br \/>&nbsp; &nbsp; *GET,CurNode,NODE,CurNode,NXTH<br \/>&nbsp; &nbsp; BF,CurNode,TEMP,temp_top<br \/>*ENDDO<\/p>\n<p>ALLSEL, ALL<\/p>\n<p>Any help in figuring what I am doing wrong in the snippet would be really helpful!<\/p>\n","protected":false},"template":"","class_list":["post-250200","topic","type-topic","status-closed","hentry"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["98364","14"],"_bbp_author_ip":["96.7.74.173"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["3198"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["250200"],"_bbp_forum_id":["27791"],"_bbp_engagement":["14","98364"],"_bbp_voice_count":["2"],"_bbp_reply_count":["11"],"_bbp_last_reply_id":["250288"],"_bbp_last_active_id":["250288"],"_bbp_last_active_time":["2023-02-16 21:46:28"]},"test":"chakraboacorning-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/250200","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\/250200\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=250200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}