someone help me please with my UDF
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 |
Quote:
|
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. |
Quote:
|
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. |
Quote:
|
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 |
Quote:
|
Please let me know about the outcome
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 |
Quote:
Hope this helps |
1 Attachment(s)
Quote:
|
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 |
Quote:
|
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: Error:open_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 |
Quote:
|
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 |
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 |
1 Attachment(s)
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 |
Dear Ehsan,
Thanks alot. Problem solved. |
I encountered the same problem. I made a new workbench case without any spaces in its name and everything seemed to work OK.
|
All times are GMT -4. The time now is 14:37. |