


{"id":311896,"date":"2023-10-17T17:56:04","date_gmt":"2023-10-17T17:56:04","guid":{"rendered":"\/forum\/forums\/topic\/udf-for-interstitial-heat-transfer-coefficient-in-non-equilibrium-porous-media\/"},"modified":"2023-10-17T17:56:04","modified_gmt":"2023-10-17T17:56:04","slug":"udf-for-interstitial-heat-transfer-coefficient-in-non-equilibrium-porous-media","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/udf-for-interstitial-heat-transfer-coefficient-in-non-equilibrium-porous-media\/","title":{"rendered":"UDF for Interstitial heat transfer coefficient in non equilibrium porous media"},"content":{"rendered":"<p>Hello, I am trying to create a UDF to fit a numerical model which must be applied as UDFs in ANSYS Fluent to model a phase change material in a porous medium. I have attached the mathematical model I am trying to follow as well as my current code. I am currently stuck on getting the interstitial heat transfer coefficient to come up as a UDF, that can be selected in ANSYS Fluent, for the non-equilibrium model of porous medium. Any help would be greatly appreciated. Should it be define_profile or define_property<\/p>\n<h1 style=\"margin: 0in;line-height: 14pt;font-family: Consolas;font-size: 10.5pt\"><span style=\"color: #c586c0;background: #1F1F1F\">#include <\/span><span style=\"color: #ce9178;background: #1F1F1F\">&#8220;udf.h&#8221;<\/span><\/h1>\n<p style=\"margin: 0in;line-height: 14pt;font-family: Consolas;font-size: 10.5pt\"><span style=\"color: #c586c0;background: #1F1F1F\">#include <\/span><span style=\"color: #ce9178;background: #1F1F1F\">&#8220;mem.h&#8221;<\/span><\/p>\n<p style=\"margin: 0in;line-height: 14pt;font-family: Consolas;font-size: 10.5pt\"><span style=\"color: #c586c0;background: #1F1F1F\">#define<\/span><span style=\"color: #569cd6;background: #1F1F1F\"> Tsolidus <\/span><span style=\"color: #b5cea8;background: #1F1F1F\">300.0<\/span><\/p>\n<p style=\"margin: 0in;line-height: 14pt;font-family: Consolas;font-size: 10.5pt\"><span style=\"color: #c586c0;background: #1F1F1F\">#define<\/span><span style=\"color: #569cd6;background: #1F1F1F\"> Tliquidus <\/span><span style=\"color: #b5cea8;background: #1F1F1F\">304.0<\/span><\/p>\n<p style=\"margin: 0in;line-height: 14pt;font-family: Consolas;font-size: 10.5pt\"><span style=\"color: #c586c0;background: #1F1F1F\">#define<\/span><span style=\"color: #569cd6;background: #1F1F1F\"> L_f <\/span><span style=\"color: #b5cea8;background: #1F1F1F\">250<\/span><span style=\"color: #6a9955;background: #1F1F1F\"> \/\/Latent heat of fusion<\/span><\/p>\n<p style=\"margin: 0in;line-height: 14pt;font-family: Calibri;font-size: 11.0pt\">&nbsp;<\/p>\n<p style=\"margin: 0in;line-height: 14pt;font-family: Consolas;font-size: 10.5pt\"><span style=\"color: #c586c0;background: #1F1F1F\">#define<\/span><span style=\"color: #569cd6;background: #1F1F1F\"> UDM_RHO_F_PREV <\/span><span style=\"color: #b5cea8;background: #1F1F1F\">0<\/span><span style=\"color: #6a9955;background: #1F1F1F\"><span>&nbsp; <\/span>\/\/ UDM index for storing previous rho_f<\/span><\/p>\n<p style=\"margin: 0in;line-height: 14pt;font-family: Consolas;font-size: 10.5pt\"><span style=\"color: #c586c0;background: #1F1F1F\">#define<\/span><span style=\"color: #569cd6;background: #1F1F1F\"> UDM_LAMBDA_PREV <\/span><span style=\"color: #b5cea8;background: #1F1F1F\">1<\/span><span style=\"color: #6a9955;background: #1F1F1F\"><span>&nbsp; <\/span>\/\/ UDM index for storing previous lambda<\/span><\/p>\n<p style=\"margin: 0in;line-height: 14pt;font-family: Calibri;font-size: 11.0pt\">&nbsp;<\/p>\n<p style=\"margin: 0in;line-height: 14pt;font-family: Consolas;font-size: 10.5pt\"><span style=\"color: #dcdcaa;background: #1F1F1F\">DEFINE_PROFILE<\/span><span style=\"color: #cccccc;background: #1F1F1F\">(h_sfq, c, t)<\/span><\/p>\n<p style=\"margin: 0in;line-height: 14pt;font-family: Consolas;font-size: 10.5pt;color: #cccccc\"><span style=\"background: #1F1F1F\">{<\/span><\/p>\n<p style=\"margin: 0in;line-height: 14pt;font-family: Consolas;font-size: 10.5pt;color: #cccccc\"><span style=\"background: #1F1F1F\"><span>&nbsp;&nbsp;&nbsp; <\/span>real dl, epsilon, mu, nu, pr, rho_pcm, u, v, mu_pcm, k_pcm, Re_d, h_sfq, local_h_sfq;<\/span><\/p>\n<p style=\"margin: 0in;line-height: 14pt;font-family: Consolas;font-size: 10.5pt\"><span style=\"color: #cccccc;background: #1F1F1F\"><span>&nbsp;&nbsp;&nbsp; <\/span><\/span><span style=\"color: #4ec9b0;background: #1F1F1F\">cell_t<\/span><span style=\"color: #cccccc;background: #1F1F1F\"> cell;<\/span><\/p>\n<p style=\"margin: 0in;line-height: 14pt;font-family: Calibri;font-size: 11.0pt\">&nbsp;<\/p>\n<p style=\"margin: 0in;line-height: 14pt;font-family: Consolas;font-size: 10.5pt\"><span style=\"color: #cccccc;background: #1F1F1F\"><span>&nbsp;&nbsp;&nbsp; <\/span>dl <\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">= <\/span><span style=\"color: #b5cea8;background: #1F1F1F\">0.0194<\/span><span style=\"color: #cccccc;background: #1F1F1F\">;<\/span><span style=\"color: #6a9955;background: #1F1F1F\"> \/\/Diameter Matlab<\/span><\/p>\n<p style=\"margin: 0in;line-height: 14pt;font-family: Consolas;font-size: 10.5pt\"><span style=\"color: #cccccc;background: #1F1F1F\"><span>&nbsp;&nbsp;&nbsp; <\/span>epsilon <\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">= <\/span><span style=\"color: #b5cea8;background: #1F1F1F\">0.85<\/span><span style=\"color: #cccccc;background: #1F1F1F\">;<\/span><span style=\"color: #6a9955;background: #1F1F1F\"> \/\/Porosity Matlab<\/span><\/p>\n<p style=\"margin: 0in;line-height: 14pt;font-family: Consolas;font-size: 10.5pt\"><span style=\"color: #cccccc;background: #1F1F1F\"><span>&nbsp;&nbsp;&nbsp; <\/span>mu <\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">= <\/span><span style=\"color: #dcdcaa;background: #1F1F1F\">C_MU_L<\/span><span style=\"color: #cccccc;background: #1F1F1F\">(c, t);<\/span><span style=\"color: #6a9955;background: #1F1F1F\"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/ Laminar viscosity<\/span><\/p>\n<p style=\"margin: 0in;line-height: 14pt;font-family: Consolas;font-size: 10.5pt\"><span style=\"color: #cccccc;background: #1F1F1F\"><span>&nbsp;&nbsp;&nbsp; <\/span>rho_pcm <\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">= <\/span><span style=\"color: #dcdcaa;background: #1F1F1F\">C_R<\/span><span style=\"color: #cccccc;background: #1F1F1F\">(c, t);<\/span><span style=\"color: #6a9955;background: #1F1F1F\"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/ Density<\/span><\/p>\n<p style=\"margin: 0in;line-height: 14pt;font-family: Consolas;font-size: 10.5pt\"><span style=\"color: #cccccc;background: #1F1F1F\"><span>&nbsp;&nbsp;&nbsp; <\/span>nu <\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">=<\/span><span style=\"color: #cccccc;background: #1F1F1F\"> mu<\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">\/<\/span><span style=\"color: #cccccc;background: #1F1F1F\">rho_pcm;<\/span><span style=\"color: #6a9955;background: #1F1F1F\"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/ Kinematic Viscosity<\/span><\/p>\n<p style=\"margin: 0in;line-height: 14pt;font-family: Consolas;font-size: 10.5pt\"><span style=\"color: #cccccc;background: #1F1F1F\"><span>&nbsp;&nbsp;&nbsp; <\/span>pr <\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">=<\/span><span style=\"color: #cccccc;background: #1F1F1F\"> nu<\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">\/<\/span><span style=\"color: #dcdcaa;background: #1F1F1F\">rng_alpha<\/span><span style=\"color: #cccccc;background: #1F1F1F\">(<\/span><span style=\"color: #b5cea8;background: #1F1F1F\">1.<\/span><span style=\"color: #cccccc;background: #1F1F1F\">, mu, mu);<\/span><span style=\"color: #6a9955;background: #1F1F1F\"> \/\/ Prandtl Number<\/span><\/p>\n<p style=\"margin: 0in;line-height: 14pt;font-family: Calibri;font-size: 11.0pt\">&nbsp;<\/p>\n<p style=\"margin: 0in;line-height: 14pt;font-family: Consolas;font-size: 10.5pt\"><span style=\"color: #cccccc;background: #1F1F1F\"><span>&nbsp;&nbsp;&nbsp; <\/span>u <\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">= <\/span><span style=\"color: #dcdcaa;background: #1F1F1F\">C_U<\/span><span style=\"color: #cccccc;background: #1F1F1F\">(c, t);<\/span><\/p>\n<p style=\"margin: 0in;line-height: 14pt;font-family: Consolas;font-size: 10.5pt\"><span style=\"color: #cccccc;background: #1F1F1F\"><span>&nbsp;&nbsp;&nbsp; <\/span>v <\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">= <\/span><span style=\"color: #dcdcaa;background: #1F1F1F\">C_V<\/span><span style=\"color: #cccccc;background: #1F1F1F\">(c, t);<\/span><\/p>\n<p style=\"margin: 0in;line-height: 14pt;font-family: Consolas;font-size: 10.5pt\"><span style=\"color: #cccccc;background: #1F1F1F\"><span>&nbsp;&nbsp;&nbsp; <\/span>mu_pcm <\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">= <\/span><span style=\"color: #dcdcaa;background: #1F1F1F\">C_MU_L<\/span><span style=\"color: #cccccc;background: #1F1F1F\">(c ,t);<\/span><\/p>\n<p style=\"margin: 0in;line-height: 14pt;font-family: Consolas;font-size: 10.5pt\"><span style=\"color: #cccccc;background: #1F1F1F\"><span>&nbsp;&nbsp;&nbsp; <\/span>k_pcm <\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">= <\/span><span style=\"color: #dcdcaa;background: #1F1F1F\">C_K_L<\/span><span style=\"color: #cccccc;background: #1F1F1F\">(c, t);<\/span><\/p>\n<p style=\"margin: 0in;line-height: 14pt;font-family: Calibri;font-size: 11.0pt\">&nbsp;<\/p>\n<p style=\"margin: 0in;line-height: 14pt;font-family: Consolas;font-size: 10.5pt\"><span style=\"color: #cccccc;background: #1F1F1F\"><span>&nbsp;&nbsp;&nbsp; <\/span>Re_d <\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">=<\/span><span style=\"color: #cccccc;background: #1F1F1F\"> (rho_pcm <\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">* <\/span><span style=\"color: #dcdcaa;background: #1F1F1F\">sqrt<\/span><span style=\"color: #cccccc;background: #1F1F1F\">(u<\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">*<\/span><span style=\"color: #cccccc;background: #1F1F1F\">u <\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">+<\/span><span style=\"color: #cccccc;background: #1F1F1F\"> v<\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">*<\/span><span style=\"color: #cccccc;background: #1F1F1F\">v) <\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">*<\/span><span style=\"color: #cccccc;background: #1F1F1F\">dl) <\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">\/<\/span><span style=\"color: #cccccc;background: #1F1F1F\"> (epsilon <\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">*<\/span><span style=\"color: #cccccc;background: #1F1F1F\"> mu_pcm);<\/span><\/p>\n<p style=\"margin: 0in;line-height: 14pt;font-family: Calibri;font-size: 11.0pt\">&nbsp;<\/p>\n<p style=\"margin: 0in;line-height: 14pt;font-family: Consolas;font-size: 10.5pt\"><span style=\"color: #cccccc;background: #1F1F1F\"><span>&nbsp;&nbsp;&nbsp; <\/span><\/span><span style=\"color: #c586c0;background: #1F1F1F\">if<\/span><span style=\"color: #cccccc;background: #1F1F1F\"> (Re_d <\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">&gt; <\/span><span style=\"color: #b5cea8;background: #1F1F1F\">0 <\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">&amp;&amp;<\/span><span style=\"color: #cccccc;background: #1F1F1F\"> Re_d <\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">&lt;= <\/span><span style=\"color: #b5cea8;background: #1F1F1F\">40<\/span><span style=\"color: #cccccc;background: #1F1F1F\">)<\/span><\/p>\n<p style=\"margin: 0in;line-height: 14pt;font-family: Consolas;font-size: 10.5pt\"><span style=\"color: #cccccc;background: #1F1F1F\"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>local_h_sfq <\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">=<\/span><span style=\"color: #cccccc;background: #1F1F1F\"> (<\/span><span style=\"color: #b5cea8;background: #1F1F1F\">0.76 <\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">* <\/span><span style=\"color: #dcdcaa;background: #1F1F1F\">pow<\/span><span style=\"color: #cccccc;background: #1F1F1F\">(Re_d, <\/span><span style=\"color: #b5cea8;background: #1F1F1F\">0.4<\/span><span style=\"color: #cccccc;background: #1F1F1F\">) <\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">* <\/span><span style=\"color: #dcdcaa;background: #1F1F1F\">pow<\/span><span style=\"color: #cccccc;background: #1F1F1F\">(pr, <\/span><span style=\"color: #b5cea8;background: #1F1F1F\">0.37<\/span><span style=\"color: #cccccc;background: #1F1F1F\">) <\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">*<\/span><span style=\"color: #cccccc;background: #1F1F1F\"> k_pcm)<\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">\/<\/span><span style=\"color: #cccccc;background: #1F1F1F\">dl;<\/span><\/p>\n<p style=\"margin: 0in;line-height: 14pt;font-family: Consolas;font-size: 10.5pt\"><span style=\"color: #cccccc;background: #1F1F1F\"><span>&nbsp;&nbsp;&nbsp; <\/span><\/span><span style=\"color: #c586c0;background: #1F1F1F\">else if<\/span><span style=\"color: #cccccc;background: #1F1F1F\"> (Re_d <\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">&gt; <\/span><span style=\"color: #b5cea8;background: #1F1F1F\">40 <\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">&amp;&amp;<\/span><span style=\"color: #cccccc;background: #1F1F1F\"> Re_d <\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">&lt;= <\/span><span style=\"color: #b5cea8;background: #1F1F1F\">1000<\/span><span style=\"color: #cccccc;background: #1F1F1F\">)<\/span><\/p>\n<p style=\"margin: 0in;line-height: 14pt;font-family: Consolas;font-size: 10.5pt\"><span style=\"color: #cccccc;background: #1F1F1F\"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>local_h_sfq <\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">=<\/span><span style=\"color: #cccccc;background: #1F1F1F\"> (<\/span><span style=\"color: #b5cea8;background: #1F1F1F\">0.52 <\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">* <\/span><span style=\"color: #dcdcaa;background: #1F1F1F\">pow<\/span><span style=\"color: #cccccc;background: #1F1F1F\">(Re_d, <\/span><span style=\"color: #b5cea8;background: #1F1F1F\">0.5<\/span><span style=\"color: #cccccc;background: #1F1F1F\">) <\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">* <\/span><span style=\"color: #dcdcaa;background: #1F1F1F\">pow<\/span><span style=\"color: #cccccc;background: #1F1F1F\">(pr, <\/span><span style=\"color: #b5cea8;background: #1F1F1F\">0.37<\/span><span style=\"color: #cccccc;background: #1F1F1F\">) <\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">*<\/span><span style=\"color: #cccccc;background: #1F1F1F\"> k_pcm)<\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">\/<\/span><span style=\"color: #cccccc;background: #1F1F1F\">dl;<\/span><\/p>\n<p style=\"margin: 0in;line-height: 14pt;font-family: Consolas;font-size: 10.5pt\"><span style=\"color: #cccccc;background: #1F1F1F\"><span>&nbsp;&nbsp;&nbsp; <\/span><\/span><span style=\"color: #c586c0;background: #1F1F1F\">else if<\/span><span style=\"color: #cccccc;background: #1F1F1F\"> (Re_d <\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">&gt; <\/span><span style=\"color: #b5cea8;background: #1F1F1F\">1000 <\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">&amp;&amp;<\/span><span style=\"color: #cccccc;background: #1F1F1F\"> Re_d <\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">&lt;= <\/span><span style=\"color: #b5cea8;background: #1F1F1F\">20000<\/span><span style=\"color: #cccccc;background: #1F1F1F\">)<\/span><\/p>\n<p style=\"margin: 0in;line-height: 14pt;font-family: Consolas;font-size: 10.5pt\"><span style=\"color: #cccccc;background: #1F1F1F\"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>local_h_sfq <\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">=<\/span><span style=\"color: #cccccc;background: #1F1F1F\"> (<\/span><span style=\"color: #b5cea8;background: #1F1F1F\">0.26 <\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">* <\/span><span style=\"color: #dcdcaa;background: #1F1F1F\">pow<\/span><span style=\"color: #cccccc;background: #1F1F1F\">(Re_d, <\/span><span style=\"color: #b5cea8;background: #1F1F1F\">0.6<\/span><span style=\"color: #cccccc;background: #1F1F1F\">) <\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">* <\/span><span style=\"color: #dcdcaa;background: #1F1F1F\">pow<\/span><span style=\"color: #cccccc;background: #1F1F1F\">(pr, <\/span><span style=\"color: #b5cea8;background: #1F1F1F\">0.37<\/span><span style=\"color: #cccccc;background: #1F1F1F\">) <\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">*<\/span><span style=\"color: #cccccc;background: #1F1F1F\"> k_pcm)<\/span><span style=\"color: #d4d4d4;background: #1F1F1F\">\/<\/span><span style=\"color: #cccccc;background: #1F1F1F\">dl;<\/span><\/p>\n<p style=\"margin: 0in;line-height: 14pt;font-family: Consolas;font-size: 10.5pt\"><span style=\"color: #cccccc;background: #1F1F1F\"><span>&nbsp;&nbsp;&nbsp; <\/span><\/span><span style=\"color: #c586c0;background: #1F1F1F\">else <\/span><\/p>\n<p style=\"margin: 0in;line-height: 14pt;font-family: Consolas;font-size: 10.5pt;color: #cccccc\"><span style=\"background: #1F1F1F\"><span>&nbsp;&nbsp;&nbsp; <\/span><\/span><\/p>\n<p style=\"margin: 0in;line-height: 14pt;font-family: Consolas;font-size: 10.5pt\"><span style=\"color: #cccccc;background: #1F1F1F\"><span>&nbsp;&nbsp;&nbsp; <\/span><\/span><span style=\"color: #c586c0;background: #1F1F1F\">return<\/span><span style=\"color: #cccccc;background: #1F1F1F\"> local_h_sfq;<\/span><\/p>\n<p style=\"margin: 0in;line-height: 14pt;font-family: Consolas;font-size: 10.5pt;color: #cccccc\"><span style=\"background: #1F1F1F\">}<\/span><\/p>\n<p><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/10\/17-10-2023-1697565144-mceclip0.png\"><\/p>\n","protected":false},"template":"","class_list":["post-311896","topic","type-topic","status-closed","hentry","topic-tag-fluent","topic-tag-pcm-charging-discharging-2","topic-tag-porosity-1","topic-tag-porous","topic-tag-udf"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"Hello, I am trying to create a UDF to fit a numerical model which must be applied as UDFs in ANSYS Fluent to model a phase change material in a porous medium. I have attached the mathematical model I am trying to follow as well as my current code. I am currently stuck on getting\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/udf-for-interstitial-heat-transfer-coefficient-in-non-equilibrium-porous-media\/\" \/>\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=\"UDF for Interstitial heat transfer coefficient in non equilibrium porous media | Ansys Learning Forum\" \/>\n\t\t<meta property=\"og:description\" content=\"Hello, I am trying to create a UDF to fit a numerical model which must be applied as UDFs in ANSYS Fluent to model a phase change material in a porous medium. I have attached the mathematical model I am trying to follow as well as my current code. I am currently stuck on getting\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/udf-for-interstitial-heat-transfer-coefficient-in-non-equilibrium-porous-media\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2023\/10\/17-10-2023-1697565144-mceclip0.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2023\/10\/17-10-2023-1697565144-mceclip0.png\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2023-10-17T17:56:04+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2023-10-17T17:56:04+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"UDF for Interstitial heat transfer coefficient in non equilibrium porous media | Ansys Learning Forum\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Hello, I am trying to create a UDF to fit a numerical model which must be applied as UDFs in ANSYS Fluent to model a phase change material in a porous medium. I have attached the mathematical model I am trying to follow as well as my current code. I am currently stuck on getting\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2023\/10\/17-10-2023-1697565144-mceclip0.png\" \/>\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\\\/udf-for-interstitial-heat-transfer-coefficient-in-non-equilibrium-porous-media\\\/#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\\\/udf-for-interstitial-heat-transfer-coefficient-in-non-equilibrium-porous-media\\\/#listItem\",\"name\":\"UDF for Interstitial heat transfer coefficient in non equilibrium porous media\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"name\":\"Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/udf-for-interstitial-heat-transfer-coefficient-in-non-equilibrium-porous-media\\\/#listItem\",\"position\":4,\"name\":\"UDF for Interstitial heat transfer coefficient in non equilibrium porous media\",\"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\\\/udf-for-interstitial-heat-transfer-coefficient-in-non-equilibrium-porous-media\\\/#webpage\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/udf-for-interstitial-heat-transfer-coefficient-in-non-equilibrium-porous-media\\\/\",\"name\":\"UDF for Interstitial heat transfer coefficient in non equilibrium porous media | Ansys Learning Forum\",\"description\":\"Hello, I am trying to create a UDF to fit a numerical model which must be applied as UDFs in ANSYS Fluent to model a phase change material in a porous medium. I have attached the mathematical model I am trying to follow as well as my current code. I am currently stuck on getting\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/udf-for-interstitial-heat-transfer-coefficient-in-non-equilibrium-porous-media\\\/#breadcrumblist\"},\"datePublished\":\"2023-10-17T17:56:04+00:00\",\"dateModified\":\"2023-10-17T17:56:04+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":"UDF for Interstitial heat transfer coefficient in non equilibrium porous media | Ansys Learning Forum","description":"Hello, I am trying to create a UDF to fit a numerical model which must be applied as UDFs in ANSYS Fluent to model a phase change material in a porous medium. I have attached the mathematical model I am trying to follow as well as my current code. I am currently stuck on getting","canonical_url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/udf-for-interstitial-heat-transfer-coefficient-in-non-equilibrium-porous-media\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/udf-for-interstitial-heat-transfer-coefficient-in-non-equilibrium-porous-media\/#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\/udf-for-interstitial-heat-transfer-coefficient-in-non-equilibrium-porous-media\/#listItem","name":"UDF for Interstitial heat transfer coefficient in non equilibrium porous media"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","name":"Topics"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/udf-for-interstitial-heat-transfer-coefficient-in-non-equilibrium-porous-media\/#listItem","position":4,"name":"UDF for Interstitial heat transfer coefficient in non equilibrium porous media","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\/udf-for-interstitial-heat-transfer-coefficient-in-non-equilibrium-porous-media\/#webpage","url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/udf-for-interstitial-heat-transfer-coefficient-in-non-equilibrium-porous-media\/","name":"UDF for Interstitial heat transfer coefficient in non equilibrium porous media | Ansys Learning Forum","description":"Hello, I am trying to create a UDF to fit a numerical model which must be applied as UDFs in ANSYS Fluent to model a phase change material in a porous medium. I have attached the mathematical model I am trying to follow as well as my current code. I am currently stuck on getting","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#website"},"breadcrumb":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/udf-for-interstitial-heat-transfer-coefficient-in-non-equilibrium-porous-media\/#breadcrumblist"},"datePublished":"2023-10-17T17:56:04+00:00","dateModified":"2023-10-17T17:56:04+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":"UDF for Interstitial heat transfer coefficient in non equilibrium porous media | Ansys Learning Forum","og:description":"Hello, I am trying to create a UDF to fit a numerical model which must be applied as UDFs in ANSYS Fluent to model a phase change material in a porous medium. I have attached the mathematical model I am trying to follow as well as my current code. I am currently stuck on getting","og:url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/udf-for-interstitial-heat-transfer-coefficient-in-non-equilibrium-porous-media\/","og:image":"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2023\/10\/17-10-2023-1697565144-mceclip0.png","og:image:secure_url":"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2023\/10\/17-10-2023-1697565144-mceclip0.png","article:published_time":"2023-10-17T17:56:04+00:00","article:modified_time":"2023-10-17T17:56:04+00:00","twitter:card":"summary_large_image","twitter:title":"UDF for Interstitial heat transfer coefficient in non equilibrium porous media | Ansys Learning Forum","twitter:description":"Hello, I am trying to create a UDF to fit a numerical model which must be applied as UDFs in ANSYS Fluent to model a phase change material in a porous medium. I have attached the mathematical model I am trying to follow as well as my current code. I am currently stuck on getting","twitter:image":"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2023\/10\/17-10-2023-1697565144-mceclip0.png"},"aioseo_meta_data":{"post_id":"311896","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 17:40:11","updated":"2024-10-28 17:40:11","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\tUDF for Interstitial heat transfer coefficient in non equilibrium porous media\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":"UDF for Interstitial heat transfer coefficient in non equilibrium porous media","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/udf-for-interstitial-heat-transfer-coefficient-in-non-equilibrium-porous-media\/"}],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["33161","14311"],"_bbp_author_ip":["23.52.43.81"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_bbp_likes_count":["1"],"_btv_view_count":["853"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["311896"],"_bbp_forum_id":["27825"],"_bbp_engagement":["14311","33161"],"_bbp_voice_count":["2"],"_bbp_reply_count":["1"],"_bbp_last_reply_id":["313624"],"_bbp_last_active_id":["313624"],"_bbp_last_active_time":["2023-10-27 11:31:58"]},"test":"2462918cstudent-gla-ac-uk"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/311896","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\/311896\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=311896"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}