


{"id":247028,"date":"2023-01-19T14:49:12","date_gmt":"2023-01-19T14:49:12","guid":{"rendered":"\/forum\/?post_type=topic&#038;p=247028"},"modified":"2023-01-19T14:49:12","modified_gmt":"2023-01-19T14:49:12","slug":"delete-cells-with-stress-above-a-certain-value-ekill-apdl","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/delete-cells-with-stress-above-a-certain-value-ekill-apdl\/","title":{"rendered":"Delete cells with stress above a certain value \u2013 EKILL \u2013 APDL"},"content":{"rendered":"<p>I want to use an EKILL command in <em>Static Structural<\/em> as I don&#8217;t know how to import CFD results into <em>Explicit Dynamic<\/em> (<em>seems impossible to drag <strong>Fluent-solution<\/strong> to <strong>Explicit Dynamic-Setup<\/strong><\/em>).<\/p>\n<p>Therefore I am using the following code found in: &#8220;<em>https:\/\/simutechgroup.com\/performing-ekill-element-death-in-mechanical<\/em>&#8220;<\/p>\n<p style=\"padding-left: 40px\"><span style=\"font-size: 8pt\"><em>! kill elements (EKILL Element Death) for which nodes have values above a designated value&hellip;<\/em><\/span><br \/><span style=\"font-size: 8pt\"><em>!<\/em><\/span><br \/><span>\/com, #############################################<\/span><br \/><span>\/com, #<\/span><br \/><span>*get,myncmls,active,,solu,ncmls <span style=\"font-size: 8pt\"><em>! cumulative number of load steps<\/em><\/span><\/span><br \/><span>*if,myncmls,gt,0,then <span style=\"font-size: 8pt\"><em>! if this is after the first<\/em><\/span><\/span><br \/><span>cmsel,s,elem_to_kill_body <span style=\"font-size: 8pt\">! ELEMENT component to be checked<\/span><\/span><br \/><span>nsle <span style=\"font-size: 8pt\"><em>! nodes on these elements<\/em><\/span><\/span><br \/><span>SELTOL,1.0e-12 <span style=\"font-size: 8pt\"><em>! stay within range below<\/em><\/span><\/span><br \/><span style=\"font-size: 8pt\"><em>! #########<\/em><\/span><br \/><span>nsel,r,s,eqv,230,2000000 <span style=\"font-size: 8pt\"><em>! re-select nodes with results above a value &lt;&lt;&lt;<\/em><\/span><\/span><br \/><span style=\"font-size: 8pt\"><em>! #########<\/em><\/span><br \/><span>SELTOL <span style=\"font-size: 8pt\"><em>! selection tolerance back to default<\/em><\/span><\/span><br \/><span>*get,numnode,node,,count <span style=\"font-size: 8pt\"><em>! how many nodes with result above?<\/em><\/span><\/span><br \/><span>*if,numnode,gt,0,then<\/span><br \/><span>esln <span style=\"font-size: 8pt\"><em>! elements with any node selected<\/em><\/span><\/span><br \/><span>*get,numelem,elem,,count<\/span><br \/><span>*if,numelem,gt,0,then<\/span><br \/><span>ekill,all<\/span><br \/><span>*endif<\/span><br \/><span>*endif<\/span><br \/><span>allsel<\/span><br \/><span>*else<\/span><br \/><span style=\"font-size: 8pt\"><em>! if first load step, have result written to in-memory database<\/em><\/span><br \/><span>fini<\/span><br \/><span>\/config,noeldb,0 <span style=\"font-size: 8pt\"><em>! write results into the database<\/em><\/span><\/span><br \/><span>\/solu <span style=\"font-size: 8pt\"><em>! continue with solution<\/em><\/span><\/span><br \/><span>*endif<\/span><br \/><span>\/com, #<\/span><br \/><span>\/com, #############################################<\/span><br \/><span><em><span style=\"font-size: 8pt\">!<\/span><\/em><\/span><\/p>\n<p>I have never used APDL but I assume that the following lines have to be ammended:<\/p>\n<p style=\"padding-left: 40px\"><span>cmsel,s,elem_to_kill_body <span style=\"font-size: 8pt\">! ELEMENT component to be checked<\/span><\/span><\/p>\n<p style=\"padding-left: 40px\">In here &#8220;<span><em>elem_to_kill_body<\/em><\/span>&#8221; I have to substitute with my <em>Named selection<\/em> to be checked<\/p>\n<p style=\"padding-left: 40px\"><span>nsel,r,s,eqv,230,2000000 <span style=\"font-size: 8pt\"><em>! re-select nodes with results above a value &lt;&lt;&lt;<\/em><\/span><\/span><\/p>\n<p style=\"padding-left: 40px\">In here I have to change &#8220;<span>r,s,eqv,230,2000000<\/span>&#8221; in order to check stresses above a definned value<\/p>\n<p style=\"padding-left: 40px\">I want to delete cells with stresses greater than a value, how should I change the previous command?<\/p>\n<p>Thank you,<\/p>\n","protected":false},"template":"","class_list":["post-247028","topic","type-topic","status-closed","hentry","topic-tag-ansys-apdl","topic-tag-ansys-mechanical-apdl","topic-tag-apdl-command","topic-tag-ekill","topic-tag-ekill-elements"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_author_ip":["23.77.218.220"],"_bbp_subscription":["2267","58821"],"_btv_view_count":["912"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["247028"],"_bbp_forum_id":["27791"],"_bbp_engagement":["2267","58821"],"_bbp_voice_count":["2"],"_bbp_reply_count":["3"],"_bbp_last_reply_id":["247123"],"_bbp_last_active_id":["247123"],"_bbp_last_active_time":["2023-01-20 14:01:28"]},"test":"pv00170surrey-ac-uk"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/247028","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\/247028\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=247028"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}