


{"id":50557,"date":"2020-12-11T13:24:29","date_gmt":"2020-12-11T13:24:29","guid":{"rendered":"\/forum\/forums\/topic\/errors-when-trying-to-compile-udf-in-fluent\/"},"modified":"2020-12-11T13:24:29","modified_gmt":"2020-12-11T13:24:29","slug":"errors-when-trying-to-compile-udf-in-fluent","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/errors-when-trying-to-compile-udf-in-fluent\/","title":{"rendered":"Errors when trying to compile UDF in Fluent"},"content":{"rendered":"<p>Hi all, wondering if you could help me with something,nI&#8217;m getting two different errors when trying to load the libudf library and compile my UDF in ANSYS. See below for the errors I get.nI&#8217;m running ANSYS student.nThings I&#8217;ve tried:nI&#8217;ve added it to the path as specified here:\u00a0<a href='https:\/\/www.cfd-online.com\/Forums\/blogs\/trollreign\/2036-getting-ansys-14-fluent-windows-8-1-vs2013-compile-udfs.html\" target='blank'>https:\/\/www.cfd-online.com\/Forums\/blogs\/trollreign\/2036-getting-ansys-14-fluent-windows-8-1-vs2013-compile-udfs.html<\/a> and also tried all the other solutions on that pagenI&#8217;ve started Fluent through VS2017&#8217;s common tools command prompt as specified here <a href='\/forum\/discussion\/13927\/compiling-udf\" target='blank'>\/forum\/discussion\/13927\/compiling-udf<\/a>, gives the same errorsnI&#8217;ve tried a few different UDFs, some simple example ones from online and the ones I&#8217;ve written, to  the same errorsnI&#8217;ve completed remade the whole project with new geometry and a new mesh and re-opened it in FluentnI&#8217;m trying to get this\u00a0<a href='https:\/\/www.ansys.com\/blog\/dragonfly-flapping-ansys\" target='blank'>https:\/\/www.ansys.com\/blog\/dragonfly-flapping-ansys<\/a>\u00a0model to work. If anyone could help me it&#8217;d be appreciated!nnThe first error when trying to compile\/build the libudf:nCopied \\Program Files\\ANSYS Inc\\ANSYS Student\\Project Files\\Dragonfly 2\\dragonfly_2_files\\dp0\\FFF\\Fluent\/\\Program Files\\ANSYS Inc\\ANSYS Student\\Project Files\\Dragonfly 2\\dragonfly_2_files\\dp0\\FFF\\Fluent\\inlet.c to libudf\\srcnCreating user_nt.udf file for 3ddp_host &#8230;n(system copy \\Program Files\\ANSYS Inc\\ANSYS Student\\v202\\fluent\\fluent20.2.0\\src\\udf\\makefile_nt.udf libudf\\win64\\3ddp_host\\makefile )n1 file(s) copied.n(chdir libudf)(chdir win64\\3ddp_host)&#8217;nmake&#8217; is not recognized as an internal or external command,noperable program or batch file.nCreating user_nt.udf file for 3ddp_node &#8230;n(system copy \\Program Files\\ANSYS Inc\\ANSYS Student\\v202\\fluent\\fluent20.2.0\\src\\udf\\makefile_nt.udf libudf\\win64\\3ddp_node\\makefile )n1 file(s) copied.n(chdir libudf)(chdir win64\\3ddp_node)&#8217;nmake&#8217; is not recognized as an internal or external command,noperable program or batch file.nnDone.nCopied \\Program Files\\ANSYS Inc\\ANSYS Student\\Project Files\\Dragonfly 2\\dragonfly_2_files\\dp0\\FFF\\Fluent\/\\Program Files\\ANSYS Inc\\ANSYS Student\\Project Files\\Dragonfly 2\\dragonfly_2_files\\dp0\\FFF\\Fluent\\inlet.c to libudf\\srcn(system copy \\Program Files\\ANSYS Inc\\ANSYS Student\\v202\\fluent\\fluent20.2.0\\src\\udf\\sconstruct.udf libudf\\win64\\3ddp_host\\SConstruct )n1 file(s) copied.n(system copy \\Program Files\\ANSYS Inc\\ANSYS Student\\v202\\fluent\\fluent20.2.0\\src\\udf\\scons_test.bat libudf\\win64\\3ddp_host\\scons_test.bat )n1 file(s) copied.n(chdir libudf)(chdir win64\\3ddp_host)nD:\\Program Files\\ANSYS Inc\\ANSYS Student\\Project Files\\Dragonfly 2\\dragonfly_2_files\\dp0\\FFF\\Fluent\\libudf\\win64\\3ddp_host>set PYTHONHOME=\\Program Files\\ANSYS Inc\\ANSYS Student\\v202\\fluent\/..\/commonfiles\/CPython\/3_7\/winx64\/Release\/pythoD:\\Program Files\\ANSYS Inc\\ANSYS Student\\Project Files\\Dragonfly 2\\dragonfly_2_files\\dp0\\FFF\\Fluent\\libudf\\win64\\3ddp_host>set PYTHONPATH=\\Program Files\\ANSYS Inc\\ANSYS Student\\v202\\fluent\/..\/commonfiles\/CPython\/3_7\/winx64\/Release\/pythoD:\\Program Files\\ANSYS Inc\\ANSYS Student\\Project Files\\Dragonfly 2\\dragonfly_2_files\\dp0\\FFF\\Fluent\\libudf\\win64\\3ddp_host>\\Program Files\\ANSYS Inc\\ANSYS Student\\v202\\fluent\/..\/commonfiles\/CPython\/3_7\/winx64\/Release\/python\/sconsn&#8217;\\Program&#8217; is not recognized as an internal or external command,noperable program or batch file.n(system copy \\Program Files\\ANSYS Inc\\ANSYS Student\\v202\\fluent\\fluent20.2.0\\src\\udf\\sconstruct.udf libudf\\win64\\3ddp_node\\SConstruct )n1 file(s) copied.n(system copy \\Program Files\\ANSYS Inc\\ANSYS Student\\v202\\fluent\\fluent20.2.0\\src\\udf\\scons_test.bat libudf\\win64\\3ddp_node\\scons_test.bat )n1 file(s) copied.n(chdir libudf)(chdir win64\\3ddp_node)nD:\\Program Files\\ANSYS Inc\\ANSYS Student\\Project Files\\Dragonfly 2\\dragonfly_2_files\\dp0\\FFF\\Fluent\\libudf\\win64\\3ddp_node>set PYTHONHOME=\\Program Files\\ANSYS Inc\\ANSYS Student\\v202\\fluent\/..\/commonfiles\/CPython\/3_7\/winx64\/Release\/pythoD:\\Program Files\\ANSYS Inc\\ANSYS Student\\Project Files\\Dragonfly 2\\dragonfly_2_files\\dp0\\FFF\\Fluent\\libudf\\win64\\3ddp_node>set PYTHONPATH=\\Program Files\\ANSYS Inc\\ANSYS Student\\v202\\fluent\/..\/commonfiles\/CPython\/3_7\/winx64\/Release\/pythoD:\\Program Files\\ANSYS Inc\\ANSYS Student\\Project Files\\Dragonfly 2\\dragonfly_2_files\\dp0\\FFF\\Fluent\\libudf\\win64\\3ddp_node>\\Program Files\\ANSYS Inc\\ANSYS Student\\v202\\fluent\/..\/commonfiles\/CPython\/3_7\/winx64\/Release\/python\/sconsn&#8217;\\Program&#8217; is not recognized as an internal or external command,noperable program or batch file.nnDone.nnAnd then another when I click load:nnError: The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform (win64).The system cannot find the file specified.nD:\\Program Files\\ANSYS Inc\\ANSYS Student\\Project Files\\Dragonfly 2\\dragonfly_2_files\\dp0\\FFF\\Fluent\\libudf\\win64\\3ddp_host\\libudf.dllnError Object: #fn<\/p>\n","protected":false},"template":"","class_list":["post-50557","topic","type-topic","status-closed","hentry","topic-tag-fluent","topic-tag-libudf","topic-tag-student","topic-tag-udf","topic-tag-udf-fluent"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_old_topic_id":["22809"],"_bbp_old_topic_author_name_id":["Anonymous"],"_bbp_old_is_topic_anonymous_id":["false"],"_bbp_old_closed_status_id":["publish"],"_bbp_author_ip":[" \u0001\u000b?\u0013?\u0000A?*\u0005???\u001a"],"_bbp_old_sticky_status_id":["normal"],"_bbp_likes_count":["0"],"_btv_view_count":["5264"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["50557"],"_bbp_forum_id":["27792"],"_bbp_engagement":["199","161765","184103"],"_bbp_voice_count":["3"],"_bbp_reply_count":["3"],"_bbp_last_reply_id":["135982"],"_bbp_last_active_id":["135982"],"_bbp_last_active_time":["2020-12-14 12:17:06"]},"test":"rexfoxoloughlin"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/50557","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\/50557\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=50557"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}