|
[Sponsors] |
February 12, 2014, 13:28 |
Error when compling udf
|
#1 |
New Member
Join Date: Feb 2014
Posts: 5
Rep Power: 12 |
Hi,
I'm using Eulerian granular multypahse model with heat transfer;, and i have a problem when i compile the udf, when i build the edf i have this error: 1 fichier(s) copi‚(s). (system "copy C:\Fluent.Inc\fluent6.3.26\src\makefile_nt.udf libudf\ntx86\2d\makefile") 1 fichier(s) copi‚(s). (chdir "libudf")() (chdir "ntx86\2d")() 'nmake' n?est pas reconnu en tant que commande interne ou externe, un programme ex‚cutable ou un fichier de commandes. 'nmake' n?est pas reconnu en tant que commande interne ou externe, un programme ex‚cutable ou un fichier de commandes. Done. and when i load the ydf this message was shown: c:/fluent.inc/fluent6.3.26/ntx86/2ddp" Opening library "libudf"... Error: open_udf_library: Le fichier spécifié est introuvable. please i need help Regards! |
|
February 13, 2014, 01:19 |
|
#2 |
Member
Join Date: May 2012
Posts: 68
Rep Power: 13 |
your udf was NOT compiled.You know that from that error regarding "nmake"
As a result, when you try to load the udf, there is nothing to load (since it wasnt compiled in first place) Try to compile properly, look at some tutorials explaining how to link the c++ compilers in fluent
__________________
Best wishes, Somdeb Bandopadhyay |
|
February 18, 2014, 14:47 |
Udf compiling
|
#3 |
New Member
Join Date: Feb 2014
Posts: 5
Rep Power: 12 |
Thanks
I try to compile my udf with c++ , i have this error: fatal error C1083: Cannot open include file: 'udf.h': No such file or directory udf.h exist in fluent librery. did you help me to solve the problem? Best regards |
|
February 18, 2014, 15:20 |
|
#4 |
Member
Join Date: May 2012
Posts: 68
Rep Power: 13 |
You are compiling "with C++"?
i take it you tried to compile externally? from what i remember the compilation needs to be done from fluent. it'll automatically copy the udf library in your directory while doing so (i.e udf.h)
__________________
Best wishes, Somdeb Bandopadhyay |
|
February 18, 2014, 16:19 |
Udf compiling
|
#5 |
New Member
Join Date: Feb 2014
Posts: 5
Rep Power: 12 |
yes i compiling it with c++.
But i do it with fluent that is what i have as a result: 1 fichier(s) copi‚(s). (system "copy C:\Fluent.Inc\fluent6.3.26\src\makefile_nt.udf libudf\ntx86\2ddp\makefile") 1 fichier(s) copi‚(s). (chdir "libudf")() (chdir "ntx86\2ddp")() conduct.c # Generating udf_names.c because of makefile conduct.obj udf_names.c # Linking libudf.dll because of makefile user_nt.udf udf_names.obj conduct.obj Microsoft (R) 32-Bit Library Manager Version 3.00.5270 Copyright (C) Microsoft Corp 1992-1995. All rights reserved. LINK : fatal error LNK1181: cannot open input file "fl6326s.lib" Done. "c:/fluent.inc/fluent6.3.26/ntx86/2ddp" Opening library "libudf"... Error: open_udf_library: Le fichier spécifié est introuvable. Error Object: () Thanks for your interest to help me... |
|
February 18, 2014, 16:41 |
|
#6 |
Member
Join Date: May 2012
Posts: 68
Rep Power: 13 |
did you set the environment variable? (set-environment or something..it should be in the menu of fluent-inc in your program file
Last sgession... try restting the VC++ environment too..just in case Thats all from me :s
__________________
Best wishes, Somdeb Bandopadhyay |
|
February 26, 2014, 04:55 |
error while compiling UDF
|
#7 |
New Member
vahid Goodarzi Ardekani
Join Date: Jun 2013
Posts: 14
Rep Power: 12 |
hi everybody,
Does anybody know what's the problem with the following error while compiling a UDF?(i have already installed both visual studio 2006 and 2010) The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform (win64). The operation completed successfully. E:\Program Files\ANSYS Inc\v140\fluent tbin\win64\libudf\win64\2ddp_host\libudf.dll thanks previously |
|
February 26, 2014, 06:05 |
|
#8 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26 |
Are you trying to load the library, or trying to compile the library?
The warning that you copy here, says you are trying to load it in a parallel environment, while it was not compiled for that. The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform (win64). |
|
February 26, 2014, 06:44 |
|
#9 |
New Member
vahid Goodarzi Ardekani
Join Date: Jun 2013
Posts: 14
Rep Power: 12 |
Dear Pakk,
so sorry, i'm almost a beginner in using Fluent so i didn't understand what u meant. from define tab in fluent v.14, i clicked on user-defined then functions then complied after that in source files i selected my udf then i clicked on build and then clicked load and that error came up!!! i don't know what's the problem. is it from windows?is it from the udf itself? have i done the procedure correctly?!!!!! thank u so much |
|
February 26, 2014, 07:19 |
|
#10 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26 |
Hi vga67,
I think you are running a parallel version of Fluent, are you? (At the start-up screen of Fluent, did you select 'parallel' or 'serial'?) In that case, what this error message means is that you try to load a serial version of the udf into a parallel version of Fluent. What you should have done, is load a parallel version of the udf. You make a parallel version of the udf by compiling the udf in a parallel version of Fluent. From what I read, this is what you tried to do. But, something must have gone wrong when you tried to compile it. Is there an error message before the one you showed earlier? |
|
February 26, 2014, 07:42 |
|
#11 |
New Member
vahid Goodarzi Ardekani
Join Date: Jun 2013
Posts: 14
Rep Power: 12 |
hi again
i opend the fluent in parallel mode but again the same error appeard.there was no error messages before that message. in parallel mode the following error came up: The UDF library you are trying to load (libudf) is not compiled for 2ddp on the curent platform (win64). The system cannot find the file specified. c:\users\vhid\desktop\fluent-mdm-tut-01\udf\libudf\win64\2ddp\libudf.dll thanks a lot |
|
February 26, 2014, 08:11 |
|
#12 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26 |
What is shown on your screen after you click 'build', and before you click 'load'?
|
|
February 26, 2014, 08:21 |
|
#13 |
New Member
vahid Goodarzi Ardekani
Join Date: Jun 2013
Posts: 14
Rep Power: 12 |
in message window this comes before load and after build:
Deleted old libudf\win64\2ddp\libudf.dll 1 file(s) copied. Copied c:\users\vhid\desktop\fluent-mdm-tut-01\udf/C:\Users\Vhid\Desktop\FLUENT-MDM-tut-01\udf\sphere.c to libudf\src (system "copy "E:\PROGRA~1\ANSYSI~1\v140\fluent"\fluent14.0.0\sr c\makefile_nt.udf "libudf\win64\2ddp\makefile" ") 1 file(s) copied. (chdir "libudf")() (chdir "win64\2ddp")() 'nmake' is not recognized as an internal or external command, operable program or batch file. 'nmake' is not recognized as an internal or external command, operable program or batch file. Done. |
|
February 26, 2014, 10:48 |
|
#14 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26 |
The line "'nmake' is not recognized as an internal or external command,
operable program or batch file." is an error message. Your compiler is not properly set-up, so compilation failed. I am no expert in setting up compilers, but have been some threads about this on this forum. Search for SDK, that might help. |
|
February 26, 2014, 11:19 |
|
#15 |
New Member
Gustavo
Join Date: Jun 2013
Posts: 26
Rep Power: 12 |
If you are on Windows: are you running Fluent from Visual Studio?
You have to initialize Fluent from VS command prompt, otherwise I don't think Fluent will recognize VS as the compiler. To do that, you must have Visual Studio installed. You can download it for free from Microsoft. |
|
February 27, 2014, 01:47 |
|
#16 |
New Member
PSM
Join Date: Sep 2013
Posts: 10
Rep Power: 12 |
hi all
first we should have visual studio on our comp to compile the udf. also download udf.h and load it header files. ur udffile, casefile and udf.h shall be in same folder |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 22:14 |
Help : UDF compling error? | Lincoln | FLUENT | 1 | January 13, 2010 14:30 |
Erroe while compling a UDF | Kappe | Fluent UDF and Scheme Programming | 0 | August 31, 2009 07:29 |
PROBLEM IN COMPLING IN UDF | ammi | CFX | 1 | December 5, 2006 23:43 |
RE: the explaination of Error while compling UDF | li li | FLUENT | 0 | October 24, 2003 00:47 |