CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   UDF and "DEFINE_RW_FILE(writer,fp)" (http://www.cfd-online.com/Forums/fluent/40469-udf-define_rw_file-writer-fp.html)

Nico Hoffmann April 6, 2006 08:16

UDF and "DEFINE_RW_FILE(writer,fp)"
 
Hello,

I have to create an UDF which does some calculations for every time step an writes the results to a file.

For the fileIO I found 'DEFINE_RW_FILE', which needs a file pointer (fp). I found no hint where to take this filepointer. I tried something like

FILE * fp; fp = fopen("blafasel.dat", "w");

but I got error messages from the interpreter, and without that I got error messages from fluent...

How I have to supply this file pointer to my UDF? (I am working on al linux box, if that does matter.)

Kind regards,

Nico



All times are GMT -4. The time now is 21:15.