CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   UDF PROBLEM!! (https://www.cfd-online.com/Forums/fluent/34150-udf-problem.html)

Javier July 8, 2004 11:40

UDF PROBLEM!!
 
Hello: Im working in a udf to define a profile to the boundary conditions. But when i try to use a function with pow (x,y) (elevate x to y)and then when i interpretate the function i take a message error. Also this hapen whith all the other misccellanius function of the fluent help.

My udf works well when i quit the pow,sqrt,log... function?

Does anyone knows why? í`ve allready defined my vars as double.

Thanks. Javier.

Ajay July 8, 2004 15:15

Re: UDF PROBLEM!!
 
The interpreted version of UDF allow very limited use of C. POW is not one of them.

Try compiling your UDF instead of interpreting them.

-Ajay

ap July 18, 2004 07:57

Re: UDF PROBLEM!!
 
Try to check FLUENT UDF Manual to see what math functions are supported by the interpreter. I'm sure there is a sqrt (maybe with capital letter), and others. But the full set of math functions is only available in compiled UDF, including the math.h header file of the compiler.

P.S. In FLUENT use the 'real' type of data, because it is more general and maked your code usable both in single and double precision calculations.

Hi :)

ap



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