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

A problem about 'printf' and 'Message' in UDF.

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

Like Tree1Likes
  • 1 Post By LICH

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 22, 2010, 22:48
Question A problem about 'printf' and 'Message' in UDF.
  #1
New Member
 
Chao Li
Join Date: Mar 2010
Location: Shanghai.PRC
Posts: 9
Rep Power: 15
LICH is on a distinguished road
Hi,

I'm trying to write a UDF. But there is a tiny and boring problem now.

To any UDF(whatever it is, even an example in Fluent UDF guidebook):
1. It CAN be compiled correctly. (with NO error & warning)
2. It CAN be hooked correctly.
3. It DOES work. (I tested this by changing the UDF code)

BUT, whatever I used 'printf' or 'Message', it just CAN'T print any message in FLUENT console.

I tested the UDF in other's computer, it worked and give the message in FLUENT console. I even copy that guy's DLL & LIB files to my machine to compile the UDF. It worked, but still can't print anything.

It's really a tiny problem. But it is important for debugging. I'm so confused.

Thanks a lot!!
Lucrecio likes this.
LICH is offline   Reply With Quote

Old   November 24, 2010, 02:32
Default
  #2
New Member
 
Chao Li
Join Date: Mar 2010
Location: Shanghai.PRC
Posts: 9
Rep Power: 15
LICH is on a distinguished road
Hi~~It works!

I just reinstall the FLUENT and VC. Maybe there is something wrong before. But I still don't exactly know the reason.

Anyway, thanks a lot and good luck!
LICH is offline   Reply With Quote

Old   May 2, 2013, 03:45
Default
  #3
Member
 
sadjad.s's Avatar
 
sadjad
Join Date: Jan 2012
Posts: 72
Rep Power: 14
sadjad.s is on a distinguished road
Send a message via Yahoo to sadjad.s
Thanks for sharing the answer.
sadjad.s is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF Ash FLUENT 4 September 17, 2007 17:38
UDF problem Dimitris Fidaros FLUENT 3 June 20, 2007 21:59
UDF moment ( torque ) computation aja FLUENT 1 March 28, 2007 17:55


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