CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Compling UDF on windows8.1(x64)

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree3Likes
  • 2 Post By pakk
  • 1 Post By moabdi

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 17, 2015, 17:09
Default Compling UDF on windows8.1(x64)
  #1
New Member
 
mohsen
Join Date: Jun 2015
Posts: 25
Rep Power: 11
moabdi is on a distinguished road
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.
moabdi is offline   Reply With Quote

Old   November 18, 2015, 04:39
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
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?
pakk is offline   Reply With Quote

Old   November 18, 2015, 12:15
Default
  #3
New Member
 
mohsen
Join Date: Jun 2015
Posts: 25
Rep Power: 11
moabdi is on a distinguished road
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"
moabdi is offline   Reply With Quote

Old   November 18, 2015, 12:19
Default
  #4
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
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.)
Mazze[ITA] and hooman.esl like this.
pakk is offline   Reply With Quote

Old   November 18, 2015, 15:03
Default
  #5
New Member
 
mohsen
Join Date: Jun 2015
Posts: 25
Rep Power: 11
moabdi is on a distinguished road
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
pakk likes this.
moabdi is offline   Reply With Quote

Old   May 14, 2017, 11:57
Default
  #6
New Member
 
Hooman
Join Date: Jan 2016
Posts: 19
Rep Power: 10
hooman.esl is on a distinguished road
(Fluent has sometimes problems with spaces in file names/folder names.)[/QUOTE]

thank you, my problem was that.
hooman.esl is offline   Reply With Quote

Reply

Tags
compile, fluent16.1, udf, windows8.1

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
WILLING TO PAY/ FREELANCER REQUIRED / small UDF coding force loads over body / 6DOF acasas CFD Freelancers 1 January 23, 2015 08:26
Help : UDF compling error? Lincoln FLUENT 1 January 13, 2010 15:30
Erroe while compling a UDF Kappe Fluent UDF and Scheme Programming 0 August 31, 2009 08:29
PROBLEM IN COMPLING IN UDF ammi CFX 1 December 6, 2006 00:43
RE: the explaination of Error while compling UDF li li FLUENT 0 October 24, 2003 01:47


All times are GMT -4. The time now is 07:57.