TAGGED: fluent, libudf, student, udf, udf-fluent
-
-
December 11, 2020 at 1:24 pm
rexfoxoloughlin
SubscriberHi all, wondering if you could help me with something,nI'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'm running ANSYS student.nThings I've tried:nI've added it to the path as specified here: https://www.cfd-online.com/Forums/blogs/trollreign/2036-getting-ansys-14-fluent-windows-8-1-vs2013-compile-udfs.html and also tried all the other solutions on that pagenI've started Fluent through VS2017's common tools command prompt as specified here https://forum.ansys.com/discussion/13927/compiling-udf, gives the same errorsnI've tried a few different UDFs, some simple example ones from online and the ones I've written, to the same errorsnI've completed remade the whole project with new geometry and a new mesh and re-opened it in FluentnI'm trying to get this https://www.ansys.com/blog/dragonfly-flapping-ansys model to work. If anyone could help me it'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 ...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)'nmake' is not recognized as an internal or external command,noperable program or batch file.nCreating user_nt.udf file for 3ddp_node ...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)'nmake' 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'\Program' 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'\Program' 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 -
December 11, 2020 at 3:59 pm
Mawen
SubscriberI think you got the nmake error. Do you have visual studio 2017 installed? nFollow this video, that should solve the problem: &t&ab_channel=CatherineWaan -
December 12, 2020 at 4:03 pm
rexfoxoloughlin
SubscriberI think you got the nmake error. Do you have visual studio 2017 installed? Follow this video, that should solve the problem: &t&ab_channel=CatherineWaahttps://forum.ansys.com/discussion/comment/100066#Comment_100066
I do have VS2017 yes.n -
December 14, 2020 at 12:17 pm
Rob
Forum ModeratorIf you're running 2020 use the built in compiler. A missing nmake means there's a path/system variable that's not pointing in the right place, if you look for nmake in here and the installation threads there will be some guidance. n
-
- The topic ‘Errors when trying to compile UDF in Fluent’ is closed to new replies.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- legend min and max
- Ensight hot iron palette from an image
- Streamlines in EnSight using MRI data
- Import MRI data into Ensight
- FLUENT APPLICATIION ERROR
- Total Surface Heat Flux Calculation in Fluent
- Drop Test of a Water-Filled Tube
- Difference between “total pressure” and “absolute pressure”?
- obtaining pressure distribution by making points in ansys
- Minimum Orthogonal Quality Less than 0.01 For Transonic Airfoil Flow Analysis
-
8808
-
4658
-
3155
-
1688
-
1478
© 2023 Copyright ANSYS, Inc. All rights reserved.