Errors when trying to compile UDF in Fluent

rexfoxoloughlinrexfoxoloughlin Member Posts: 9

Hi all, wondering if you could help me with something,

I'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.

I'm running ANSYS student.

Things I've tried:

I'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!


The first error when trying to compile/build the libudf:

Copied D:\Program Files\ANSYS Inc\ANSYS Student\Project Files\Dragonfly 2\dragonfly_2_files\dp0\FFF\Fluent/D:\Program Files\ANSYS Inc\ANSYS Student\Project Files\Dragonfly 2\dragonfly_2_files\dp0\FFF\Fluent\inlet.c to libudf\src

Creating user_nt.udf file for 3ddp_host ...

(system "copy "D:\Program Files\ANSYS Inc\ANSYS Student\v202\fluent"\fluent20.2.0\src\udf\makefile_nt.udf "libudf\win64\3ddp_host\makefile" ")

1 file(s) copied.

(chdir "libudf")(chdir "win64\3ddp_host")'nmake' is not recognized as an internal or external command,

operable program or batch file.

Creating user_nt.udf file for 3ddp_node ...

(system "copy "D:\Program Files\ANSYS Inc\ANSYS Student\v202\fluent"\fluent20.2.0\src\udf\makefile_nt.udf "libudf\win64\3ddp_node\makefile" ")

1 file(s) copied.

(chdir "libudf")(chdir "win64\3ddp_node")'nmake' is not recognized as an internal or external command,

operable program or batch file.


Done.

Copied D:\Program Files\ANSYS Inc\ANSYS Student\Project Files\Dragonfly 2\dragonfly_2_files\dp0\FFF\Fluent/D:\Program Files\ANSYS Inc\ANSYS Student\Project Files\Dragonfly 2\dragonfly_2_files\dp0\FFF\Fluent\inlet.c to libudf\src

(system "copy "D:\Program Files\ANSYS Inc\ANSYS Student\v202\fluent"\fluent20.2.0\src\udf\sconstruct.udf "libudf\win64\3ddp_host\SConstruct" ")

1 file(s) copied.

(system "copy "D:\Program Files\ANSYS Inc\ANSYS Student\v202\fluent"\fluent20.2.0\src\udf\scons_test.bat "libudf\win64\3ddp_host\scons_test.bat" ")

1 file(s) copied.

(chdir "libudf")(chdir "win64\3ddp_host")

D:\Program Files\ANSYS Inc\ANSYS Student\Project Files\Dragonfly 2\dragonfly_2_files\dp0\FFF\Fluent\libudf\win64\3ddp_host>set PYTHONHOME=D:\Program Files\ANSYS Inc\ANSYS Student\v202\fluent/../commonfiles/CPython/3_7/winx64/Release/python


D:\Program Files\ANSYS Inc\ANSYS Student\Project Files\Dragonfly 2\dragonfly_2_files\dp0\FFF\Fluent\libudf\win64\3ddp_host>set PYTHONPATH=D:\Program Files\ANSYS Inc\ANSYS Student\v202\fluent/../commonfiles/CPython/3_7/winx64/Release/python


D:\Program Files\ANSYS Inc\ANSYS Student\Project Files\Dragonfly 2\dragonfly_2_files\dp0\FFF\Fluent\libudf\win64\3ddp_host>D:\Program Files\ANSYS Inc\ANSYS Student\v202\fluent/../commonfiles/CPython/3_7/winx64/Release/python/scons

'D:\Program' is not recognized as an internal or external command,

operable program or batch file.

(system "copy "D:\Program Files\ANSYS Inc\ANSYS Student\v202\fluent"\fluent20.2.0\src\udf\sconstruct.udf "libudf\win64\3ddp_node\SConstruct" ")

1 file(s) copied.

(system "copy "D:\Program Files\ANSYS Inc\ANSYS Student\v202\fluent"\fluent20.2.0\src\udf\scons_test.bat "libudf\win64\3ddp_node\scons_test.bat" ")

1 file(s) copied.

(chdir "libudf")(chdir "win64\3ddp_node")

D:\Program Files\ANSYS Inc\ANSYS Student\Project Files\Dragonfly 2\dragonfly_2_files\dp0\FFF\Fluent\libudf\win64\3ddp_node>set PYTHONHOME=D:\Program Files\ANSYS Inc\ANSYS Student\v202\fluent/../commonfiles/CPython/3_7/winx64/Release/python


D:\Program Files\ANSYS Inc\ANSYS Student\Project Files\Dragonfly 2\dragonfly_2_files\dp0\FFF\Fluent\libudf\win64\3ddp_node>set PYTHONPATH=D:\Program Files\ANSYS Inc\ANSYS Student\v202\fluent/../commonfiles/CPython/3_7/winx64/Release/python


D:\Program Files\ANSYS Inc\ANSYS Student\Project Files\Dragonfly 2\dragonfly_2_files\dp0\FFF\Fluent\libudf\win64\3ddp_node>D:\Program Files\ANSYS Inc\ANSYS Student\v202\fluent/../commonfiles/CPython/3_7/winx64/Release/python/scons

'D:\Program' is not recognized as an internal or external command,

operable program or batch file.


Done.


And then another when I click load:


Error: The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform (win64).\n\nThe system cannot find the file specified.

\n\nD:\Program Files\ANSYS Inc\ANSYS Student\Project Files\Dragonfly 2\dragonfly_2_files\dp0\FFF\Fluent\libudf\win64\3ddp_host\libudf.dll

Error Object: #f

Answers

Sign In or Register to comment.