CFD Online Logo CFD Online URL
Home > Forums > FLUENT


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

LinkBack Thread Tools Display Modes
Old   July 8, 2004, 11:40
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.
  Reply With Quote

Old   July 8, 2004, 15:15
Default Re: UDF PROBLEM!!
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.

  Reply With Quote

Old   July 18, 2004, 07:57
Default Re: UDF PROBLEM!!
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.



  Reply With Quote


Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 32 May 8, 2015 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 01:31
udf compiling problem akr FLUENT 3 August 22, 2007 07:14
UDF problem chiseung FLUENT 4 January 10, 2002 10:58

All times are GMT -4. The time now is 23:06.