


{"id":251871,"date":"2023-02-28T10:02:30","date_gmt":"2023-02-28T10:02:30","guid":{"rendered":"\/forum\/forums\/topic\/unable-to-hook-the-compiled-udf\/"},"modified":"2023-02-28T10:02:30","modified_gmt":"2023-02-28T10:02:30","slug":"unable-to-hook-the-compiled-udf","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/unable-to-hook-the-compiled-udf\/","title":{"rendered":"Unable to hook the compiled UDF"},"content":{"rendered":"<p>I am working on the problem of specifying anisotropic electric conductivity to the gas diffusion layer of a fuel cell, using the PEM Fuel Cell module that comes with Fluent. Since the module treats the electric-potential as UDS-0, the DEFINE_ANISOTROPIC_DIFFUSIVITY macro is required to specify the corresponding electric conductivity. The source code gives the appropriate modification areas and hints, and I made the changes in the appropriate locations in the source code. After recompiling the source code, the software did not prompt for errors, and the following is the complete code for that section. However, after I hook the compiled UDF to the GDL material and run it, the console pops up with the error &#8220;Error at Node X(0-7): No anisotropic UDS diffusivity option has been selected for difflayer &#8221; error report, and the software does not run. Here is how I hooked the UDF. I don&#8217;t know why this error message appears, does this mean that the UDF was not hooked successfully? After I modified this part of the code and compiled it as a separate UDF file, the same error is not reported by the software, but the same error occurs after mounting and running. Please help me!?<\/p>\n<p><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/02\/28-02-2023-1677577855-code.png\" alt=\"\"><\/p>\n<p><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/02\/28-02-2023-1677578229-hook.png\" alt=\"\"><\/p>\n","protected":false},"template":"","class_list":["post-251871","topic","type-topic","status-closed","hentry","topic-tag-udsudm","topic-tag-fluent","topic-tag-udf","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 am working on the problem of specifying anisotropic electric conductivity to the gas diffusion layer of a fuel cell, using the PEM Fuel Cell module that comes with Fluent. Since the module treats the electric-potential as UDS-0, the DEFINE_ANISOTROPIC_DIFFUSIVITY macro is required to specify the corresponding electric conductivity. The source code gives the appropriate\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/unable-to-hook-the-compiled-udf\/\" \/>\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=\"Unable to hook the compiled UDF | Ansys Learning Forum\" \/>\n\t\t<meta property=\"og:description\" content=\"I am working on the problem of specifying anisotropic electric conductivity to the gas diffusion layer of a fuel cell, using the PEM Fuel Cell module that comes with Fluent. Since the module treats the electric-potential as UDS-0, the DEFINE_ANISOTROPIC_DIFFUSIVITY macro is required to specify the corresponding electric conductivity. The source code gives the appropriate\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/unable-to-hook-the-compiled-udf\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2023\/02\/28-02-2023-1677577855-code.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2023\/02\/28-02-2023-1677577855-code.png\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2023-02-28T10:02:30+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2023-02-28T10:02:30+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Unable to hook the compiled UDF | Ansys Learning Forum\" \/>\n\t\t<meta name=\"twitter:description\" content=\"I am working on the problem of specifying anisotropic electric conductivity to the gas diffusion layer of a fuel cell, using the PEM Fuel Cell module that comes with Fluent. Since the module treats the electric-potential as UDS-0, the DEFINE_ANISOTROPIC_DIFFUSIVITY macro is required to specify the corresponding electric conductivity. The source code gives the appropriate\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2023\/02\/28-02-2023-1677577855-code.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\\\/unable-to-hook-the-compiled-udf\\\/#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\\\/unable-to-hook-the-compiled-udf\\\/#listItem\",\"name\":\"Unable to hook the compiled UDF\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"name\":\"Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/unable-to-hook-the-compiled-udf\\\/#listItem\",\"position\":4,\"name\":\"Unable to hook the compiled UDF\",\"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\\\/unable-to-hook-the-compiled-udf\\\/#webpage\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/unable-to-hook-the-compiled-udf\\\/\",\"name\":\"Unable to hook the compiled UDF | Ansys Learning Forum\",\"description\":\"I am working on the problem of specifying anisotropic electric conductivity to the gas diffusion layer of a fuel cell, using the PEM Fuel Cell module that comes with Fluent. Since the module treats the electric-potential as UDS-0, the DEFINE_ANISOTROPIC_DIFFUSIVITY macro is required to specify the corresponding electric conductivity. The source code gives the appropriate\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/unable-to-hook-the-compiled-udf\\\/#breadcrumblist\"},\"datePublished\":\"2023-02-28T10:02:30+00:00\",\"dateModified\":\"2023-02-28T10:02:30+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":"Unable to hook the compiled UDF | Ansys Learning Forum","description":"I am working on the problem of specifying anisotropic electric conductivity to the gas diffusion layer of a fuel cell, using the PEM Fuel Cell module that comes with Fluent. Since the module treats the electric-potential as UDS-0, the DEFINE_ANISOTROPIC_DIFFUSIVITY macro is required to specify the corresponding electric conductivity. The source code gives the appropriate","canonical_url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/unable-to-hook-the-compiled-udf\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/unable-to-hook-the-compiled-udf\/#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\/unable-to-hook-the-compiled-udf\/#listItem","name":"Unable to hook the compiled UDF"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","name":"Topics"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/unable-to-hook-the-compiled-udf\/#listItem","position":4,"name":"Unable to hook the compiled UDF","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\/unable-to-hook-the-compiled-udf\/#webpage","url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/unable-to-hook-the-compiled-udf\/","name":"Unable to hook the compiled UDF | Ansys Learning Forum","description":"I am working on the problem of specifying anisotropic electric conductivity to the gas diffusion layer of a fuel cell, using the PEM Fuel Cell module that comes with Fluent. Since the module treats the electric-potential as UDS-0, the DEFINE_ANISOTROPIC_DIFFUSIVITY macro is required to specify the corresponding electric conductivity. The source code gives the appropriate","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#website"},"breadcrumb":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/unable-to-hook-the-compiled-udf\/#breadcrumblist"},"datePublished":"2023-02-28T10:02:30+00:00","dateModified":"2023-02-28T10:02:30+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":"Unable to hook the compiled UDF | Ansys Learning Forum","og:description":"I am working on the problem of specifying anisotropic electric conductivity to the gas diffusion layer of a fuel cell, using the PEM Fuel Cell module that comes with Fluent. Since the module treats the electric-potential as UDS-0, the DEFINE_ANISOTROPIC_DIFFUSIVITY macro is required to specify the corresponding electric conductivity. The source code gives the appropriate","og:url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/unable-to-hook-the-compiled-udf\/","og:image":"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2023\/02\/28-02-2023-1677577855-code.png","og:image:secure_url":"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2023\/02\/28-02-2023-1677577855-code.png","article:published_time":"2023-02-28T10:02:30+00:00","article:modified_time":"2023-02-28T10:02:30+00:00","twitter:card":"summary_large_image","twitter:title":"Unable to hook the compiled UDF | Ansys Learning Forum","twitter:description":"I am working on the problem of specifying anisotropic electric conductivity to the gas diffusion layer of a fuel cell, using the PEM Fuel Cell module that comes with Fluent. Since the module treats the electric-potential as UDS-0, the DEFINE_ANISOTROPIC_DIFFUSIVITY macro is required to specify the corresponding electric conductivity. The source code gives the appropriate","twitter:image":"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2023\/02\/28-02-2023-1677577855-code.png"},"aioseo_meta_data":{"post_id":"251871","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 18:45:44","updated":"2024-10-28 18:45:44","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\tUnable to hook the compiled UDF\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":"Unable to hook the compiled UDF","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/unable-to-hook-the-compiled-udf\/"}],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["21232","199"],"_bbp_author_ip":["23.220.96.180"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["1444"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["251871"],"_bbp_forum_id":["27792"],"_bbp_engagement":["199","21232"],"_bbp_voice_count":["2"],"_bbp_reply_count":["21"],"_bbp_last_reply_id":["257383"],"_bbp_last_active_id":["257383"],"_bbp_last_active_time":["2023-03-14 12:01:02"]},"test":"201810100143mail-scut-edu-cn"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/251871","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\/251871\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=251871"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}