CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   Compling UDF on windows8.1(x64) (https://www.cfd-online.com/Forums/fluent-udf/162784-compling-udf-windows8-1-x64.html)

moabdi November 17, 2015 16:09

Compling UDF on windows8.1(x64)
 
Hi every body
I have a problem while compiling UDF on ANSYS FLUENT 16.1 (WORKBENCH) in windows8.1(x64), I use MICROSOFT VISUAL STUDIO 2012 EXPRESS, NET Framework 4.6 and SDK for windows8.1 too.

All UDFs were compiled with no problem, but when I want to LOAD them I faced with such this ERROR:

"Opening library "C:\............\Fluent\libudf"...
Error: The UDF library you are trying to load (libudf) is not compiled for 2d on the current platform (win64).

The system cannot find the file specified.
C:\...............\Fluent\libudf\win64\2d\libudf.d ll
The system cannot find the file specified.
C:\...............................\Fluent\libudf\w in64\2d\libudf.dll
Error Object: #f
"

My pleasure if any body could help me to fix this problem.

NOTE:
I have some TRIAL and EDUCATIONAL UDFs, those were compiled and LOAD very well but my owns didn't.
I Wrote my UDFs according to those TRIAL UDFs, so I expected them to run very well but didn't.

pakk November 18, 2015 03:39

Quote:

All UDFs were compiled with no problem
Well, Fluent thinks differently. Can you show the output on the screen that you get when you try to compile?

moabdi November 18, 2015 11:15

Hi pakk

when I click on "BUILD" bottom this massage was illustrated:

"Setting Post Processing and Surfaces information ... Done.
Copied D:\Final Project\Model\Fluent\msh\curve section 2D SAMPLE_files\dp0\FFF\Fluent/D:\Final Project\Model\Fluent\msh\curve section 2D SAMPLE_files\dp0\FFF\Fluent\def_geom - Copy.c to libudf\src
Creating user_nt.udf file for 2d ...
(system "copy "C:\PROGRA~1\ANSYSI~1\v161\fluent"\fluent16.1.0\sr c\udf\makefile_nt.udf "libudf\win64\2d\makefile" ")
1 file(s) copied.
(chdir "libudf")(chdir "win64\2d")
Done."


but when click on "LOAD" this message will illustrated:

"Opening library "D:\Final Project\Model\Fluent\msh\curve section 2D SAMPLE_files\dp0\FFF\Fluent\D:\Final Project\Model\Fluent\msh\curve section 2D SAMPLE_files\dp0\FFF\Fluent\libudf"...RPC RCX_SC_SET_ERR_MSG failed: RPC: Can't encode arguments

Error: The UDF library you are trying to load (D:\Final Project\Model\Fluent\msh\curve section 2D SAMPLE_files\dp0\FFF\Fluent\libudf) is not compiled for 2d on the current platform (win64).
The system cannot find the file specified.
D:\Final Project\Model\Fluent\msh\curve section 2D SAMPLE_files\dp0\FFF\Fluent\D:\Final Project\Model\Fluent\msh\curve section 2D SAMPLE_files\dp0\FFF\Fluent\libudf\win64\2d\libudf .dll
Error: The UDF library you are trying to load (D:\Final Project\Model\Fluent\msh\curve section 2D SAMPLE_files\dp0\FFF\Fluent\libudf) is not compiled for 2d on the current platform (win64).
The system cannot find the file specified.
D:\Final Project\Model\Fluent\msh\curve section 2D SAMPLE_files\dp0\FFF\Fluent\D:\Final Project\Model\Fluent\msh\curve section 2D SAMPLE_files\dp0\FFF\Fluent\libudf\win64\2d\libudf .dll
Error Object: #f"

pakk November 18, 2015 11:19

Okay, now I think it is something else: you have spaces in your foldername.
Code:

D:\Final Project\Model\Fluent\msh\curve section 2D SAMPLE_files
Solve this (for example) by replacing them by underscores:
Code:

D:\Final_Project\Model\Fluent\msh\curve_section_2D_SAMPLE_files
That might solve your problem already.

(Fluent has sometimes problems with spaces in file names/folder names.)

moabdi November 18, 2015 14:03

pakk, you showed me good tips, it was spaces in my UDF's name. when I deleted that spaces, UDF compiled and load successfully.

thanks and best regards pakk

hooman.esl May 14, 2017 10:57

(Fluent has sometimes problems with spaces in file names/folder names.)[/QUOTE]

thank you, my problem was that.;);)


All times are GMT -4. The time now is 14:27.