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 |
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 |
no syntax errors
Hi,
Thank you for your reply. There is no syntax errors, then how could this happen? Thank you. Bing Ma |
no syntax errors
Hi,
Thank you for your reply. There is no syntax errors, then how could this happen? Thank you. Bing Ma |
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 |
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. |