


{"id":377878,"date":"2024-08-11T21:57:45","date_gmt":"2024-08-11T21:57:45","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/dpm-udf-compiling-error\/"},"modified":"2024-08-12T17:05:32","modified_gmt":"2024-08-12T17:05:32","slug":"dpm-udf-compiling-error","status":"answered","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/dpm-udf-compiling-error\/","title":{"rendered":"DPM UDF Compiling Error"},"content":{"rendered":"<p>I am writing a UDF that contains both a DPM law and DPM sources. I have two DPM injections of different particle types and at different locations, one injection is intended to represent CO2 bubbles that will dissolve in the aqueous phase which I had previously gotten working. The second injection is solid particles that are intended to grow in size based on the concentration of a corresponding species in the continuous phase. In order to distinguish between the two seperate injections I am trying to use an if-else statement shown below, with the associated &#8220;include&#8221; statements. When I try to compile using Fluent&#8217;s built in compiler I get this error.<\/p>\n<p>lld-link: error: undefined symbol: TP_EVAP_SECIES_INDEX<\/p>\n<p>This would seem to indicate that that TP_EVAP_SPECIES_INDEX is not a recognized macro despite it being listed in the Fluent customization guide and me having the dpm_types being loaded in the UDF. If anyone understands why this is happening I would greatly appreciate the help.&nbsp;<\/p>\n<div>\n<div>\n<div>\n<div>#include &#8220;udf.h&#8221;<\/div>\n<div>#include &#8220;dpm.h&#8221;<\/div>\n<div>#include &#8220;dpm_types.h&#8221;<\/div>\n<\/div>\n<\/div>\n<div>if (TP_EVAP_SECIES_INDEX(tp) == 0)<\/div>\n<\/div>\n","protected":false},"template":"","class_list":["post-377878","topic","type-topic","status-answered","hentry"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["13595","199"],"_bbp_author_ip":["75.188.22.244"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["105"],"_bbp_topic_status":["answered"],"_bbp_notification_enabled":["13595","13595","13595"],"_bbp_topic_id":["377878"],"_bbp_forum_id":["27792"],"_bbp_engagement":["199","13595"],"_bbp_voice_count":["2"],"_bbp_last_reply_id":["378078"],"_bbp_last_active_id":["378078"],"_bbp_last_active_time":["2024-08-13 08:41:34"]},"test":"ac468013ohio-edu"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/377878","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":1,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/377878\/revisions"}],"predecessor-version":[{"id":377993,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/377878\/revisions\/377993"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=377878"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}