|
[Sponsors] |
January 10, 2011, 03:25 |
someone help me please with my UDF
|
#1 |
Member
EH
Join Date: Dec 2010
Posts: 61
Rep Power: 15 |
Hi all.
I have written a UDF that calculates the mean temperature of the outflow that is to be supplied to the inlet (something like a recirculation tank). When I compiled the UDF (UDFtrial.c), the following messages appear: Error Object: #f Deleted old libudf\win64\3ddp_host\libudf.dll libudf\win64\3ddp_node\libudf.dll 1 file(s) copied. (system "copy "C:\PROGRA~1\ANSYSI~1\v121\fluent"\fluent12.1.4\sr c\makefile_nt.udf libudf\win64\3ddp_host\makefile") 1 file(s) copied. (chdir "libudf")() (chdir "win64\3ddp_host")() # Generating ud_io1.h (system "copy "C:\PROGRA~1\ANSYSI~1\v121\fluent"\fluent12.1.4\sr c\makefile_nt.udf libudf\win64\3ddp_node\makefile") 1 file(s) copied. (chdir "libudf")() (chdir "win64\3ddp_node")() # Generating ud_io1.h and not the message as suggested by the UDF manual to be a successful compilation. Loading the library led to this error: Opening library "libudf"... Primitive Error at Node 0: open_udf_library: The operation completed successfully. Primitive Error at Node 1: open_udf_library: The system cannot find the file specified. Primitive Error at Node 2: open_udf_library: The system cannot find the file specified. Primitive Error at Node 3: open_udf_library: The system cannot find the file specified. Error: open_udf_library: The operation completed successfully. Error Object: #f I am running FLuent on a Windows 7 64bit system and parallel on a local machine. Can someone help me with this? Many thanks. EH |
|
January 12, 2011, 22:32 |
|
#2 | |
Senior Member
Join Date: Feb 2010
Posts: 164
Rep Power: 17 |
Quote:
|
||
January 13, 2011, 03:02 |
|
#3 |
Member
EH
Join Date: Dec 2010
Posts: 61
Rep Power: 15 |
Hi,
Thanks for your reply but the case file and the udf are in a path that does not contain spaces. D:\USERS\EHOOI\Fluent\SONO\FLUENT_EH\Fabric_100_10 Jan I have been trying to solve this issue for some time now and any help will be gratefully appreciated. |
|
January 13, 2011, 11:55 |
|
#4 |
Senior Member
Join Date: Feb 2010
Posts: 164
Rep Power: 17 |
There is a space in "Fabric_100_10 Jan", right?between "Fabric_100_10" and "Jan".
|
|
January 13, 2011, 12:02 |
|
#5 |
Member
EH
Join Date: Dec 2010
Posts: 61
Rep Power: 15 |
Hi,
There is no space there. Sorry for the mistake there. The directory is: D:\USERS\EHOOI\Fluent\SONO\FLUENT_EH\Fabric_100_10 Jan which has no space. I have no idea what is wrong. |
|
January 13, 2011, 21:40 |
|
#6 |
Senior Member
Join Date: Feb 2010
Posts: 164
Rep Power: 17 |
Another possibility is that you install ansys under "Program files", which has a space.
|
|
January 14, 2011, 06:20 |
|
#7 |
Member
EH
Join Date: Dec 2010
Posts: 61
Rep Power: 15 |
Hi,
Thanks for your reply. Yes Ansys is installed in C:\Program Files\ANSYS Inc There are spaces in Program Files and Ansys Inc. Are you saying that the spaces will cause error when trying to run parallel UDF? But ANSYS Inc is a default folder created by ansys....does it mean I would have to change that as well? Thanks. EH |
|
January 17, 2011, 09:58 |
|
#8 | |
Senior Member
Join Date: Feb 2010
Posts: 164
Rep Power: 17 |
Quote:
|
||
September 27, 2011, 04:01 |
Please let me know about the outcome
|
#9 |
New Member
Ehsan
Join Date: Jun 2011
Posts: 9
Rep Power: 15 |
Hi,
Ehooi, I have the same problem with the same error. Ansys is installed in "program file" please let me know if you could find the answer. it take me more than 2 weeks but still no progress. Ehsan |
|
September 27, 2011, 04:09 |
|
#10 | |
Member
EH
Join Date: Dec 2010
Posts: 61
Rep Power: 15 |
Quote:
Hope this helps |
||
September 27, 2011, 04:14 |
|
#11 |
Member
EH
Join Date: Dec 2010
Posts: 61
Rep Power: 15 |
I attached another file containing some help. I couldn't get this to work in mine but maybe it will help in your case. The way I did it was mentioned in my earlier reply to you.
|
|
September 27, 2011, 04:33 |
|
#12 |
New Member
Ehsan
Join Date: Jun 2011
Posts: 9
Rep Power: 15 |
Thanks for your quick reply,
I will try that and see if helps. have you installed first visual c++ then fluent or it does not any matter? and then install SDK. Thanks Ehsan |
|
September 27, 2011, 04:35 |
|
#13 |
Member
EH
Join Date: Dec 2010
Posts: 61
Rep Power: 15 |
Fluent can be installed first, that doesnt matter. But in terms of visual c++ and SDK, I dont remember but I think installing C++ first will make more sense. Just give it a try.
|
|
September 27, 2011, 05:07 |
|
#14 |
New Member
Ehsan
Join Date: Jun 2011
Posts: 9
Rep Power: 15 |
Hi Ehooi,
thanks for sending pdf; seems it is not working, I have installed C++ 2010 express edition and SDK 7.1 Thanks , it can be built now but I cannot load it. the error is: Errorpen_udf_library:The system cannot find the file specified. have you set environment variables for c++ and fluent before you get them working? what you added to your path? I have added these three: C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin;C:\Program Files\ANSYS Inc\v120\fluent\ntbin\win64 please let me know if you have any comment on that Many thanks EHsan Last edited by Ehsan-F; September 27, 2011 at 06:12. |
|
September 27, 2011, 07:15 |
|
#15 | |
Member
EH
Join Date: Dec 2010
Posts: 61
Rep Power: 15 |
Quote:
|
||
September 27, 2011, 13:40 |
|
#16 |
New Member
Ehsan
Join Date: Jun 2011
Posts: 9
Rep Power: 15 |
Hi,
It works now, I just changed the file name from "gas nozzle" to "nozzle" then it works. Thanks alot for all your helps Ehsan |
|
November 2, 2011, 03:33 |
|
#17 |
Senior Member
Mohsin Mukhtar
Join Date: Mar 2010
Location: South Korea
Posts: 249
Rep Power: 17 |
Dear Ehsan,
I have got exactly same problem. Could you tell me which file name you had changed? Case and Data file names? Apparently it seems that they shouldn't have a space between them but mine has no space still i am getting the error. Any suggestion? Greatly thanks |
|
November 2, 2011, 03:45 |
|
#18 |
New Member
Ehsan
Join Date: Jun 2011
Posts: 9
Rep Power: 15 |
Hi Mohsin,
I have attached a file containing what I have done, see that may help you. The source file should not have space in its name but your problem maybe different, check the file Ehsan |
|
November 2, 2011, 21:53 |
|
#19 |
Senior Member
Mohsin Mukhtar
Join Date: Mar 2010
Location: South Korea
Posts: 249
Rep Power: 17 |
Dear Ehsan,
Thanks alot. Problem solved. |
|
January 27, 2014, 14:07 |
|
#20 |
New Member
Kieran
Join Date: Dec 2013
Posts: 6
Rep Power: 13 |
I encountered the same problem. I made a new workbench case without any spaces in its name and everything seemed to work OK.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic Mesh UDF | Qureshi | FLUENT | 7 | March 23, 2017 08:37 |
UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 23:14 |
How to add a UDF to a compiled UDF library | kim | FLUENT | 3 | October 26, 2011 22:38 |
UDF...UDF...UDF...UDF | Luc SEMINEL | FLUENT | 0 | November 25, 2002 05:03 |
UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 05:01 |