CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   PROBLEM WItH COMPILED UDF. (https://www.cfd-online.com/Forums/fluent/46516-problem-compiled-udf.html)

Nia November 5, 2007 10:18

PROBLEM WItH COMPILED UDF.
 
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

Nia November 5, 2007 15:26

Re: PROBLEM WItH COMPILED UDF.
 
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

Nia November 5, 2007 15:27

Re: PROBLEM WItH COMPILED UDF.
 
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

Nia November 6, 2007 07:35

COULD ANYONE HELP ME?
 
THANKS.

max November 6, 2007 10:55

Re: COULD ANYONE HELP ME?
 
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


Nia November 6, 2007 11:53

Re: COULD ANYONE HELP ME?
 
YHANK THANK THANK

It realy work. wow...............!!!!!!!!!!


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