|
[Sponsors] |
July 8, 2004, 11:40 |
UDF PROBLEM!!
|
#1 |
Guest
Posts: n/a
|
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. |
|
July 8, 2004, 15:15 |
Re: UDF PROBLEM!!
|
#2 |
Guest
Posts: n/a
|
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 |
|
July 18, 2004, 07:57 |
Re: UDF PROBLEM!!
|
#3 |
Guest
Posts: n/a
|
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM | Rizwan | Fluent UDF and Scheme Programming | 40 | March 18, 2018 06:05 |
Problem with my udf | july | Fluent UDF and Scheme Programming | 3 | June 20, 2010 06:56 |
UDF problem | mansha goraya | FLUENT | 0 | October 29, 2007 00:31 |
udf compiling problem | akr | FLUENT | 3 | August 22, 2007 07:14 |
UDF problem | chiseung | FLUENT | 4 | January 10, 2002 09:58 |