


{"id":365944,"date":"2024-05-07T21:05:05","date_gmt":"2024-05-07T21:05:05","guid":{"rendered":"\/forum\/forums\/topic\/scalar-mass-conservation-issues\/"},"modified":"2024-05-07T21:05:05","modified_gmt":"2024-05-07T21:05:05","slug":"scalar-mass-conservation-issues","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/scalar-mass-conservation-issues\/","title":{"rendered":"scalar mass conservation issues"},"content":{"rendered":"<p>I am using a UDS equation to model scalar transport inside a chamber. I am using a udf for a custom flux function. The flux consists of F_FLUX to get the standard convective flux plus a constant value representing secondary effects on the scalar.<\/p>\n<p>The chamber has one inlet with a specified velocity of the primary flow and specified scalar concentration of 1, and one outlet. The primary flow is constant propert air which I have converged to a steady state solution in a previous simulation. I am only solving the scalar equation in a transient simulation. I am calculating the mass balance relative to the scalar mass flow rate at the inlet. I have writen an udf report to calculate the mass storage rate of the scalar in the chamber.&nbsp;<\/p>\n<p>When I run the simulation on an orthogonal cartesian mesh the mass conservation of the scalar equaton is very good (imabalance &lt;1e-8 %). When I run the simulation on a polyhedral mesh the mass imbalance is approximately 1.3%. I have tried reducing the timestep size, increasing the iterations per timestep, changing the discritization methods and changing the multigrid to F-cycle as suggested in the user manual. None of the above have improved the mass conservation. I have checked the steady state mass balance of the primary flow on the polyhedral mesh and it is well converged.&nbsp;<\/p>\n<p>I have run the transient simulation without the udf flux, using the default &#8216;mass flow rate&#8217; instead. The scalar mass conservation on the polyhedral mesh in this configuration is approximately 0.03%, much higher than the cartesian mesh but still acceptable.&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Are there any suggestions for improving the mass conservation on the polyhedral mesh?&nbsp;<\/p>\n","protected":false},"template":"","class_list":["post-365944","topic","type-topic","status-closed","hentry","topic-tag-fluent","topic-tag-fluent-uds-udf-1","topic-tag-uds"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["179794","13659"],"_bbp_author_ip":["23.196.2.137"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["339"],"_bbp_topic_status":["unanswered"],"_bbp_topic_id":["365944"],"_bbp_forum_id":["27792"],"_bbp_engagement":["13659","179794"],"_bbp_voice_count":["2"],"_bbp_reply_count":["6"],"_bbp_last_reply_id":["366926"],"_bbp_last_active_id":["366926"],"_bbp_last_active_time":["2024-05-15 11:30:57"]},"test":"geoff"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/365944","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\/365944\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=365944"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}