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

PROBLEM WItH COMPILED UDF.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 5, 2007, 11:18
Default PROBLEM WItH COMPILED UDF.
  #1
Nia
Guest
 
Posts: n/a
Hello,

I'm trying to learn about UDFs. I've Written a simple UDF as follows:

#include "udf.h"

DEFINE_ADJUST(size, domain)

{

int s = 0;

printf("the value of size is: %d\n", s);

}

This very simple UDF works correctly when I interpret it,but when I copmile it doesn't work. The fluent doesn't give me any error. Can anybody give me some advice?

Thanks in advance
  Reply With Quote

Old   November 5, 2007, 16:26
Default Re: PROBLEM WItH COMPILED UDF.
  #2
Nia
Guest
 
Posts: n/a
I Actually want it for my project, and I'm badly in need of it. Does anybody koe something about it? Help, Please help!

Thanks in advance
  Reply With Quote

Old   November 5, 2007, 16:27
Default Re: PROBLEM WItH COMPILED UDF.
  #3
Nia
Guest
 
Posts: n/a
I Actually want it for my project, and I'm badly in need of it. Does anybody know something about it? Help, Please help!

Thanks in advance
  Reply With Quote

Old   November 6, 2007, 08:35
Default COULD ANYONE HELP ME?
  #4
Nia
Guest
 
Posts: n/a
THANKS.
  Reply With Quote

Old   November 6, 2007, 11:55
Default Re: COULD ANYONE HELP ME?
  #5
max
Guest
 
Posts: n/a
Hi Nia

I prefer to use

Message0("the value of size is: %d\n", s);

instead of printf("the value of size is: %d\n", s);

Hope this helps

Max

  Reply With Quote

Old   November 6, 2007, 12:53
Default Re: COULD ANYONE HELP ME?
  #6
Nia
Guest
 
Posts: n/a
YHANK THANK THANK

It realy work. wow...............!!!!!!!!!!
  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
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 05:43
problem with udf for dynamic mesh ja92 FLUENT 0 February 24, 2011 10:32
Help! Compiled UDF problem 4 Wave tank tutorial Shane FLUENT 1 September 3, 2010 03:32
UDF variables F1, y / problem with UDF Fabian FLUENT 6 June 2, 2003 11:22
how to quit compiled or interprited UDF tian FLUENT 0 April 9, 2003 00:53


All times are GMT -4. The time now is 01:41.