


{"id":230894,"date":"2022-08-10T17:04:50","date_gmt":"2022-08-10T17:04:50","guid":{"rendered":"\/forum\/forums\/topic\/how-to-define-conditional-statements-to-select-specific-elements\/"},"modified":"2022-08-11T06:01:09","modified_gmt":"2022-08-11T06:01:09","slug":"how-to-define-conditional-statements-to-select-specific-elements","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-define-conditional-statements-to-select-specific-elements\/","title":{"rendered":"How to define conditional statements to select specific elements"},"content":{"rendered":"<p>Hi Everyone,<\/p>\n<p>I&#8217;m working with ANSYS MAPDL. I want to kill all elements that have higher strain levels compared to a predefined value at the end of a time step and then modify their properties for the next time step. Can we define such a condition using the ESEL command to get the elements IDs that have high strain levels and then apply EKILL to kill these elements?<\/p>\n<p>To do some simplifications I tried to replace the mentioned condition with a simple condition on the time variable as presented below. However,&nbsp; when the time is greater than 50 sec, nothing happens. It seems the EKILL command is competely ignored.<\/p>\n<p>*IF,TIME,GE,50,THEN<\/p>\n<p>EKILL,2<\/p>\n<p>*END<\/p>\n<p>Would you please let me know why this is not working?<\/p>\n<p>Thank you in advance.<\/p>\n","protected":false},"template":"","class_list":["post-230894","topic","type-topic","status-closed","hentry","topic-tag-ansys-apdl"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["1157","23687","240"],"_bbp_author_ip":["23.218.93.53"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["1778"],"_edit_lock":["1660197339:187869"],"_bbpmt_movedon":["2022-08-26 07:24:20"],"_bbpmt_movedfrom":["27820"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["230894"],"_bbp_forum_id":["27791"],"_bbp_engagement":["240","1157","23687"],"_bbp_voice_count":["3"],"_bbp_reply_count":["5"],"_bbp_last_reply_id":["233349"],"_bbp_last_active_id":["233349"],"_bbp_last_active_time":["2022-08-19 20:44:20"]},"test":"mer153pitt-edu"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/230894","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\/230894\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=230894"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}