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

UDF PROBLEM!!

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 8, 2004, 11:40
Default UDF PROBLEM!!
  #1
Javier
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.
  Reply With Quote

Old   July 8, 2004, 15:15
Default Re: UDF PROBLEM!!
  #2
Ajay
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
  Reply With Quote

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

  Reply With Quote

Reply

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 30 March 21, 2014 06:34
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 09:58


All times are GMT -4. The time now is 09:52.