


{"id":396704,"date":"2024-12-08T21:22:47","date_gmt":"2024-12-08T21:22:47","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/density-udf-for-a-mixture\/"},"modified":"2024-12-08T21:22:47","modified_gmt":"2024-12-08T21:22:47","slug":"density-udf-for-a-mixture","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/density-udf-for-a-mixture\/","title":{"rendered":"Density UDF for a mixture"},"content":{"rendered":"<p>&lt;p&gt;I wrote a UDF to specify density as a function of&nbsp; temperature for a multi-species, multiphase model. This is the error I get.&lt;br&gt;&lt;br&gt;&lt;\/p&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;&nbsp; step&nbsp; flow-time&nbsp; &nbsp; &nbsp;p-inlet&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;&nbsp; &nbsp; &nbsp;0&nbsp; 0.0000e+00 -1.0553e-14&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Updating solution at time level N&#8230;&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;&nbsp;done.&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;&nbsp; iter&nbsp; continuity&nbsp; x-velocity&nbsp; y-velocity&nbsp; z-velocity&nbsp; &nbsp; &nbsp; energy&nbsp; ch44-p&nbsp; ch3oh-pha&nbsp; n2-phase-a&nbsp; co2-phase-&nbsp; vf-phase-a&nbsp; &nbsp; &nbsp;time\/iter&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;&nbsp; &nbsp; &nbsp; &nbsp; Stabilizing pressure coupled to enhance linear solver robustness.&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;&nbsp; &nbsp; &nbsp; &nbsp; Stabilizing pressure coupled using GMRES to enhance linear solver robustness.&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Experiencing convergence difficulties &#8211; temporarily relaxing and trying again&#8230;&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Experiencing convergence difficulties &#8211; temporarily relaxing and trying again&#8230;&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Experiencing convergence difficulties &#8211; temporarily relaxing and trying again&#8230;&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Experiencing convergence difficulties &#8211; temporarily relaxing and trying again&#8230;&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;&nbsp; &nbsp; &nbsp; &nbsp; Stabilizing pressure coupled to enhance linear solver robustness.&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;&nbsp; &nbsp; &nbsp; &nbsp; Stabilizing pressure coupled using GMRES to enhance linear solver robustness.&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Experiencing convergence difficulties &#8211; temporarily relaxing and trying again&#8230;&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Divergence detected in AMG solver: pressure coupled temperature limited to 3.273150e+03 in 387997 cells on zone 1231 in domain 1&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Stabilizing vof-1 to enhance linear solver robustness.&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;&nbsp; &nbsp; &nbsp; &nbsp; Stabilizing vof-1 using GMRES to enhance linear solver robustness.&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Divergence detected in AMG solver: vof-1&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Divergence detected in AMG solver: pressure coupled&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Divergence detected in AMG solver: vof-1&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Divergence detected in AMG solver: pressure coupled&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Divergence detected in AMG solver: vof-1&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Divergence detected in AMG solver: pressure coupled&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Divergence detected in AMG solver: vof-1&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Divergence detected in AMG solver: pressure coupled&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Divergence detected in AMG solver: vof-1&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Divergence detected in AMG solver: pressure coupled&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Divergence detected in AMG solver: vof-1&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Divergence detected in AMG solver: pressure coupled&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Divergence detected in AMG solver: vof-1&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Divergence detected in AMG solver: pressure coupled&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Divergence detected in AMG solver: vof-1&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Divergence detected in AMG solver: pressure coupled&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Divergence detected in AMG solver: vof-1&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Divergence detected in AMG solver: pressure coupled&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Divergence detected in AMG solver: vof-1&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Divergence detected in AMG solver: pressure coupled&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Divergence detected in AMG solver: vof-1&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Divergence detected in AMG solver: pressure coupled&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Divergence detected in AMG solver: vof-1&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Error at host: floating point exception&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Error: floating point exception&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Error Object: ()&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Error at Node 5: floating point exception&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Error at Node 4: floating point exception&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Error at Node 6: floating point exception&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Error at Node 3: floating point exception&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Error at Node 10: floating point exception&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Error at Node 7: floating point exception&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Error at Node 0: floating point exception&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Error at Node 9: floating point exception&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Error at Node 8: floating point exception&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Error at Node 1: floating point exception&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Error at Node 11: floating point exception&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Error at Node 2: floating point exception&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #236fa1;&#8221;&gt;Error: floating point exception&lt;\/span&gt;&lt;\/div&gt;&lt;p&gt;Would someone be able to review my UDF (below) and tell me if there is an obvious mistake.&lt;br&gt;&lt;br&gt;&lt;\/p&gt;&lt;div&gt;&lt;span style=&#8221;color: #169179;&#8221;&gt;#include &#8220;udf.h&#8221;&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #169179;&#8221;&gt;\/* Define the UDF to specify temperature-dependent density *\/&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #169179;&#8221;&gt;DEFINE_PROPERTY(temperature_dependent_density, cell, thread)&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #169179;&#8221;&gt;{&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #169179;&#8221;&gt;&nbsp; &nbsp; real T;&nbsp; \/* Temperature *\/&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #169179;&#8221;&gt;&nbsp; &nbsp; real density;&nbsp; \/* Density *\/&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #169179;&#8221;&gt;&nbsp; &nbsp; real vol_frac;&nbsp; \/* Volume fraction of phase A *\/&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #169179;&#8221;&gt;&nbsp; &nbsp; \/* Loop over all cells in the thread *\/&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #169179;&#8221;&gt;&nbsp; &nbsp; begin_c_loop(cell, thread)&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #169179;&#8221;&gt;&nbsp; &nbsp; {&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #169179;&#8221;&gt;&nbsp; &nbsp; &nbsp; &nbsp; \/* Get the volume fraction of phase A in the cell *\/&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #169179;&#8221;&gt;&nbsp; &nbsp; &nbsp; &nbsp; vol_frac = C_VOF(cell, thread);&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #169179;&#8221;&gt;&nbsp; &nbsp; &nbsp; &nbsp; \/* Check if the volume fraction of phase A is greater than 50% *\/&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #169179;&#8221;&gt;&nbsp; &nbsp; &nbsp; &nbsp; if (vol_frac &gt; 0.5)&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #169179;&#8221;&gt;&nbsp; &nbsp; &nbsp; &nbsp; {&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #169179;&#8221;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \/* Get the temperature of the cell *\/&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #169179;&#8221;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; T = C_T(cell, thread);&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #169179;&#8221;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \/* Calculate the density based on the given relationship *\/&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #169179;&#8221;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; density = 1.4811 &#8211; 0.0007 * T;&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #169179;&#8221;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \/* Set the density for the cell *\/&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #169179;&#8221;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; C_R(cell, thread) = density;&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #169179;&#8221;&gt;&nbsp; &nbsp; &nbsp; &nbsp; }&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #169179;&#8221;&gt;&nbsp; &nbsp; }&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #169179;&#8221;&gt;&nbsp; &nbsp; end_c_loop(cell, thread)&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #169179;&#8221;&gt;&nbsp; &nbsp; return density;&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: #169179;&#8221;&gt;}&lt;\/span&gt;&lt;\/div&gt;<\/p>\n","protected":false},"template":"","class_list":["post-396704","topic","type-topic","status-publish","hentry","topic-tag-fluent","topic-tag-udferror"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"I wrote a UDF to specify density as a function of temperature for a multi-species, multiphase model. This is the error I get. step flow-time p-inlet 0 0.0000e+00 -1.0553e-14 Updating solution at time level N... done. iter continuity x-velocity y-velocity z-velocity energy ch44-p\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/density-udf-for-a-mixture\/\" \/>\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=\"Density UDF for a mixture | Ansys Learning Forum\" \/>\n\t\t<meta property=\"og:description\" content=\"I wrote a UDF to specify density as a function of temperature for a multi-species, multiphase model. This is the error I get. step flow-time p-inlet 0 0.0000e+00 -1.0553e-14 Updating solution at time level N... done. iter continuity x-velocity y-velocity z-velocity energy ch44-p\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/density-udf-for-a-mixture\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2024-12-08T21:22:47+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-12-08T21:22:47+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Density UDF for a mixture | Ansys Learning Forum\" \/>\n\t\t<meta name=\"twitter:description\" content=\"I wrote a UDF to specify density as a function of temperature for a multi-species, multiphase model. This is the error I get. step flow-time p-inlet 0 0.0000e+00 -1.0553e-14 Updating solution at time level N... done. iter continuity x-velocity y-velocity z-velocity energy ch44-p\" \/>\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\\\/density-udf-for-a-mixture\\\/#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-tag\\\/fluent\\\/#listItem\",\"name\":\"fluent\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/fluent\\\/#listItem\",\"position\":3,\"name\":\"fluent\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/fluent\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/density-udf-for-a-mixture\\\/#listItem\",\"name\":\"Density UDF for a mixture\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"name\":\"Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/density-udf-for-a-mixture\\\/#listItem\",\"position\":4,\"name\":\"Density UDF for a mixture\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/fluent\\\/#listItem\",\"name\":\"fluent\"}}]},{\"@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\\\/density-udf-for-a-mixture\\\/#webpage\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/density-udf-for-a-mixture\\\/\",\"name\":\"Density UDF for a mixture | Ansys Learning Forum\",\"description\":\"I wrote a UDF to specify density as a function of temperature for a multi-species, multiphase model. This is the error I get. step flow-time p-inlet 0 0.0000e+00 -1.0553e-14 Updating solution at time level N... done. iter continuity x-velocity y-velocity z-velocity energy ch44-p\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/density-udf-for-a-mixture\\\/#breadcrumblist\"},\"datePublished\":\"2024-12-08T21:22:47+00:00\",\"dateModified\":\"2024-12-08T21:22:47+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":"Density UDF for a mixture | Ansys Learning Forum","description":"I wrote a UDF to specify density as a function of temperature for a multi-species, multiphase model. This is the error I get. step flow-time p-inlet 0 0.0000e+00 -1.0553e-14 Updating solution at time level N... done. iter continuity x-velocity y-velocity z-velocity energy ch44-p","canonical_url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/density-udf-for-a-mixture\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/density-udf-for-a-mixture\/#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-tag\/fluent\/#listItem","name":"fluent"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/fluent\/#listItem","position":3,"name":"fluent","item":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/fluent\/","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/density-udf-for-a-mixture\/#listItem","name":"Density UDF for a mixture"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","name":"Topics"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/density-udf-for-a-mixture\/#listItem","position":4,"name":"Density UDF for a mixture","previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/fluent\/#listItem","name":"fluent"}}]},{"@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\/density-udf-for-a-mixture\/#webpage","url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/density-udf-for-a-mixture\/","name":"Density UDF for a mixture | Ansys Learning Forum","description":"I wrote a UDF to specify density as a function of temperature for a multi-species, multiphase model. This is the error I get. step flow-time p-inlet 0 0.0000e+00 -1.0553e-14 Updating solution at time level N... done. iter continuity x-velocity y-velocity z-velocity energy ch44-p","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#website"},"breadcrumb":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/density-udf-for-a-mixture\/#breadcrumblist"},"datePublished":"2024-12-08T21:22:47+00:00","dateModified":"2024-12-08T21:22:47+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":"Density UDF for a mixture | Ansys Learning Forum","og:description":"I wrote a UDF to specify density as a function of temperature for a multi-species, multiphase model. This is the error I get. step flow-time p-inlet 0 0.0000e+00 -1.0553e-14 Updating solution at time level N... done. iter continuity x-velocity y-velocity z-velocity energy ch44-p","og:url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/density-udf-for-a-mixture\/","article:published_time":"2024-12-08T21:22:47+00:00","article:modified_time":"2024-12-08T21:22:47+00:00","twitter:card":"summary_large_image","twitter:title":"Density UDF for a mixture | Ansys Learning Forum","twitter:description":"I wrote a UDF to specify density as a function of temperature for a multi-species, multiphase model. This is the error I get. step flow-time p-inlet 0 0.0000e+00 -1.0553e-14 Updating solution at time level N... done. iter continuity x-velocity y-velocity z-velocity energy ch44-p"},"aioseo_meta_data":{"post_id":"396704","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":"2025-10-19 10:04:54","updated":"2025-10-19 10:04:54","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\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/fluent\/\" title=\"fluent\">fluent<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tDensity UDF for a mixture\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":"fluent","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/fluent\/"},{"label":"Density UDF for a mixture","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/density-udf-for-a-mixture\/"}],"acf":[],"custom_fields":[{"0":{"_bbp_forum_id":["27792"],"_bbp_topic_id":["396704"],"_bbp_subscription":["437146","199"],"_bbp_author_ip":["47.188.202.145"],"_bbp_last_reply_id":["396929"],"_bbp_last_active_id":["396929"],"_bbp_last_active_time":["2024-12-10 11:39:59"],"_bbp_reply_count":["3"],"_bbp_reply_count_hidden":["0"],"_bbp_voice_count":["2"],"_bbp_engagement":["437146","199"],"_btv_view_count":["627"],"_bbp_topic_status":["unanswered"]},"test":"sjohnbenchmark-space-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/396704","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\/396704\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=396704"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}