


{"id":374286,"date":"2024-07-30T17:35:59","date_gmt":"2024-07-30T17:35:59","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/conservation-issue-with-a-uds-solution\/"},"modified":"2024-07-30T17:35:59","modified_gmt":"2024-07-30T17:35:59","slug":"conservation-issue-with-a-uds-solution","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/conservation-issue-with-a-uds-solution\/","title":{"rendered":"Conservation issue with a UDS solution"},"content":{"rendered":"<p>We are modelling an aerosol concentration with a Fluent UDS that solves the Drift-Flux transport equation for a single particle<\/p>\n<p>size group. We are experiencing inconsistent behaviour with the UDS solution between restart and continuous running of a case. We have done a significant number of tests and we need help to understand that the code is doing.<\/p>\n<p>Here is a README on what is happening:<\/p>\n<p class=\"MsoNormal\"><span style=\"font-size: 12.0pt;line-height: 107%\">Summary of physical problem being solved:<\/span><\/p>\n<p class=\"MsoNormal\">A UDS equation is being used to simulate aerosol transport within a chamber. The scalar transport is one way coupled. A steady state background flow was first obtained before running a transient simulation with the aerosol model. The UDS equation is the only equation active during the transient simulation. A udf (DEFINE_UDS_FLUX) is used to implement the aerosol drift flux model. The additional convective flux accounts for the effects of gravitational settling and phoretic forces on the aerosol phase. Currently, a range of particle diameters are being simulated independently.<\/p>\n<p class=\"MsoNormal\"><span style=\"font-size: 12.0pt;line-height: 107%\">Summary of main udf routines:<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-left: 2.05pt\"><span style=\"font-family: Consolas\">my_uds_flux_and_wall <\/span>&ndash; the UDS flux function being used. It applies the drift velocity at interior faces as well as at select wall boundaries to facilitate aerosol deposition on the walls. The deposition flux is stored in UDMI. A surface integral report of this UDMI gives the total deposition rate for aerosol mass imbalance calculation.<\/p>\n<p class=\"MsoNormal\" style=\"margin-left: 2.05pt\"><span style=\"font-family: Consolas\">calc_Drift_velocity <\/span>&ndash; calculates the aerosol drift velocities at the beginning of the aerosol simulation. The aerosol drift velocities are dependent on the background flow solution and the particle diameter. They are independent of the aerosol solution itself so they are only calculated once and stored in UDMI.<\/p>\n<p class=\"MsoNormal\" style=\"margin-left: 2.05pt\"><span style=\"font-family: Consolas\">aerosol_clipped_diffusivity <\/span>&ndash; calculates the aerosol diffusion coefficient. Turbulent diffusion is the dominant mechanism. The Brownian diffusion coefficient is negligible for the range of particle sizes currently being considered.<span>&nbsp; <\/span>Problems were encountered with negative concentrations. It was determined this was do to poor cells with very small diffusion coefficients. Setting the diffusion coefficient to zero prevented negative concentrations from occurring. In the working simulations the diffusion coefficient is set to zero once it falls below a certain threshold<\/p>\n<p class=\"MsoNormal\" style=\"margin-left: 2.05pt\"><span style=\"font-family: Consolas\">aerosol_dmdt <\/span>&ndash; calculates the mass storage rate for the uds aerosol in the cavity. This report is used to compute the aerosol mass imbalance along with the aerosol boundary flows.<\/p>\n<p class=\"MsoNormal\" style=\"margin-left: 2.05pt\"><span style=\"font-size: 12.0pt;line-height: 107%\">Simulation procedure:<\/span><\/p>\n<p class=\"MsoListParagraphCxSpFirst\" style=\"margin-left: 38.05pt;text-indent: -18.0pt\"><!-- [if !supportLists]--><span><span>1.<span style=\"font: 7.0pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><!--[endif]-->Read &lsquo;aerosol template&rsquo; case file and &lsquo;background flow&rsquo; data file<\/p>\n<p class=\"MsoListParagraphCxSpMiddle\" style=\"margin-left: 38.05pt;text-indent: -18.0pt\"><!-- [if !supportLists]--><span><span>2.<span style=\"font: 7.0pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><!--[endif]-->Run the species and energy equations to calculate mass fraction and temperature gradients needed to calculate drift velocities<\/p>\n<p class=\"MsoListParagraphCxSpMiddle\" style=\"margin-left: 38.05pt;text-indent: -18.0pt\"><!-- [if !supportLists]--><span><span>3.<span style=\"font: 7.0pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><!--[endif]-->Set desired particle diameter with scheme variable. This scheme variable us accessed by the user code<\/p>\n<p class=\"MsoListParagraphCxSpMiddle\" style=\"margin-left: 38.05pt;text-indent: -18.0pt\"><!-- [if !supportLists]--><span><span>4.<span style=\"font: 7.0pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><!--[endif]-->Calculate the drift velocities with <span style=\"font-family: Consolas\">EXECUTE_ON_DEMAND <\/span>and store them in UDMI<\/p>\n<p class=\"MsoListParagraphCxSpMiddle\" style=\"margin-left: 38.05pt;text-indent: -18.0pt\"><!-- [if !supportLists]--><span><span>5.<span style=\"font: 7.0pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><!--[endif]-->Run the aerosol simulation for a desired period of time. Write intermediate results files along the way<span>&nbsp;&nbsp; <\/span><\/p>\n<p class=\"MsoListParagraphCxSpMiddle\" style=\"text-indent: -18.0pt\"><!-- [if !supportLists]--><span style=\"font-family: Symbol\"><span>&middot;<span style=\"font: 7.0pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><!--[endif]-->The aerosol mass imbalance, transient storage term, and boundary flows are written at every timestep in report-file-monitors-0.out<\/p>\n<p class=\"MsoListParagraphCxSpLast\" style=\"text-indent: -18.0pt\"><!-- [if !supportLists]--><span style=\"font-family: Symbol\"><span>&middot;<span style=\"font: 7.0pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><!--[endif]-->The case file aerosol-template2 added solver-monitors-0.out to monitor the iterations per timestep, average and maximum value of the absolute value of the uds equation residuals.<\/p>\n<p class=\"MsoNormal\" style=\"margin-left: 2.05pt\"><strong><span style=\"font-size: 12.0pt;line-height: 107%\">The problem we are having:&nbsp;<\/span><\/strong><\/p>\n<p class=\"MsoNormal\" style=\"margin-left: 2.05pt\">There has been some unusual and inconsistent behavior when starting an aerosol run from the beginning (step 1) vs continuing a run from an intermediate aerosol case and data file. The aerosol mass imbalance changes abruptly on the first timestep of a resumed run, sometimes it increases and other times it decreases. The variation of the aerosol mass imbalance vs time is different before and after resuming the run. In some instances, the transient storage term is briefly affected when the run is resumed. In the SG-60um case included all of the aerosol boundary flows are disrupted. The residuals do not appear to be significantly higher after re launching the run.<\/p>\n<p class=\"MsoNormal\" style=\"margin-left: 2.05pt\"><span>&nbsp;<\/span>We suspected the modified diffusion coefficient or the change in timestep size <span>&nbsp;<\/span>may have something to do with the inconsistent behavior. A test case included in &ldquo;investigate-restart&rdquo; folder was performed with a different diffusion coefficient (max[turbulent,1e-4]), ensuring the local diffusion coefficient was constant and did not change when restarting the run. One run was carried out continuously to 1 minute and another was resumed from a 10s intermediate file. The timestep was not changed. In this instance the final mass imbalance was significantly different but the aerosol flows were not affected. <span>&nbsp;<\/span><\/p>\n","protected":false},"template":"","class_list":["post-374286","topic","type-topic","status-closed","hentry"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"We are modelling an aerosol concentration with a Fluent UDS that solves the Drift-Flux transport equation for a single particlesize group. We are experiencing inconsistent behaviour with the UDS solution between restart and continuous running of a case. We have done a significant number of tests and we need help to understand that the code\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/conservation-issue-with-a-uds-solution\/\" \/>\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=\"Conservation issue with a UDS solution | Ansys Learning Forum\" \/>\n\t\t<meta property=\"og:description\" content=\"We are modelling an aerosol concentration with a Fluent UDS that solves the Drift-Flux transport equation for a single particlesize group. We are experiencing inconsistent behaviour with the UDS solution between restart and continuous running of a case. We have done a significant number of tests and we need help to understand that the code\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/conservation-issue-with-a-uds-solution\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2024-07-30T17:35:59+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-07-30T17:35:59+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Conservation issue with a UDS solution | Ansys Learning Forum\" \/>\n\t\t<meta name=\"twitter:description\" content=\"We are modelling an aerosol concentration with a Fluent UDS that solves the Drift-Flux transport equation for a single particlesize group. We are experiencing inconsistent behaviour with the UDS solution between restart and continuous running of a case. We have done a significant number of tests and we need help to understand that the code\" \/>\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\\\/conservation-issue-with-a-uds-solution\\\/#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\\\/conservation-issue-with-a-uds-solution\\\/#listItem\",\"name\":\"Conservation issue with a UDS solution\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/conservation-issue-with-a-uds-solution\\\/#listItem\",\"position\":3,\"name\":\"Conservation issue with a UDS solution\",\"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\\\/conservation-issue-with-a-uds-solution\\\/#webpage\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/conservation-issue-with-a-uds-solution\\\/\",\"name\":\"Conservation issue with a UDS solution | Ansys Learning Forum\",\"description\":\"We are modelling an aerosol concentration with a Fluent UDS that solves the Drift-Flux transport equation for a single particlesize group. We are experiencing inconsistent behaviour with the UDS solution between restart and continuous running of a case. We have done a significant number of tests and we need help to understand that the code\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/conservation-issue-with-a-uds-solution\\\/#breadcrumblist\"},\"datePublished\":\"2024-07-30T17:35:59+00:00\",\"dateModified\":\"2024-07-30T17:35:59+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":"Conservation issue with a UDS solution | Ansys Learning Forum","description":"We are modelling an aerosol concentration with a Fluent UDS that solves the Drift-Flux transport equation for a single particlesize group. We are experiencing inconsistent behaviour with the UDS solution between restart and continuous running of a case. We have done a significant number of tests and we need help to understand that the code","canonical_url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/conservation-issue-with-a-uds-solution\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/conservation-issue-with-a-uds-solution\/#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\/conservation-issue-with-a-uds-solution\/#listItem","name":"Conservation issue with a UDS solution"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/conservation-issue-with-a-uds-solution\/#listItem","position":3,"name":"Conservation issue with a UDS solution","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\/conservation-issue-with-a-uds-solution\/#webpage","url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/conservation-issue-with-a-uds-solution\/","name":"Conservation issue with a UDS solution | Ansys Learning Forum","description":"We are modelling an aerosol concentration with a Fluent UDS that solves the Drift-Flux transport equation for a single particlesize group. We are experiencing inconsistent behaviour with the UDS solution between restart and continuous running of a case. We have done a significant number of tests and we need help to understand that the code","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#website"},"breadcrumb":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/conservation-issue-with-a-uds-solution\/#breadcrumblist"},"datePublished":"2024-07-30T17:35:59+00:00","dateModified":"2024-07-30T17:35:59+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":"Conservation issue with a UDS solution | Ansys Learning Forum","og:description":"We are modelling an aerosol concentration with a Fluent UDS that solves the Drift-Flux transport equation for a single particlesize group. We are experiencing inconsistent behaviour with the UDS solution between restart and continuous running of a case. We have done a significant number of tests and we need help to understand that the code","og:url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/conservation-issue-with-a-uds-solution\/","article:published_time":"2024-07-30T17:35:59+00:00","article:modified_time":"2024-07-30T17:35:59+00:00","twitter:card":"summary_large_image","twitter:title":"Conservation issue with a UDS solution | Ansys Learning Forum","twitter:description":"We are modelling an aerosol concentration with a Fluent UDS that solves the Drift-Flux transport equation for a single particlesize group. We are experiencing inconsistent behaviour with the UDS solution between restart and continuous running of a case. We have done a significant number of tests and we need help to understand that the code"},"aioseo_meta_data":{"post_id":"374286","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":"content","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":true,"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":"2024-10-28 16:35:05","updated":"2024-10-28 16:35:05","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\tConservation issue with a UDS solution\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":"Conservation issue with a UDS solution","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/conservation-issue-with-a-uds-solution\/"}],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["183469","2887"],"_bbp_author_ip":["142.161.89.147"]," _bbp_last_reply_id":["0"],"_btv_view_count":["1053"]," _bbp_likes_count":["0"],"_bbp_topic_status":["unanswered"],"_bbp_topic_id":["374286"],"_bbp_forum_id":["27792"],"_bbp_engagement":["2887","183469"],"_bbp_voice_count":["2"],"_bbp_reply_count":["1"],"_bbp_last_reply_id":["387810"],"_bbp_last_active_id":["387810"],"_bbp_last_active_time":["2024-10-02 12:06:37"]},"test":"sjormiston"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/374286","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\/374286\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=374286"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}