


{"id":160537,"date":"2021-07-20T17:11:49","date_gmt":"2021-07-20T17:11:49","guid":{"rendered":"\/forum\/forums\/topic\/gradient-of-temperature-in-momentum-source-term-while-using-solidification-melting-with-vof\/"},"modified":"2021-07-22T11:33:03","modified_gmt":"2021-07-22T11:33:03","slug":"gradient-of-temperature-in-momentum-source-term-while-using-solidification-melting-with-vof","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/gradient-of-temperature-in-momentum-source-term-while-using-solidification-melting-with-vof\/","title":{"rendered":"Gradient of temperature in momentum source term while using solidification\/melting with VOF"},"content":{"rendered":"<div class=\"Item-Body\">\n<div class=\"Message userContent\">\n<p>I am trying to model laser melting. I have written 4 separate UDFs(4 separate C files) for energy term and the 3 momentum terms. When I run the simulation only with the energy source term, the simulation runs fine. Next, when I add the 3 momentum terms also, I face problem. In the momentum source terms, I need the gradient of temperature. I am using FLUENT 2020 R2. My basic doubts are:<\/p>\n<ol>\n<li>Since I have written momentum source terms in separate C files from that of energy, will I be able to access C_T_G(c,t)? <\/li>\n<li>I read somewhere that &quot;Keep temporary solver memory from being freed?&quot; is not available in FLUENT 2020 R2 and also not for multiphase flows if I am using Fluent in parallel.<\/li>\n<li>If both of the above are not possible, what is the way to get access to temperature gradient? Can it be done using UDSI and then getting its gradient, UDSI_G?<\/li>\n<\/ol>\n<p>Any help is much appreciated.<\/p>\n<p>Thanks<\/p>\n","protected":false},"template":"","class_list":["post-160537","topic","type-topic","status-closed","hentry","topic-tag-temperature-gradient-1","topic-tag-vof"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"I am trying to model laser melting. I have written 4 separate UDFs(4 separate C files) for energy term and the 3 momentum terms. When I run the simulation only with the energy source term, the simulation runs fine. Next, when I add the 3 momentum terms also, I face problem. In the momentum source\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/gradient-of-temperature-in-momentum-source-term-while-using-solidification-melting-with-vof\/\" \/>\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=\"Gradient of temperature in momentum source term while using solidification\/melting with VOF | Ansys Learning Forum\" \/>\n\t\t<meta property=\"og:description\" content=\"I am trying to model laser melting. I have written 4 separate UDFs(4 separate C files) for energy term and the 3 momentum terms. When I run the simulation only with the energy source term, the simulation runs fine. Next, when I add the 3 momentum terms also, I face problem. In the momentum source\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/gradient-of-temperature-in-momentum-source-term-while-using-solidification-melting-with-vof\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2021-07-20T17:11:49+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2021-07-22T11:33:03+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Gradient of temperature in momentum source term while using solidification\/melting with VOF | Ansys Learning Forum\" \/>\n\t\t<meta name=\"twitter:description\" content=\"I am trying to model laser melting. I have written 4 separate UDFs(4 separate C files) for energy term and the 3 momentum terms. When I run the simulation only with the energy source term, the simulation runs fine. Next, when I add the 3 momentum terms also, I face problem. In the momentum source\" \/>\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\\\/gradient-of-temperature-in-momentum-source-term-while-using-solidification-melting-with-vof\\\/#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\\\/vof\\\/#listItem\",\"name\":\"vof\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/vof\\\/#listItem\",\"position\":3,\"name\":\"vof\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/vof\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/gradient-of-temperature-in-momentum-source-term-while-using-solidification-melting-with-vof\\\/#listItem\",\"name\":\"Gradient of temperature in momentum source term while using solidification\\\/melting with VOF\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"name\":\"Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/gradient-of-temperature-in-momentum-source-term-while-using-solidification-melting-with-vof\\\/#listItem\",\"position\":4,\"name\":\"Gradient of temperature in momentum source term while using solidification\\\/melting with VOF\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/vof\\\/#listItem\",\"name\":\"vof\"}}]},{\"@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\\\/gradient-of-temperature-in-momentum-source-term-while-using-solidification-melting-with-vof\\\/#webpage\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/gradient-of-temperature-in-momentum-source-term-while-using-solidification-melting-with-vof\\\/\",\"name\":\"Gradient of temperature in momentum source term while using solidification\\\/melting with VOF | Ansys Learning Forum\",\"description\":\"I am trying to model laser melting. I have written 4 separate UDFs(4 separate C files) for energy term and the 3 momentum terms. When I run the simulation only with the energy source term, the simulation runs fine. Next, when I add the 3 momentum terms also, I face problem. In the momentum source\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/gradient-of-temperature-in-momentum-source-term-while-using-solidification-melting-with-vof\\\/#breadcrumblist\"},\"datePublished\":\"2021-07-20T17:11:49+00:00\",\"dateModified\":\"2021-07-22T11:33:03+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":"Gradient of temperature in momentum source term while using solidification\/melting with VOF | Ansys Learning Forum","description":"I am trying to model laser melting. I have written 4 separate UDFs(4 separate C files) for energy term and the 3 momentum terms. When I run the simulation only with the energy source term, the simulation runs fine. Next, when I add the 3 momentum terms also, I face problem. In the momentum source","canonical_url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/gradient-of-temperature-in-momentum-source-term-while-using-solidification-melting-with-vof\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/gradient-of-temperature-in-momentum-source-term-while-using-solidification-melting-with-vof\/#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\/vof\/#listItem","name":"vof"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/vof\/#listItem","position":3,"name":"vof","item":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/vof\/","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/gradient-of-temperature-in-momentum-source-term-while-using-solidification-melting-with-vof\/#listItem","name":"Gradient of temperature in momentum source term while using solidification\/melting with VOF"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","name":"Topics"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/gradient-of-temperature-in-momentum-source-term-while-using-solidification-melting-with-vof\/#listItem","position":4,"name":"Gradient of temperature in momentum source term while using solidification\/melting with VOF","previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/vof\/#listItem","name":"vof"}}]},{"@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\/gradient-of-temperature-in-momentum-source-term-while-using-solidification-melting-with-vof\/#webpage","url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/gradient-of-temperature-in-momentum-source-term-while-using-solidification-melting-with-vof\/","name":"Gradient of temperature in momentum source term while using solidification\/melting with VOF | Ansys Learning Forum","description":"I am trying to model laser melting. I have written 4 separate UDFs(4 separate C files) for energy term and the 3 momentum terms. When I run the simulation only with the energy source term, the simulation runs fine. Next, when I add the 3 momentum terms also, I face problem. In the momentum source","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#website"},"breadcrumb":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/gradient-of-temperature-in-momentum-source-term-while-using-solidification-melting-with-vof\/#breadcrumblist"},"datePublished":"2021-07-20T17:11:49+00:00","dateModified":"2021-07-22T11:33:03+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":"Gradient of temperature in momentum source term while using solidification\/melting with VOF | Ansys Learning Forum","og:description":"I am trying to model laser melting. I have written 4 separate UDFs(4 separate C files) for energy term and the 3 momentum terms. When I run the simulation only with the energy source term, the simulation runs fine. Next, when I add the 3 momentum terms also, I face problem. In the momentum source","og:url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/gradient-of-temperature-in-momentum-source-term-while-using-solidification-melting-with-vof\/","article:published_time":"2021-07-20T17:11:49+00:00","article:modified_time":"2021-07-22T11:33:03+00:00","twitter:card":"summary_large_image","twitter:title":"Gradient of temperature in momentum source term while using solidification\/melting with VOF | Ansys Learning Forum","twitter:description":"I am trying to model laser melting. I have written 4 separate UDFs(4 separate C files) for energy term and the 3 momentum terms. When I run the simulation only with the energy source term, the simulation runs fine. Next, when I add the 3 momentum terms also, I face problem. In the momentum source"},"aioseo_meta_data":{"post_id":"160537","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 20:29:00","updated":"2024-10-28 20:29:00","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\/vof\/\" title=\"vof\">vof<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tGradient of temperature in momentum source term while using solidification\/melting with VOF\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":"vof","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/vof\/"},{"label":"Gradient of temperature in momentum source term while using solidification\/melting with VOF","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/gradient-of-temperature-in-momentum-source-term-while-using-solidification-melting-with-vof\/"}],"acf":[],"custom_fields":[{"0":{"_bbp_author_ip":[""],"_bbp_old_reply_author_name_id":["Anonymous"],"_bbp_old_is_reply_anonymous_id":["false"],"_btv_view_count":["490"],"_bbp_likes_count":["0"],"_bbp_subscription":["242319"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["160537"],"_bbp_forum_id":["27792"],"_bbp_engagement":["199","22555","167859"],"_bbp_voice_count":["3"],"_bbp_reply_count":["14"],"_bbp_last_reply_id":["186134"],"_bbp_last_active_id":["186134"],"_bbp_last_active_time":["2021-07-22 11:33:03"]},"test":"pawan"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/160537","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\/160537\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=160537"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}