


{"id":462483,"date":"2026-08-11T10:57:56","date_gmt":"2026-08-11T10:57:56","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/compile-and-load-a-udf-automatically-when-running-fluent-on-an-hpc-cluster\/"},"modified":"2026-08-11T10:57:56","modified_gmt":"2026-08-11T10:57:56","slug":"compile-and-load-a-udf-automatically-when-running-fluent-on-an-hpc-cluster","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/compile-and-load-a-udf-automatically-when-running-fluent-on-an-hpc-cluster\/","title":{"rendered":"Compile and load a UDF automatically when running Fluent on an HPC cluster"},"content":{"rendered":"<div>I have a transient Fluent simulation with a compiled UDF (`decomp_fff1.c`) that has been successfully compiled and loaded on my Windows workstation. The UDF function is `ozone_decomposition_source` and is assigned to the appropriate cell zone.<\/div>\n<div>&nbsp;<\/div>\n<div>I now want to run the same case on an HPC cluster (Eddie), where Fluent runs on Linux.<\/div>\n<div>&nbsp;<\/div>\n<div>I understand that the Windows `libudf` should not be transferred to the Linux cluster and that the `.c` source file should instead be compiled on Eddie to generate a Linux-compatible `libudf`.<\/div>\n<div>&nbsp;<\/div>\n<div>What is the recommended way to include the UDF compilation\/loading in a Fluent journal (`.jou`) so that the UDF is automatically compiled and loaded when the case is submitted as a non-interactive HPC job?**<\/div>\n<div>&nbsp;<\/div>\n<div>I have recorded the compilation process on Windows, but Fluent generates `cx-gui-do` commands such as:&nbsp;`(cx-gui-do cx-activate-item &#8220;Compiled UDFs*Frame8*PushButton2(Build)&#8221;)`&nbsp;rather than a simple TUI command.<\/div>\n<div>&nbsp;<\/div>\n<div>Is there a recommended TUI\/journal command for compiling a `.c` UDF on Linux?<\/div>\n<div>&nbsp;<\/div>\n<div>Thank you!<\/div>\n<p>&nbsp;<\/p>\n","protected":false},"template":"","class_list":["post-462483","topic","type-topic","status-publish","hentry","topic-tag-udf-compilation"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"I have a transient Fluent simulation with a compiled UDF (`decomp_fff1.c`) that has been successfully compiled and loaded on my Windows workstation. The UDF function is `ozone_decomposition_source` and is assigned to the appropriate cell zone. I now want to run the same case on an HPC cluster (Eddie), where Fluent runs on Linux.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/compile-and-load-a-udf-automatically-when-running-fluent-on-an-hpc-cluster\/\" \/>\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=\"Compile and load a UDF automatically when running Fluent on an HPC cluster | Ansys Learning Forum\" \/>\n\t\t<meta property=\"og:description\" content=\"I have a transient Fluent simulation with a compiled UDF (`decomp_fff1.c`) that has been successfully compiled and loaded on my Windows workstation. The UDF function is `ozone_decomposition_source` and is assigned to the appropriate cell zone. I now want to run the same case on an HPC cluster (Eddie), where Fluent runs on Linux.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/compile-and-load-a-udf-automatically-when-running-fluent-on-an-hpc-cluster\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2026-08-11T10:57:56+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-08-11T10:57:56+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Compile and load a UDF automatically when running Fluent on an HPC cluster | Ansys Learning Forum\" \/>\n\t\t<meta name=\"twitter:description\" content=\"I have a transient Fluent simulation with a compiled UDF (`decomp_fff1.c`) that has been successfully compiled and loaded on my Windows workstation. The UDF function is `ozone_decomposition_source` and is assigned to the appropriate cell zone. I now want to run the same case on an HPC cluster (Eddie), where Fluent runs on Linux.\" \/>\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\\\/compile-and-load-a-udf-automatically-when-running-fluent-on-an-hpc-cluster\\\/#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\\\/udf-compilation\\\/#listItem\",\"name\":\"udf-compilation\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/udf-compilation\\\/#listItem\",\"position\":3,\"name\":\"udf-compilation\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/udf-compilation\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/compile-and-load-a-udf-automatically-when-running-fluent-on-an-hpc-cluster\\\/#listItem\",\"name\":\"Compile and load a UDF automatically when running Fluent on an HPC cluster\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"name\":\"Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/compile-and-load-a-udf-automatically-when-running-fluent-on-an-hpc-cluster\\\/#listItem\",\"position\":4,\"name\":\"Compile and load a UDF automatically when running Fluent on an HPC cluster\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/udf-compilation\\\/#listItem\",\"name\":\"udf-compilation\"}}]},{\"@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\\\/compile-and-load-a-udf-automatically-when-running-fluent-on-an-hpc-cluster\\\/#webpage\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/compile-and-load-a-udf-automatically-when-running-fluent-on-an-hpc-cluster\\\/\",\"name\":\"Compile and load a UDF automatically when running Fluent on an HPC cluster | Ansys Learning Forum\",\"description\":\"I have a transient Fluent simulation with a compiled UDF (`decomp_fff1.c`) that has been successfully compiled and loaded on my Windows workstation. The UDF function is `ozone_decomposition_source` and is assigned to the appropriate cell zone. I now want to run the same case on an HPC cluster (Eddie), where Fluent runs on Linux.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/compile-and-load-a-udf-automatically-when-running-fluent-on-an-hpc-cluster\\\/#breadcrumblist\"},\"datePublished\":\"2026-08-11T10:57:56+00:00\",\"dateModified\":\"2026-08-11T10:57:56+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":"Compile and load a UDF automatically when running Fluent on an HPC cluster | Ansys Learning Forum","description":"I have a transient Fluent simulation with a compiled UDF (`decomp_fff1.c`) that has been successfully compiled and loaded on my Windows workstation. The UDF function is `ozone_decomposition_source` and is assigned to the appropriate cell zone. I now want to run the same case on an HPC cluster (Eddie), where Fluent runs on Linux.","canonical_url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/compile-and-load-a-udf-automatically-when-running-fluent-on-an-hpc-cluster\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/compile-and-load-a-udf-automatically-when-running-fluent-on-an-hpc-cluster\/#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\/udf-compilation\/#listItem","name":"udf-compilation"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/udf-compilation\/#listItem","position":3,"name":"udf-compilation","item":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/udf-compilation\/","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/compile-and-load-a-udf-automatically-when-running-fluent-on-an-hpc-cluster\/#listItem","name":"Compile and load a UDF automatically when running Fluent on an HPC cluster"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","name":"Topics"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/compile-and-load-a-udf-automatically-when-running-fluent-on-an-hpc-cluster\/#listItem","position":4,"name":"Compile and load a UDF automatically when running Fluent on an HPC cluster","previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/udf-compilation\/#listItem","name":"udf-compilation"}}]},{"@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\/compile-and-load-a-udf-automatically-when-running-fluent-on-an-hpc-cluster\/#webpage","url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/compile-and-load-a-udf-automatically-when-running-fluent-on-an-hpc-cluster\/","name":"Compile and load a UDF automatically when running Fluent on an HPC cluster | Ansys Learning Forum","description":"I have a transient Fluent simulation with a compiled UDF (`decomp_fff1.c`) that has been successfully compiled and loaded on my Windows workstation. The UDF function is `ozone_decomposition_source` and is assigned to the appropriate cell zone. I now want to run the same case on an HPC cluster (Eddie), where Fluent runs on Linux.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#website"},"breadcrumb":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/compile-and-load-a-udf-automatically-when-running-fluent-on-an-hpc-cluster\/#breadcrumblist"},"datePublished":"2026-08-11T10:57:56+00:00","dateModified":"2026-08-11T10:57:56+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":"Compile and load a UDF automatically when running Fluent on an HPC cluster | Ansys Learning Forum","og:description":"I have a transient Fluent simulation with a compiled UDF (`decomp_fff1.c`) that has been successfully compiled and loaded on my Windows workstation. The UDF function is `ozone_decomposition_source` and is assigned to the appropriate cell zone. I now want to run the same case on an HPC cluster (Eddie), where Fluent runs on Linux.","og:url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/compile-and-load-a-udf-automatically-when-running-fluent-on-an-hpc-cluster\/","article:published_time":"2026-08-11T10:57:56+00:00","article:modified_time":"2026-08-11T10:57:56+00:00","twitter:card":"summary_large_image","twitter:title":"Compile and load a UDF automatically when running Fluent on an HPC cluster | Ansys Learning Forum","twitter:description":"I have a transient Fluent simulation with a compiled UDF (`decomp_fff1.c`) that has been successfully compiled and loaded on my Windows workstation. The UDF function is `ozone_decomposition_source` and is assigned to the appropriate cell zone. I now want to run the same case on an HPC cluster (Eddie), where Fluent runs on Linux."},"aioseo_meta_data":[],"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\/udf-compilation\/\" title=\"udf-compilation\">udf-compilation<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tCompile and load a UDF automatically when running Fluent on an HPC cluster\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":"udf-compilation","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/udf-compilation\/"},{"label":"Compile and load a UDF automatically when running Fluent on an HPC cluster","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/compile-and-load-a-udf-automatically-when-running-fluent-on-an-hpc-cluster\/"}],"acf":[],"custom_fields":[{"0":{"_bbp_forum_id":["27792"],"_bbp_topic_id":["462483"],"_bbp_subscription":["547086"],"_bbp_author_ip":[null],"_bbp_last_reply_id":["0"],"_bbp_last_active_id":["462483"],"_bbp_last_active_time":["2026-08-11 13:00:14"],"_bbp_reply_count":["2"],"_bbp_reply_count_hidden":["0"],"_bbp_engagement":["1"],"_bbp_likes_count":["0"],"_btv_view_count":["69"],"application":["FLUENT"],"emailnotification":[null],"_bbp_topic_status":["unanswered"]},"test":"a-y-al-wardisms-ed-ac-uk"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/462483","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\/462483\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=462483"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}