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

error while implementing UDF

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 7, 2006, 06:31
Default error while implementing UDF
  #1
vijay
Guest
 
Posts: n/a
Hi,

I want to implement a udf for pressure as a function of time. I have given below the program that i wrote. But when i tried to interpret it in FLUENT it is saying line 1arse error. Can u please tell me how to rectify the mistake? Thanks in advance

#include "udf.h"

DEFINE_PROFILE(unsteady_pressure, thread, position) { face_t f;

begin_f_loop(f, thread)

{

real t = RP_Get_Real("flow-time");

F_PROFILE(f, thread, position) = 0.1691*(t^5) - 9.0129*(t^4) + 173.84*(t^3) - 1364.8*(t^2) + 357.61*t + 100981;

} end_f_loop(f, thread) }
  Reply With Quote

Old   April 7, 2006, 10:41
Default Re: error while implementing UDF
  #2
Aidan
Guest
 
Posts: n/a
the pow(x,y) fucnction must be used for x^y #include "udf.h"

DEFINE_PROFILE(unsteady_pressure, thread, position)

{

face_t f;

begin_f_loop(f, thread)

{

real t = RP_Get_Real("flow-time");

F_PROFILE(f, thread, position) = 0.1691*(pow(t,5)) - 9.0129*(pow(t,4)) + 173.84*(pow(t,3)) - 1364.8*(pow(t,2)) + 357.61*t + 100981;

}

end_f_loop(f, thread)

}

  Reply With Quote

Old   April 7, 2006, 23:49
Default Re: error while implementing UDF
  #3
vijay
Guest
 
Posts: n/a
Thanks a lot Aidan. Its working now.
  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
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 21:38
Implementing special K-eps with UDF Sergio Rossi FLUENT 2 November 26, 2008 12:44
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 05:03
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 05:01


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