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

using UDF to real file

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   November 4, 2008, 16:37
Default using UDF to real file
  #1
Ellen
Guest
 
Posts: n/a
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
  Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
i need your real help sihat FLUENT 3 August 8, 2007 15:00
[Fortran] (-real number)**(- or + real number) jinwon Main CFD Forum 3 June 14, 2007 14:50
REAL GAS UDF brian FLUENT 6 September 11, 2006 08:23
Real Gas Alireza Zarif FLUENT 0 October 30, 2005 10:53
What is real? - Main CFD Forum 0 December 26, 2004 12:28


All times are GMT -4. The time now is 12:47.