


{"id":166519,"date":"2022-02-17T21:14:37","date_gmt":"2022-02-17T21:14:37","guid":{"rendered":"\/forum\/forums\/topic\/x-momentum-source-using-fluent-udfs\/"},"modified":"2022-02-18T15:58:08","modified_gmt":"2022-02-18T15:58:08","slug":"x-momentum-source-using-fluent-udfs","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/x-momentum-source-using-fluent-udfs\/","title":{"rendered":"X-momentum source using Fluent UDFs"},"content":{"rendered":"<div class=\"Item-Body\">\n<div class=\"Message userContent\">\n<p>Dear colleagues,<\/p>\n<p>I am trying to implement an x-momentum source term on a background grid using Fluent UDFs. See my source term below:<\/p>\n<p><\/p>\n<\/p>\n<p>DEFINE_SOURCE(ALM,c,t,dS,eqn)<\/p>\n<p>{<\/p>\n<p>real xc[ND_ND];<\/p>\n<p>real con, source;<\/p>\n<p>C_CENTROID(xc,c,t);<\/p>\n<p>source = C_UDSI(c,t,0);<\/p>\n<p>dS[eqn] = 0;<\/p>\n<p><\/p>\n<\/p>\n<p>return source;<\/p>\n<p>}<\/p>\n<p><\/p>\n<\/p>\n<p>Where C_UDSI(c,t,0) is a user defined scalar that is determined using an adjust macro. The value of C_UDSI(c,t,0) is a Gaussian distribution acting for a given region of cells and its implementation is presumably correct.<\/p>\n<p><\/p>\n<\/p>\n<p>I am encountering issues with the source term implementation. Specifically, there is no change to the flow field when activating the source term. It is as if the source term is being neglected entirely; it introduces no change to the velocity of the flow in the defined region where UDS-0 acts. Any help would be appreciated. Thank you.<\/p>\n","protected":false},"template":"","class_list":["post-166519","topic","type-topic","status-closed","hentry","topic-tag-momentum-source-1","topic-tag-udf-fluent"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_btv_view_count":["1582"],"_bbp_likes_count":["0"],"_bbp_subscription":["234194"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["166519"],"_bbp_forum_id":["27792"],"_bbp_engagement":["199","22555","234194"],"_bbp_voice_count":["3"],"_bbp_reply_count":["2"],"_bbp_last_reply_id":["205972"],"_bbp_last_active_id":["205972"],"_bbp_last_active_time":["2022-02-18 15:58:08"]},"test":"ljs5746psu-edu"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/166519","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\/166519\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=166519"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}