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

Error when compling udf

Register Blogs Community New Posts Updated Threads Search

Like Tree6Likes
  • 1 Post By som87
  • 1 Post By pakk
  • 1 Post By pakk
  • 1 Post By pakk
  • 1 Post By ghobold
  • 1 Post By pitamber.methia

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 12, 2014, 13:28
Default Error when compling udf
  #1
New Member
 
Join Date: Feb 2014
Posts: 5
Rep Power: 12
Nad213 is on a distinguished road
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!
Nad213 is offline   Reply With Quote

Old   February 13, 2014, 01:19
Default
  #2
Member
 
Join Date: May 2012
Posts: 68
Rep Power: 13
som87 is on a distinguished road
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
chaitanyaarige likes this.
__________________
Best wishes,

Somdeb Bandopadhyay
som87 is offline   Reply With Quote

Old   February 18, 2014, 14:47
Default Udf compiling
  #3
New Member
 
Join Date: Feb 2014
Posts: 5
Rep Power: 12
Nad213 is on a distinguished road
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
Nad213 is offline   Reply With Quote

Old   February 18, 2014, 15:20
Default
  #4
Member
 
Join Date: May 2012
Posts: 68
Rep Power: 13
som87 is on a distinguished road
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
som87 is offline   Reply With Quote

Old   February 18, 2014, 16:19
Default Udf compiling
  #5
New Member
 
Join Date: Feb 2014
Posts: 5
Rep Power: 12
Nad213 is on a distinguished road
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...
Nad213 is offline   Reply With Quote

Old   February 18, 2014, 16:41
Default
  #6
Member
 
Join Date: May 2012
Posts: 68
Rep Power: 13
som87 is on a distinguished road
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
som87 is offline   Reply With Quote

Old   February 26, 2014, 04:55
Default error while compiling UDF
  #7
New Member
 
vahid Goodarzi Ardekani
Join Date: Jun 2013
Posts: 14
Rep Power: 12
vga67 is on a distinguished road
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
vga67 is offline   Reply With Quote

Old   February 26, 2014, 06:05
Default
  #8
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
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).
chaitanyaarige likes this.
pakk is offline   Reply With Quote

Old   February 26, 2014, 06:44
Default
  #9
New Member
 
vahid Goodarzi Ardekani
Join Date: Jun 2013
Posts: 14
Rep Power: 12
vga67 is on a distinguished road
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
vga67 is offline   Reply With Quote

Old   February 26, 2014, 07:19
Default
  #10
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
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?
chaitanyaarige likes this.
pakk is offline   Reply With Quote

Old   February 26, 2014, 07:42
Default
  #11
New Member
 
vahid Goodarzi Ardekani
Join Date: Jun 2013
Posts: 14
Rep Power: 12
vga67 is on a distinguished road
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
vga67 is offline   Reply With Quote

Old   February 26, 2014, 08:11
Default
  #12
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
What is shown on your screen after you click 'build', and before you click 'load'?
pakk is offline   Reply With Quote

Old   February 26, 2014, 08:21
Default
  #13
New Member
 
vahid Goodarzi Ardekani
Join Date: Jun 2013
Posts: 14
Rep Power: 12
vga67 is on a distinguished road
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.
vga67 is offline   Reply With Quote

Old   February 26, 2014, 10:48
Default
  #14
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
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.
chaitanyaarige likes this.
pakk is offline   Reply With Quote

Old   February 26, 2014, 11:19
Default
  #15
New Member
 
Gustavo
Join Date: Jun 2013
Posts: 26
Rep Power: 12
ghobold is on a distinguished road
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.
chaitanyaarige likes this.
ghobold is offline   Reply With Quote

Old   February 27, 2014, 01:47
Default
  #16
New Member
 
PSM
Join Date: Sep 2013
Posts: 10
Rep Power: 12
pitamber.methia is on a distinguished road
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
chaitanyaarige likes this.
pitamber.methia is offline   Reply With Quote

Reply


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
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


All times are GMT -4. The time now is 10:15.