


{"id":357499,"date":"2024-03-17T21:22:47","date_gmt":"2024-03-17T21:22:47","guid":{"rendered":"\/forum\/forums\/topic\/udf-error-member-reference-base-type-void-is-not-a-structure-or-union\/"},"modified":"2024-03-17T21:22:47","modified_gmt":"2024-03-17T21:22:47","slug":"udf-error-member-reference-base-type-void-is-not-a-structure-or-union","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/udf-error-member-reference-base-type-void-is-not-a-structure-or-union\/","title":{"rendered":"UDF error: member reference base type &#8216;void&#8217; is not a structure or union"},"content":{"rendered":"<p>Hi there,<\/p>\n<p>I&#8217;ve run into a repeated error when attempting to compile UDF using Ansys 2023 R2 Fluent&#8217;s built in compiler Clang. The code has been sourced from Sandia Gov and error message in Ansys when compiling is as the following:<\/p>\n<p>uvdose_par.c(42,50): error: member reference base type &#8216;void&#8217; is not a structure or union<br \/>par_fprintf_head(fp,&#8221;(%s %d)\\n&#8221;,thread-&gt;head-&gt;dpm_summary.sort_file_name,14);<\/p>\n<p>It seems to indicate that line &#8221; par_fprintf_head(fp,&#8221;(%s %d)\\n&#8221;,thread-&gt;head-&gt;dpm_summary.sort_file_name,14);&#8221; of my code below has a problem. Here is part of the code of concern:<\/p>\n<p>if (header)<br \/>{<br \/>if (NNULLP(thread))<br \/>par_fprintf_head(fp,&#8221;(%s %d)\\n&#8221;,thread-&gt;head-&gt;dpm_summary.sort_file_name,14);<br \/>else<br \/>par_fprintf_head(fp,&#8221;(%s %d)\\n&#8221;,plane-&gt;sort_file_name,14);<\/p>\n<p>par_fprintf_head(fp,&#8221;(%10s %10s %10s %10s %10s %10s %10s&#8221;<br \/>&#8221; %10s %10s %10s %10s %10s %10s %10s %s)\\n&#8221;,<br \/>&#8220;X0&#8243;,&#8221;Y0&#8243;,&#8221;Z0&#8221;,<br \/>&#8220;X&#8221;,&#8221;Y&#8221;,&#8221;Z&#8221;,&#8221;U&#8221;,&#8221;V&#8221;,&#8221;W&#8221;,&#8221;diameter&#8221;,&#8221;T&#8221;,&#8221;mass-flow&#8221;,<br \/>&#8220;time&#8221;,&#8221;UV-Dosage&#8221;,&#8221;name&#8221;);<br \/>}<\/p>\n<p>I&#8217;ve had a talk with the individual who made this code, yet they have only mentioned to me that &#8220;The UDF was developed by Sandia based on the version of Fluent available in 2008. Ansys made some changes to their libraries when they changed HPC licensing. You&rsquo;ll have to update the UDF to run on the current version of fluent&#8221;.<\/p>\n<p>I&#8217;ve tried and searched for weeks to solve this error yet have been unable to do so. My deadline to utilize this UDF is soon approaching, and was hoping if anybody is able to help. I would sincerely appreciate it if someone could attempt to help me solve this issue or even reply!<\/p>\n<p>Thank you so much for your precious time.<\/p>\n<p>Kind regards,<br \/>Niall<\/p>\n","protected":false},"template":"","class_list":["post-357499","topic","type-topic","status-closed","hentry","topic-tag-fluent-ansys-1","topic-tag-error","topic-tag-udf","topic-tag-udf-compilation","topic-tag-udf-compiler-problem","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=\"Hi there,I&#039;ve run into a repeated error when attempting to compile UDF using Ansys 2023 R2 Fluent&#039;s built in compiler Clang. The code has been sourced from Sandia Gov and error message in Ansys when compiling is as the following:uvdose_par.c(42,50): error: member reference base type &#039;void&#039; is not a structure or unionpar_fprintf_head(fp,&quot;(%s %d)\\n&quot;,thread-&gt;head-&gt;dpm_summary.sort_file_name,14);It seems to\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/udf-error-member-reference-base-type-void-is-not-a-structure-or-union\/\" \/>\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 error: member reference base type \u2018void\u2019 is not a structure or union | Ansys Learning Forum\" \/>\n\t\t<meta property=\"og:description\" content=\"Hi there,I&#039;ve run into a repeated error when attempting to compile UDF using Ansys 2023 R2 Fluent&#039;s built in compiler Clang. The code has been sourced from Sandia Gov and error message in Ansys when compiling is as the following:uvdose_par.c(42,50): error: member reference base type &#039;void&#039; is not a structure or unionpar_fprintf_head(fp,&quot;(%s %d)\\n&quot;,thread-&gt;head-&gt;dpm_summary.sort_file_name,14);It seems to\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/udf-error-member-reference-base-type-void-is-not-a-structure-or-union\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2024-03-17T21:22:47+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-03-17T21:22:47+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"UDF error: member reference base type \u2018void\u2019 is not a structure or union | Ansys Learning Forum\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Hi there,I&#039;ve run into a repeated error when attempting to compile UDF using Ansys 2023 R2 Fluent&#039;s built in compiler Clang. The code has been sourced from Sandia Gov and error message in Ansys when compiling is as the following:uvdose_par.c(42,50): error: member reference base type &#039;void&#039; is not a structure or unionpar_fprintf_head(fp,&quot;(%s %d)\\n&quot;,thread-&gt;head-&gt;dpm_summary.sort_file_name,14);It seems to\" \/>\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-error-member-reference-base-type-void-is-not-a-structure-or-union\\\/#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\\\/#listItem\",\"name\":\"udf\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/udf\\\/#listItem\",\"position\":3,\"name\":\"udf\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/udf\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/udf-error-member-reference-base-type-void-is-not-a-structure-or-union\\\/#listItem\",\"name\":\"UDF error: member reference base type &#8216;void&#8217; is not a structure or union\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"name\":\"Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/udf-error-member-reference-base-type-void-is-not-a-structure-or-union\\\/#listItem\",\"position\":4,\"name\":\"UDF error: member reference base type &#8216;void&#8217; is not a structure or union\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/udf\\\/#listItem\",\"name\":\"udf\"}}]},{\"@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-error-member-reference-base-type-void-is-not-a-structure-or-union\\\/#webpage\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/udf-error-member-reference-base-type-void-is-not-a-structure-or-union\\\/\",\"name\":\"UDF error: member reference base type \\u2018void\\u2019 is not a structure or union | Ansys Learning Forum\",\"description\":\"Hi there,I've run into a repeated error when attempting to compile UDF using Ansys 2023 R2 Fluent's built in compiler Clang. The code has been sourced from Sandia Gov and error message in Ansys when compiling is as the following:uvdose_par.c(42,50): error: member reference base type 'void' is not a structure or unionpar_fprintf_head(fp,\\\"(%s %d)\\\\n\\\",thread->head->dpm_summary.sort_file_name,14);It seems to\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/udf-error-member-reference-base-type-void-is-not-a-structure-or-union\\\/#breadcrumblist\"},\"datePublished\":\"2024-03-17T21:22:47+00:00\",\"dateModified\":\"2024-03-17T21: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":"UDF error: member reference base type \u2018void\u2019 is not a structure or union | Ansys Learning Forum","description":"Hi there,I've run into a repeated error when attempting to compile UDF using Ansys 2023 R2 Fluent's built in compiler Clang. The code has been sourced from Sandia Gov and error message in Ansys when compiling is as the following:uvdose_par.c(42,50): error: member reference base type 'void' is not a structure or unionpar_fprintf_head(fp,\"(%s %d)\\n\",thread->head->dpm_summary.sort_file_name,14);It seems to","canonical_url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/udf-error-member-reference-base-type-void-is-not-a-structure-or-union\/","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-error-member-reference-base-type-void-is-not-a-structure-or-union\/#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\/#listItem","name":"udf"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/udf\/#listItem","position":3,"name":"udf","item":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/udf\/","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/udf-error-member-reference-base-type-void-is-not-a-structure-or-union\/#listItem","name":"UDF error: member reference base type &#8216;void&#8217; is not a structure or union"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","name":"Topics"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/udf-error-member-reference-base-type-void-is-not-a-structure-or-union\/#listItem","position":4,"name":"UDF error: member reference base type &#8216;void&#8217; is not a structure or union","previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/udf\/#listItem","name":"udf"}}]},{"@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-error-member-reference-base-type-void-is-not-a-structure-or-union\/#webpage","url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/udf-error-member-reference-base-type-void-is-not-a-structure-or-union\/","name":"UDF error: member reference base type \u2018void\u2019 is not a structure or union | Ansys Learning Forum","description":"Hi there,I've run into a repeated error when attempting to compile UDF using Ansys 2023 R2 Fluent's built in compiler Clang. The code has been sourced from Sandia Gov and error message in Ansys when compiling is as the following:uvdose_par.c(42,50): error: member reference base type 'void' is not a structure or unionpar_fprintf_head(fp,\"(%s %d)\\n\",thread->head->dpm_summary.sort_file_name,14);It seems to","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#website"},"breadcrumb":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/udf-error-member-reference-base-type-void-is-not-a-structure-or-union\/#breadcrumblist"},"datePublished":"2024-03-17T21:22:47+00:00","dateModified":"2024-03-17T21: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":"UDF error: member reference base type \u2018void\u2019 is not a structure or union | Ansys Learning Forum","og:description":"Hi there,I've run into a repeated error when attempting to compile UDF using Ansys 2023 R2 Fluent's built in compiler Clang. The code has been sourced from Sandia Gov and error message in Ansys when compiling is as the following:uvdose_par.c(42,50): error: member reference base type 'void' is not a structure or unionpar_fprintf_head(fp,&quot;(%s %d)\\n&quot;,thread-&gt;head-&gt;dpm_summary.sort_file_name,14);It seems to","og:url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/udf-error-member-reference-base-type-void-is-not-a-structure-or-union\/","article:published_time":"2024-03-17T21:22:47+00:00","article:modified_time":"2024-03-17T21:22:47+00:00","twitter:card":"summary_large_image","twitter:title":"UDF error: member reference base type \u2018void\u2019 is not a structure or union | Ansys Learning Forum","twitter:description":"Hi there,I've run into a repeated error when attempting to compile UDF using Ansys 2023 R2 Fluent's built in compiler Clang. The code has been sourced from Sandia Gov and error message in Ansys when compiling is as the following:uvdose_par.c(42,50): error: member reference base type 'void' is not a structure or unionpar_fprintf_head(fp,&quot;(%s %d)\\n&quot;,thread-&gt;head-&gt;dpm_summary.sort_file_name,14);It seems to"},"aioseo_meta_data":{"post_id":"357499","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 16:53:46","updated":"2024-10-28 16:53:46","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\/udf\/\" title=\"udf\">udf<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tUDF error: member reference base type \u2018void\u2019 is not a structure or union\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","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/udf\/"},{"label":"UDF error: member reference base type &#8216;void&#8217; is not a structure or union","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/udf-error-member-reference-base-type-void-is-not-a-structure-or-union\/"}],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["62851","199"],"_bbp_author_ip":["23.206.193.59"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_bbp_likes_count":["1"],"_btv_view_count":["557"],"_bbp_topic_status":["unanswered"],"_bbp_topic_id":["357499"],"_bbp_forum_id":["27792"],"_bbp_engagement":["199","62851"],"_bbp_voice_count":["2"],"_bbp_reply_count":["12"],"_bbp_last_reply_id":["360224"],"_bbp_last_active_id":["360224"],"_bbp_last_active_time":["2024-04-03 09:08:47"]},"test":"neel-shah-20ucl-ac-uk"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/357499","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\/357499\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=357499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}