CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

UDF and "DEFINE_RW_FILE(writer,fp)"

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 6, 2006, 08:16
Default UDF and "DEFINE_RW_FILE(writer,fp)"
  #1
Nico Hoffmann
Guest
 
Posts: n/a
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

  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic Mesh UDF Qureshi FLUENT 7 March 23, 2017 07:37
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 22:14
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 21:38
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 04:03
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 04:01


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