


{"id":348207,"date":"2024-02-01T10:37:19","date_gmt":"2024-02-01T10:37:19","guid":{"rendered":"\/forum\/forums\/topic\/ddpm-remove-partciles-via-udf\/"},"modified":"2024-02-01T10:37:19","modified_gmt":"2024-02-01T10:37:19","slug":"ddpm-remove-partciles-via-udf","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/ddpm-remove-partciles-via-udf\/","title":{"rendered":"DDPM &#8211; remove partciles via UDF"},"content":{"rendered":"<p>Hi,<\/p>\n<p>i am modelling particles falling through a 3D-geometry with a gas flow from the bottom using DDPM (ANSYS 2021 R2). I want to remove the particles at a certain height using a UDF:<\/p>\n<p>DEFINE_DPM_SCALAR_UPDATE(remove_particles, cell, thread, initialize, tp)<br \/>{<\/p>\n<p>real y_lim_out=1.1; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br \/>if (TP_POS(tp)[1]&lt;y_lim_out) {<br \/>&nbsp; &nbsp; &nbsp; &nbsp; Message(&#8221; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PARTICLE ID %d REMOVED FROM DOMAIN\\n&#8221;, tp-&gt;part_id);<br \/>&nbsp; &nbsp; &nbsp; &nbsp; tp-&gt;stream_index = -1;<br \/>&nbsp; &nbsp; &nbsp; &nbsp; }<br \/>}<\/p>\n<p>This works well when looking at the particle tracks (left): there are no particles below the specified height (red line). However, when looking at the contours of vol. fraction of the solid phase (right), it seems like FLUENT is still showing a vol. fraction &gt;0 below the specified height.<\/p>\n<p><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2024\/02\/01-02-2024-1706783383-mceclip0.png\"><\/p>\n<p>According to the Theory Guide 2021R2 (14.5.23. Dense Discrete Phase Model), the solution for the solid phase, such as volume fraction&nbsp;or velocity field, is taken from the Lagrangian tracking solution. Why is there a solid vol. fraction at the very bottom where all particles have been removed?<\/p>\n<p>Thanks a lot in advance,<\/p>\n<p>Lukas<\/p>\n","protected":false},"template":"","class_list":["post-348207","topic","type-topic","status-closed","hentry","topic-tag-multiphase_models-1","topic-tag-ddpm","topic-tag-fluent","topic-tag-remove-particles-1","topic-tag-udf"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["182151","852"],"_bbp_author_ip":["23.206.193.146"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["756"],"_bbp_topic_status":["unanswered"],"_edit_lock":["1706783962:67226"],"_bbp_topic_id":["348207"],"_bbp_forum_id":["27792"],"_bbp_engagement":["852","182151"],"_bbp_voice_count":["2"],"_bbp_reply_count":["2"],"_bbp_last_reply_id":["349313"],"_bbp_last_active_id":["349313"],"_bbp_last_active_time":["2024-02-06 09:10:13"]},"test":"bergl"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/348207","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\/348207\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=348207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}