CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   using UDF to real file (http://www.cfd-online.com/Forums/fluent/49697-using-udf-real-file.html)

Ellen November 4, 2008 16:37

using UDF to real file
 
Hi,

I've been trying to read a table to Fluent using UDF. I started simple: read a file which contains only one number. It can be interpreted, but when I run it, Fluent gave me an error message saying sth like "fatal error", asking me to exit and restart. Then I skipped the reading part (fscanf), and only open a file with "ifp = fopen("myfile.txt", "r"), but there's still the same error message.

I tried to write to a file using fopen and fprintf, and it worked ok.

Can anyone please give an idea why I can write but cannot read using UDF? or, please tell me where I did wrong.

Thank you in advance, Ellen


All times are GMT -4. The time now is 16:22.