


{"id":163317,"date":"2021-10-23T08:57:34","date_gmt":"2021-10-23T08:57:34","guid":{"rendered":"\/forum\/forums\/topic\/dpm-drag-force-store-in-udmi\/"},"modified":"2021-10-25T11:21:44","modified_gmt":"2021-10-25T11:21:44","slug":"dpm-drag-force-store-in-udmi","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/dpm-drag-force-store-in-udmi\/","title":{"rendered":"DPM drag force store in UDMI"},"content":{"rendered":"<div class=\"Item-Body\">\n<div class=\"Message userContent\">\n<p>Dear All, <\/p>\n<p>I&#039;m working on air-water two fluid system using DPM method. The darg force is implinted via UDF. I want to store the DPM drag force magnitude in a UDMI. What modification it required to store &#039;drag_force&#039; in an UDMI? <\/p>\n<p>Drag UDF as follow:<\/p>\n<p># include &quot;udf.h&quot;<\/p>\n<p># include &quot;dpm.h&quot;<\/p>\n<p>DEFINE_DPM_DRAG(particle_drag_force,Re,p)<\/p>\n<p>{<\/p>\n<p> Thread *t= P_CELL_THREAD(p); \/*not sure about this line*\/<\/p>\n<p> cell_t c= P_CELL(p); \/*not sure about this line*\/<\/p>\n<p> real dia, etov;<\/p>\n<p> real adrag, bdrag, cdrag, drag_force;<\/p>\n<p> dia=0.005;&nbsp;&nbsp;\/* bubble diameter *\/<\/p>\n<p>\/* to compute Eotvos Number *\/<\/p>\n<p>etov=9.81*994.38*(dia*dia)\/0.072;<\/p>\n<p>\/* to compute the drag coefficient&nbsp;*\/<\/p>\n<p>adrag=24.0*(1+0.15*pow(Re,0.687))\/Re;<\/p>\n<p>bdrag=8.0*etov\/(3.0*etov+12.0);<\/p>\n<p>if(adrag&gt;bdrag)<\/p>\n<p>{cdrag=adrag;}<\/p>\n<p>else&nbsp;<\/p>\n<p>{cdrag=bdrag;}<\/p>\n<p>drag_force=(18.0*cdrag*Re)\/24.0; \/*this term I want to store in a UDMI*\/<\/p>\n<p>C_UDMI(c,t,0)=cdrag;<\/p>\n<p>C_UDMI(c,t,1)=drag_force;<\/p>\n<p>return (drag_force);<\/p>\n<p>}<\/p>\n<p>UDMI requires to access cell and thread, how do I define in DPM simulation?<\/p>\n","protected":false},"template":"","class_list":["post-163317","topic","type-topic","status-closed","hentry","topic-tag-dpm-udfs","topic-tag-udf-fluent"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_author_ip":[""],"_bbp_old_reply_author_name_id":["Anonymous"],"_bbp_old_is_reply_anonymous_id":["false"],"_btv_view_count":["293"],"_bbp_likes_count":["0"],"_bbp_subscription":["235945"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["163317"],"_bbp_forum_id":["27792"],"_bbp_engagement":["199","22555","156328"],"_bbp_voice_count":["3"],"_bbp_reply_count":["2"],"_bbp_last_reply_id":["195539"],"_bbp_last_active_id":["195539"],"_bbp_last_active_time":["2021-10-25 11:21:44"]},"test":"sayantan-biswas"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/163317","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\/163317\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=163317"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}