


{"id":54791,"date":"2021-04-28T04:02:17","date_gmt":"2021-04-28T04:02:17","guid":{"rendered":"\/forum\/forums\/topic\/udf-compile-error-in-udf_names-c\/"},"modified":"2021-04-28T04:02:17","modified_gmt":"2021-04-28T04:02:17","slug":"udf-compile-error-in-udf_names-c","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/udf-compile-error-in-udf_names-c\/","title":{"rendered":"UDF compile Error in udf_names.c"},"content":{"rendered":"<p>Hello everyone!nI&#8217;m trying to compile my UDF code to define the AC current density and Joule heat source term in an Electric Arc Furnace.nThe macros used include DEFINE_PROFILE\u3001DEFINE_SOURCE and DEFINE_EXECUTE_AT_END. nAll these macros worked well until yesterday. But after the computer experienced an unexpected power outage, the UDF code can&#8217;t work anymore.nWhen I compile the source file of the UDF,  something goes wrong. I get some errors from the console(see below)nSetting Post Processing and Surfaces information &#8230; Done.nCopied F:\\_ThreePhaseCurrent\\ReadyToGO_6_current_equation_4_14_LittlePoint_aircond_sourceterm.c to libudf\\srcnCreating user_nt.udf file for 3ddp_host &#8230;n(system copy \\ANSYS\\ANSYSI~1\\v180\\fluent\\fluent18.0.0\\src\\udf\\makefile_nt.udf libudf\\win64\\3ddp_host\\makefile )n\u00d2\u00d1\u00b8\u00b4\u00d6\u00c6 1 \u00b8\u00f6\u00ce\u00c4\u00bc\u00fe\u00a1\u00a3n(chdir libudf)(chdir win64\\3ddp_host)# Generating ud_io1.hnReadyToGO_6_current_equation_4_14_LittlePoint_aircond_sourceterm.cn..\\..\\src\\ReadyToGO_6_current_equation_4_14_LittlePoint_aircond_sourceterm.c : warning C4819: \u00b8\u00c3\u00ce\u00c4\u00bc\u00fe\u00b0\u00fc\u00ba\u00ac\u00b2\u00bb\u00c4\u00dc\u00d4\u00da\u00b5\u00b1\u00c7\u00b0\u00b4\u00fa\u00c2\u00eb\u00d2\u00b3(936)\u00d6\u00d0\u00b1\u00ed\u00ca\u00be\u00b5\u00c4\u00d7\u00d6\u00b7\u00fb\u00a1\u00a3\u00c7\u00eb\u00bd\u00ab\u00b8\u00c3\u00ce\u00c4\u00bc\u00fe\u00b1\u00a3\u00b4\u00e6\u00ce\u00aa Unicode \u00b8\u00f1\u00ca\u00bd\u00d2\u00d4\u00b7\u00c0\u00d6\u00b9\u00ca\u00fd\u00be\u00dd\u00b6\u00aa\u00ca\u00a7n# Generating udf_names.c because of makefile ReadyToGO_6_current_equation_4_14_LittlePoint_aircond_sourceterm.objnudf_names.cnudf_names.c(18) : error C2085: \u00a1\u00b0JouleHeat2\u00a1\u00b1: \u00b2\u00bb\u00d4\u00da\u00d0\u00ce\u00b2\u00ce\u00b1\u00ed\u00d6\u00d0nudf_names.c(19) : error C2085: \u00a1\u00b0CathCurrJ1_LittlePoint_test\u00a1\u00b1: \u00b2\u00bb\u00d4\u00da\u00d0\u00ce\u00b2\u00ce\u00b1\u00ed\u00d6\u00d0nudf_names.c(20) : error C2085: \u00a1\u00b0CathCurrJ2_LittlePoint_test\u00a1\u00b1: \u00b2\u00bb\u00d4\u00da\u00d0\u00ce\u00b2\u00ce\u00b1\u00ed\u00d6\u00d0nudf_names.c(21) : error C2085: \u00a1\u00b0CathCurrJ3_LittlePoint_test\u00a1\u00b1: \u00b2\u00bb\u00d4\u00da\u00d0\u00ce\u00b2\u00ce\u00b1\u00ed\u00d6\u00d0nudf_names.c(22) : error C2085: \u00a1\u00b0AY_DIRICHLET_CLOSE\u00a1\u00b1: \u00b2\u00bb\u00d4\u00da\u00d0\u00ce\u00b2\u00ce\u00b1\u00ed\u00d6\u00d0nudf_names.c(23) : error C2085: \u00a1\u00b0Calc1\u00a1\u00b1: \u00b2\u00bb\u00d4\u00da\u00d0\u00ce\u00b2\u00ce\u00b1\u00ed\u00d6\u00d0nudf_names.c(24) : error C2085: \u00a1\u00b0Calc2\u00a1\u00b1: \u00b2\u00bb\u00d4\u00da\u00d0\u00ce\u00b2\u00ce\u00b1\u00ed\u00d6\u00d0nudf_names.c(25) : error C2085: \u00a1\u00b0udf_data\u00a1\u00b1: \u00b2\u00bb\u00d4\u00da\u00d0\u00ce\u00b2\u00ce\u00b1\u00ed\u00d6\u00d0nudf_names.c(25) : error C2143: \u00d3\u00ef\u00b7\u00a8\u00b4\u00ed\u00ce\u00f3 : \u00c8\u00b1\u00c9\u00d9\u00a1\u00b0;\u00a1\u00b1(\u00d4\u00da\u00a1\u00b0=\u00a1\u00b1\u00b5\u00c4\u00c7\u00b0\u00c3\u00e6)nudf_names.c(46) : error C2065: \u00a1\u00b0udf_data\u00a1\u00b1: \u00ce\u00b4\u00c9\u00f9\u00c3\u00f7\u00b5\u00c4\u00b1\u00ea\u00ca\u00b6\u00b7\u00fbnCreating user_nt.udf file for 3ddp_node &#8230;n(system copy \\ANSYS\\ANSYSI~1\\v180\\fluent\\fluent18.0.0\\src\\udf\\makefile_nt.udf libudf\\win64\\3ddp_node\\makefile )n\u00d2\u00d1\u00b8\u00b4\u00d6\u00c6 1 \u00b8\u00f6\u00ce\u00c4\u00bc\u00fe\u00a1\u00a3n(chdir libudf)(chdir win64\\3ddp_node)# Generating ud_io1.hnReadyToGO_6_current_equation_4_14_LittlePoint_aircond_sourceterm.cn..\\..\\src\\ReadyToGO_6_current_equation_4_14_LittlePoint_aircond_sourceterm.c : warning C4819: \u00b8\u00c3\u00ce\u00c4\u00bc\u00fe\u00b0\u00fc\u00ba\u00ac\u00b2\u00bb\u00c4\u00dc\u00d4\u00da\u00b5\u00b1\u00c7\u00b0\u00b4\u00fa\u00c2\u00eb\u00d2\u00b3(936)\u00d6\u00d0\u00b1\u00ed\u00ca\u00be\u00b5\u00c4\u00d7\u00d6\u00b7\u00fb\u00a1\u00a3\u00c7\u00eb\u00bd\u00ab\u00b8\u00c3\u00ce\u00c4\u00bc\u00fe\u00b1\u00a3\u00b4\u00e6\u00ce\u00aa Unicode \u00b8\u00f1\u00ca\u00bd\u00d2\u00d4\u00b7\u00c0\u00d6\u00b9\u00ca\u00fd\u00be\u00dd\u00b6\u00aa\u00ca\u00a7n# Generating udf_names.c because of makefile ReadyToGO_6_current_equation_4_14_LittlePoint_aircond_sourceterm.objnudf_names.cnudf_names.c(18) : error C2085: \u00a1\u00b0JouleHeat2\u00a1\u00b1: \u00b2\u00bb\u00d4\u00da\u00d0\u00ce\u00b2\u00ce\u00b1\u00ed\u00d6\u00d0nudf_names.c(19) : error C2085: \u00a1\u00b0CathCurrJ1_LittlePoint_test\u00a1\u00b1: \u00b2\u00bb\u00d4\u00da\u00d0\u00ce\u00b2\u00ce\u00b1\u00ed\u00d6\u00d0nudf_names.c(20) : error C2085: \u00a1\u00b0CathCurrJ2_LittlePoint_test\u00a1\u00b1: \u00b2\u00bb\u00d4\u00da\u00d0\u00ce\u00b2\u00ce\u00b1\u00ed\u00d6\u00d0nudf_names.c(21) : error C2085: \u00a1\u00b0CathCurrJ3_LittlePoint_test\u00a1\u00b1: \u00b2\u00bb\u00d4\u00da\u00d0\u00ce\u00b2\u00ce\u00b1\u00ed\u00d6\u00d0nudf_names.c(22) : error C2085: \u00a1\u00b0AY_DIRICHLET_CLOSE\u00a1\u00b1: \u00b2\u00bb\u00d4\u00da\u00d0\u00ce\u00b2\u00ce\u00b1\u00ed\u00d6\u00d0nudf_names.c(23) : error C2085: \u00a1\u00b0Calc1\u00a1\u00b1: \u00b2\u00bb\u00d4\u00da\u00d0\u00ce\u00b2\u00ce\u00b1\u00ed\u00d6\u00d0nudf_names.c(24) : error C2085: \u00a1\u00b0Calc2\u00a1\u00b1: \u00b2\u00bb\u00d4\u00da\u00d0\u00ce\u00b2\u00ce\u00b1\u00ed\u00d6\u00d0nudf_names.c(25) : error C2085: \u00a1\u00b0udf_data\u00a1\u00b1: \u00b2\u00bb\u00d4\u00da\u00d0\u00ce\u00b2\u00ce\u00b1\u00ed\u00d6\u00d0nudf_names.c(25) : error C2143: \u00d3\u00ef\u00b7\u00a8\u00b4\u00ed\u00ce\u00f3 : \u00c8\u00b1\u00c9\u00d9\u00a1\u00b0;\u00a1\u00b1(\u00d4\u00da\u00a1\u00b0=\u00a1\u00b1\u00b5\u00c4\u00c7\u00b0\u00c3\u00e6)nudf_names.c(46) : error C2065: \u00a1\u00b0udf_data\u00a1\u00b1: \u00ce\u00b4\u00c9\u00f9\u00c3\u00f7\u00b5\u00c4\u00b1\u00ea\u00ca\u00b6\u00b7\u00fbnnDone.nI have no idea the meaning of these errors such as C2085.nI also searched the udf_names.c file in my \\libudf\\win64\\3ddp_host catalog, the content from line 18-line 25 is shown belownextern DEFINE_PROFILE(CathCurrJ2_LittlePoint_test,ft,i);nextern DEFINE_PROFILE(CathCurrJ3_LittlePoint_test,ft,i);nextern DEFINE_PROFILE(CathCurrJ1,ft,i);nextern DEFINE_PROFILE(CathCurrJ2,ft,i);nextern DEFINE_PROFILE(CathCurrJ3,ft,i);nextern DEFINE_PROFILE(AY_DIRICHLET_CLOSE,ft,i);nextern DEFINE_EXECUTE_AT_END(Calc1);\u00a0nextern DEFINE_EXECUTE_AT_END(Calc2);\u00a0 nI can&#8217;t understand why it goes wrong suddenly while I didn&#8217;t change the code.nHow come I get this error and how can I solve it?nThanks a lot! nHenann<\/p>\n","protected":false},"template":"","class_list":["post-54791","topic","type-topic","status-closed","hentry","topic-tag-udf-complier-problem","topic-tag-udf-error"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_old_topic_id":["27127"],"_bbp_old_topic_author_name_id":["Anonymous"],"_bbp_old_is_topic_anonymous_id":["false"],"_bbp_old_closed_status_id":["publish"],"_bbp_author_ip":["\u07b2\n?"],"_bbp_old_sticky_status_id":["normal"],"_bbp_likes_count":["0"],"_btv_view_count":["666"],"_bbp_subscription":["235054"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["54791"],"_bbp_forum_id":["27792"],"_bbp_engagement":["22555","191013"],"_bbp_voice_count":["2"],"_bbp_reply_count":["4"],"_bbp_last_reply_id":["151072"],"_bbp_last_active_id":["151072"],"_bbp_last_active_time":["2021-04-28 09:14:43"]},"test":"henancui"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/54791","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\/54791\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=54791"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}