


{"id":371338,"date":"2024-07-10T16:08:13","date_gmt":"2024-07-10T16:08:13","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/momentum-source-udf-in-eulerian-multiphase-flow-fluent\/"},"modified":"2024-07-10T16:08:13","modified_gmt":"2024-07-10T16:08:13","slug":"momentum-source-udf-in-eulerian-multiphase-flow-fluent","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/momentum-source-udf-in-eulerian-multiphase-flow-fluent\/","title":{"rendered":"Momentum source UDF in Eulerian Multiphase Flow (Fluent)"},"content":{"rendered":"<p><strong>For Eulerian Multiphase flow<\/strong>:<\/p>\n<p>As far I know, UDF of the momentum source term has to be hooked for each phase inside the &#8220;<strong>cell zone condition<\/strong>&#8221; (i.e., for phase 1, phase 2, etc.)<\/p>\n<p>For example:<\/p>\n<p>say for phase-1: x-momentum source term UDF is&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><em>DEFINE_SOURCE(xmom_source,cell,thread,dS,eqn)<\/em><\/p>\n<p><em>{<\/em><\/p>\n<p><em>&nbsp; &nbsp; &nbsp; &nbsp;PHASE1_U_Velocity = C_U(cell, thread);<\/em><\/p>\n<p><em>&nbsp; &nbsp; &nbsp; &nbsp;PHASE1_VOF = C_VOF(cell, thread);<\/em><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp;source = PHASE1_VOF*PHASE1_U_Velocity;<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp;return source ;<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>From my understanding, C_U and C_VOF here will give the Phase 1 velocity and volume fraction only. To calculate my source term, I need the PHASE2 velocity and volume fraction as well. how do I get both of them for Phase 2 inside that particular cell.&nbsp;<\/p>\n<p>Thanks in Advance&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"template":"","class_list":["post-371338","topic","type-topic","status-closed","hentry"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["59452","199"],"_bbp_author_ip":["131.226.46.54"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["161"],"_bbp_topic_status":["unanswered"],"_bbp_topic_id":["371338"],"_bbp_forum_id":["27792"],"_bbp_engagement":["199","59452"],"_bbp_voice_count":["2"],"_bbp_reply_count":["3"],"_bbp_last_reply_id":["371402"],"_bbp_last_active_id":["371402"],"_bbp_last_active_time":["2024-07-11 08:17:38"]},"test":"asif-shahriar-naficarbonclean-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/371338","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\/371338\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=371338"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}