


{"id":319673,"date":"2023-11-28T04:14:16","date_gmt":"2023-11-28T04:14:16","guid":{"rendered":"\/forum\/forums\/topic\/simulation-results-inconsistent\/"},"modified":"2023-11-28T04:14:16","modified_gmt":"2023-11-28T04:14:16","slug":"simulation-results-inconsistent","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/simulation-results-inconsistent\/","title":{"rendered":"Simulation results inconsistent"},"content":{"rendered":"<p class=\"MsoNormal\"><span style=\"font-family: Calibri\">Hello, everybody! <\/span><\/p>\n<p class=\"MsoNormal\"><span style=\"font-family: Calibri\">I am now having trouble simulating a 3-D multiphase flow problem including chemical reaction, whose simulation domain is shown in Fig. 1 below.<\/span><\/p>\n<p class=\"MsoNormal\"><span style=\"font-family: Calibri\"><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/11\/28-11-2023-1701144257-simulationdomain-re.png\" alt=\"\"><\/span><\/p>\n<p class=\"MsoNormal\"><span style=\"font-family: Calibri\">Eulerian multiphase model was selected for the simulation and 3 Eulerian phases (Phase A-secondary granular phase, Phase B-primary liquid phase, Phase C-secondary gas phase) were involved. In material setting, Phase A is a mixture with 3 components and is handled as fluid in calculation. The chemical reaction is described as&nbsp;<\/span><\/p>\n<p class=\"MsoNormal\" align=\"center\"><span style=\"font-family: Calibri\">aA=bB+cC<\/span><\/p>\n<p class=\"MsoNormal\"><span style=\"font-family: Calibri\">Actually, it is a component of Phase A that is involved in the reaction. The chemical reaction starts as the temperature of Phase A (symbolized as Ta) exceeds a certain value (symbolized as Treac).<\/span><\/p>\n<p class=\"MsoNormal\"><span style=\"font-family: Calibri\">As for boundary and initial condition, as shown in Fig. 1, the bottom of the domain is set as mass flow inlet and the top of the domain is set as pressure outlet (gravity acceleration is considered in the problem). Initially, the entire domain is filled with Phase A and Phase B with different temperature (Ta&lt;Treac while Tb&gt;Treac). Meanwhile, Phase B with temperature of Tb comes into the domain through inlet boundary at a certain velocity.<\/span><\/p>\n<p class=\"MsoNormal\"><span style=\"font-family: Calibri\">As is mentioned in my previous post, I am now learning about UDF and I am now trying to simulate the above problem in 2 different approaches. One approach is to adopt the Heterogeneous reaction model in Fluent (version 19.2), and the other approach is to add source terms to the conservation equation via DEFINE_SOURCE macro.<\/span><\/p>\n<p class=\"MsoNormal\"><span style=\"font-family: Calibri\">In defining source terms, I referred to the theory guide of Fluent and defined the following sources (details are omitted)<\/span><\/p>\n<p class=\"MsoNormal\"><span style=\"font-family: Calibri\"><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/11\/28-11-2023-1701144369-expression.PNG\" alt=\"\"><\/span><\/p>\n<p class=\"MsoNormal\"><span style=\"font-family: Calibri\">However, the simulation results obtained via the two approaches differs significantly. The simulated gas phase volumetric fraction contour and gas phase velocity contour is shown below<\/span><\/p>\n<p class=\"MsoNormal\"><span style=\"font-family: Calibri\"><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/11\/28-11-2023-1701144438-gasphaseudf.png\" alt=\"\"><\/span><\/p>\n<p class=\"MsoNormal\"><span style=\"font-family: Calibri\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Gas phase (Phase C) volumetric fraction (UDF)<\/span><\/p>\n<p class=\"MsoNormal\"><span style=\"font-family: Calibri\"><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/11\/28-11-2023-1701144510-gasphasereactionmodel.png\" alt=\"\"><\/span><\/p>\n<p class=\"MsoNormal\" align=\"center\"><span style=\"font-family: Calibri\">Gas phase (Phase C) volume fraction (reaction model)<\/span><\/p>\n<p class=\"MsoNormal\" align=\"center\"><span style=\"font-family: Calibri\"><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/11\/28-11-2023-1701144585-gasvelocityudf.png\" alt=\"\"><\/span><\/p>\n<p class=\"MsoNormal\" align=\"center\"><span style=\"font-family: Calibri\">Gas phase (Phase C) velocity (UDF)<\/span><\/p>\n<p class=\"MsoNormal\" align=\"center\"><span style=\"font-family: Calibri\"><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/11\/28-11-2023-1701144644-gasvelocityreactionmodel.png\" alt=\"\"><\/span><\/p>\n<p class=\"MsoNormal\" align=\"center\"><span style=\"font-family: Calibri\">Gas phase (Phase C) velocity (reaction model)<\/span><\/p>\n<p class=\"MsoNormal\"><span style=\"font-family: Calibri\">The above results are at t = 1 s. The difference in velocity is particularly significant, which I believe causing the difference in other parameters. <\/span><\/p>\n<p class=\"MsoNormal\"><span style=\"font-family: Calibri\">Before starting the calculation, I went through the two simulation cases for several times to ensure the consistency in parameter setting (material propery, model selection, phase interaction, boundary and initial condition, etc.). The two cases are with the same mesh and time step.&nbsp;<\/span><\/p>\n<p class=\"MsoNormal\"><span style=\"font-family: Calibri\">The difference shown above have confused me for quite a long period. I am quite sure that there is no coding miss in my UDF, and I am wondering if my understanding on the numerical method is insufficient. I cannot figure out where the above difference come from. Is there anything incorrect or missing in my UDF settings? Please, help!!!!<\/span><\/p>\n","protected":false},"template":"","class_list":["post-319673","topic","type-topic","status-closed","hentry","topic-tag-udf"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["291264","199"],"_bbp_author_ip":["23.52.43.10"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["275"],"_edit_lock":["1701219838:227284"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["319673"],"_bbp_forum_id":["27792"],"_bbp_engagement":["199","291264"],"_bbp_voice_count":["2"],"_bbp_reply_count":["2"],"_bbp_last_reply_id":["319880"],"_bbp_last_active_id":["319880"],"_bbp_last_active_time":["2023-11-29 01:03:24"]},"test":"1946337055qq-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/319673","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\/319673\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=319673"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}