


{"id":455787,"date":"2026-04-05T08:57:40","date_gmt":"2026-04-05T08:57:40","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/issue-with-continuity-residuals-when-using-time-varying-inlet-flow-udf-in-dynami\/"},"modified":"2026-04-05T08:57:40","modified_gmt":"2026-04-05T08:57:40","slug":"issue-with-continuity-residuals-when-using-time-varying-inlet-flow-udf-in-dynami","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/issue-with-continuity-residuals-when-using-time-varying-inlet-flow-udf-in-dynami\/","title":{"rendered":"Issue with Continuity Residuals When Using Time-Varying Inlet Flow UDF in Dynami"},"content":{"rendered":"<p>&lt;p&gt;<img decoding=\"async\" src=\"https:\/\/innovationspace.ansys.com\/forum\/wp-content\/uploads\/sites\/2\/2026\/04\/05-04-2026-1775379046-mceclip0.png\" \/><img decoding=\"async\" src=\"https:\/\/innovationspace.ansys.com\/forum\/wp-content\/uploads\/sites\/2\/2026\/04\/05-04-2026-1775379058-mceclip1.png\" \/>&lt;\/p&gt;&lt;p data-start=&#8221;85&#8243; data-end=&#8221;204&#8243;&gt;From the current setup, it can be observed that there are a chamber, a valve, an air port inlet, and a fuel port inlet.&lt;\/p&gt;&lt;p data-start=&#8221;206&#8243; data-end=&#8221;527&#8243;&gt;The objective of this study is to quantitatively evaluate the mixing quality as air and fuel enter the chamber. To achieve this, I attempted to implement the valve using a UDF with a dynamic mesh. Similarly, I applied a dynamic mesh at the bottom surface, like a piston, to create an expansion effect in the lower region.&lt;\/p&gt;&lt;p data-start=&#8221;529&#8243; data-end=&#8221;809&#8243;&gt;For the inlet conditions, I believed that assigning constant mass flow rates for both air and fuel would not be appropriate. Therefore, I implemented UDFs in which the mass flow rates follow a cosine function&mdash;starting low, reaching a peak in the middle, and then decreasing again.&lt;\/p&gt;&lt;p data-start=&#8221;811&#8243; data-end=&#8221;1097&#8243;&gt;However, when running the simulation with this setup, I observed that the continuity residual increases at every new time step. Although it eventually decreases back to a certain level, it rises again in the next step. This repetitive increase led me to believe that there is a problem.&lt;\/p&gt;&lt;p data-start=&#8221;1099&#8243; data-end=&#8221;1316&#8243;&gt;When I changed the air flow rate to a constant value, the continuity residual stabilized around 1. Based on this, I suspect that the way I implemented the time-varying flow rate using a UDF might be causing the issue.&lt;\/p&gt;&lt;p data-start=&#8221;1318&#8243; data-end=&#8221;1485&#8243;&gt;I would like to ask for your opinion on whether the UDF-based flow rate implementation could indeed be the source of the problem, and how this issue might be resolved.&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-455787","topic","type-topic","status-publish","hentry"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"From the current setup, it can be observed that there are a chamber, a valve, an air port inlet, and a fuel port inlet.The objective of this study is to quantitatively evaluate the mixing quality as air and fuel enter the chamber. To achieve this, I attempted to implement the valve\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/issue-with-continuity-residuals-when-using-time-varying-inlet-flow-udf-in-dynami\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Ansys Learning Forum | Ansys Innovation Space\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Issue with Continuity Residuals When Using Time-Varying Inlet Flow UDF in Dynami | Ansys Learning Forum\" \/>\n\t\t<meta property=\"og:description\" content=\"From the current setup, it can be observed that there are a chamber, a valve, an air port inlet, and a fuel port inlet.The objective of this study is to quantitatively evaluate the mixing quality as air and fuel enter the chamber. To achieve this, I attempted to implement the valve\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/issue-with-continuity-residuals-when-using-time-varying-inlet-flow-udf-in-dynami\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2026-04-05T08:57:40+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-04-05T08:57:40+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Issue with Continuity Residuals When Using Time-Varying Inlet Flow UDF in Dynami | Ansys Learning Forum\" \/>\n\t\t<meta name=\"twitter:description\" content=\"From the current setup, it can be observed that there are a chamber, a valve, an air port inlet, and a fuel port inlet.The objective of this study is to quantitatively evaluate the mixing quality as air and fuel enter the chamber. To achieve this, I attempted to implement the valve\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/issue-with-continuity-residuals-when-using-time-varying-inlet-flow-udf-in-dynami\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"name\":\"Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/issue-with-continuity-residuals-when-using-time-varying-inlet-flow-udf-in-dynami\\\/#listItem\",\"name\":\"Issue with Continuity Residuals When Using Time-Varying Inlet Flow UDF in Dynami\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/issue-with-continuity-residuals-when-using-time-varying-inlet-flow-udf-in-dynami\\\/#listItem\",\"position\":3,\"name\":\"Issue with Continuity Residuals When Using Time-Varying Inlet Flow UDF in Dynami\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"name\":\"Topics\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#organization\",\"name\":\"Ansys Learning Forum\",\"description\":\"Ansys Innovation Space\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/issue-with-continuity-residuals-when-using-time-varying-inlet-flow-udf-in-dynami\\\/#webpage\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/issue-with-continuity-residuals-when-using-time-varying-inlet-flow-udf-in-dynami\\\/\",\"name\":\"Issue with Continuity Residuals When Using Time-Varying Inlet Flow UDF in Dynami | Ansys Learning Forum\",\"description\":\"From the current setup, it can be observed that there are a chamber, a valve, an air port inlet, and a fuel port inlet.The objective of this study is to quantitatively evaluate the mixing quality as air and fuel enter the chamber. To achieve this, I attempted to implement the valve\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/issue-with-continuity-residuals-when-using-time-varying-inlet-flow-udf-in-dynami\\\/#breadcrumblist\"},\"datePublished\":\"2026-04-05T08:57:40+00:00\",\"dateModified\":\"2026-04-05T08:57:40+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/\",\"name\":\"Ansys Learning Forum\",\"description\":\"Ansys Innovation Space\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Issue with Continuity Residuals When Using Time-Varying Inlet Flow UDF in Dynami | Ansys Learning Forum","description":"From the current setup, it can be observed that there are a chamber, a valve, an air port inlet, and a fuel port inlet.The objective of this study is to quantitatively evaluate the mixing quality as air and fuel enter the chamber. To achieve this, I attempted to implement the valve","canonical_url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/issue-with-continuity-residuals-when-using-time-varying-inlet-flow-udf-in-dynami\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/issue-with-continuity-residuals-when-using-time-varying-inlet-flow-udf-in-dynami\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","position":1,"name":"Home","item":"https:\/\/innovationspace.ansys.com\/forum","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","name":"Topics"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","position":2,"name":"Topics","item":"https:\/\/innovationspace.ansys.com\/forum\/topics\/","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/issue-with-continuity-residuals-when-using-time-varying-inlet-flow-udf-in-dynami\/#listItem","name":"Issue with Continuity Residuals When Using Time-Varying Inlet Flow UDF in Dynami"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/issue-with-continuity-residuals-when-using-time-varying-inlet-flow-udf-in-dynami\/#listItem","position":3,"name":"Issue with Continuity Residuals When Using Time-Varying Inlet Flow UDF in Dynami","previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","name":"Topics"}}]},{"@type":"Organization","@id":"https:\/\/innovationspace.ansys.com\/forum\/#organization","name":"Ansys Learning Forum","description":"Ansys Innovation Space","url":"https:\/\/innovationspace.ansys.com\/forum\/"},{"@type":"WebPage","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/issue-with-continuity-residuals-when-using-time-varying-inlet-flow-udf-in-dynami\/#webpage","url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/issue-with-continuity-residuals-when-using-time-varying-inlet-flow-udf-in-dynami\/","name":"Issue with Continuity Residuals When Using Time-Varying Inlet Flow UDF in Dynami | Ansys Learning Forum","description":"From the current setup, it can be observed that there are a chamber, a valve, an air port inlet, and a fuel port inlet.The objective of this study is to quantitatively evaluate the mixing quality as air and fuel enter the chamber. To achieve this, I attempted to implement the valve","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#website"},"breadcrumb":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/issue-with-continuity-residuals-when-using-time-varying-inlet-flow-udf-in-dynami\/#breadcrumblist"},"datePublished":"2026-04-05T08:57:40+00:00","dateModified":"2026-04-05T08:57:40+00:00"},{"@type":"WebSite","@id":"https:\/\/innovationspace.ansys.com\/forum\/#website","url":"https:\/\/innovationspace.ansys.com\/forum\/","name":"Ansys Learning Forum","description":"Ansys Innovation Space","inLanguage":"en-US","publisher":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#organization"}}]},"og:locale":"en_US","og:site_name":"Ansys Learning Forum | Ansys Innovation Space","og:type":"article","og:title":"Issue with Continuity Residuals When Using Time-Varying Inlet Flow UDF in Dynami | Ansys Learning Forum","og:description":"From the current setup, it can be observed that there are a chamber, a valve, an air port inlet, and a fuel port inlet.The objective of this study is to quantitatively evaluate the mixing quality as air and fuel enter the chamber. To achieve this, I attempted to implement the valve","og:url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/issue-with-continuity-residuals-when-using-time-varying-inlet-flow-udf-in-dynami\/","article:published_time":"2026-04-05T08:57:40+00:00","article:modified_time":"2026-04-05T08:57:40+00:00","twitter:card":"summary_large_image","twitter:title":"Issue with Continuity Residuals When Using Time-Varying Inlet Flow UDF in Dynami | Ansys Learning Forum","twitter:description":"From the current setup, it can be observed that there are a chamber, a valve, an air port inlet, and a fuel port inlet.The objective of this study is to quantitatively evaluate the mixing quality as air and fuel enter the chamber. To achieve this, I attempted to implement the valve"},"aioseo_meta_data":{"post_id":"455787","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2026-04-05 09:06:50","updated":"2026-09-19 13:50:31","ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\/topics\/\" title=\"Topics\">Topics<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tIssue with Continuity Residuals When Using Time-Varying Inlet Flow UDF in Dynami\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/innovationspace.ansys.com\/forum"},{"label":"Topics","link":"https:\/\/innovationspace.ansys.com\/forum\/topics\/"},{"label":"Issue with Continuity Residuals When Using Time-Varying Inlet Flow UDF in Dynami","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/issue-with-continuity-residuals-when-using-time-varying-inlet-flow-udf-in-dynami\/"}],"acf":[],"custom_fields":[{"0":{"_bbp_forum_id":["27792"],"_bbp_topic_id":["455787"],"_bbp_author_ip":["2001:2d8:8244:ad3b:a1f0:15a2:149a:809d"],"_bbp_last_reply_id":["455818"],"_bbp_last_active_id":["455818"],"_bbp_last_active_time":["2026-04-06 10:27:36"],"_bbp_reply_count":["1"],"_bbp_reply_count_hidden":["0"],"_bbp_voice_count":["2"],"_bbp_engagement":["110365","34559"],"_btv_view_count":["118"],"_bbp_topic_status":["unanswered"],"_bbp_subscription":["34559"]},"test":"a1531318naver-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/455787","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\/455787\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=455787"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}