CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   compiling UDF (https://www.cfd-online.com/Forums/fluent/35564-compiling-udf.html)

joyce January 26, 2005 11:10

compiling UDF
 
Hi,

I am trying to compile a UDF. I put the .c file and udf.h file in the same directory as the .cas file. there is no other .h file created by myself. When I clikc "build", it did create the directory and copy a few files in that directory, but when click "load" it gave me an error message say "Error: open_udf_library: The system cannot find the file specified."

Is there anyone can tell me why it happened and how to solve the problem?

Thanks a lot.

joyce


Diet January 26, 2005 11:28

Re: compiling UDF
 
are you sure there aren't any syntax errors in your code? you should check the log file first in order to localize and correct the syntax errors.

greetz

joyce January 26, 2005 16:44

no syntax errors
 
Hi,

Thank you for your reply. There is no syntax errors, then how could this happen?

Thank you.

Bing Ma

joyce January 26, 2005 17:01

no syntax errors
 
Hi,

Thank you for your reply. There is no syntax errors, then how could this happen?

Thank you.

Bing Ma

Diet January 27, 2005 04:43

Re: no syntax errors
 
You don't have to put the udf.h file explicitly in your directory. just the .c file is enough. The rest(udf.h) fluent will find or create on its own... I think this could be the error, but i'm not sure... you can try this by deleting the udf.h file....

Diet

Swarup January 30, 2005 10:02

Re: compiling UDF
 
Hi Joyce,

you should put your .c file in src folder that contains all sorts of UDFs in Fluent. you should not forget .c extension to your filename. the moment you compile your UDF, a file "udfconfig.h" is automatically created and you can leave it untouched.

This may help you. Regards, Swarup.


All times are GMT -4. The time now is 00:13.