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

parse error in udf for velocity profile

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 10, 2009, 15:02
Default parse error in udf for velocity profile
  #1
Member
 
shubham
Join Date: Mar 2009
Posts: 48
Rep Power: 9
shubham208011 is on a distinguished road
Hi,
i want to model the unsteady flow for that i use this udf but it gives an error...

"H:\Fluent.Inc
tbin
tx86\cpp.exe -I"H:\Fluent.Inc\fluent6.3.26/src" -I"H:\Fluent.Inc\fluent6.3.26/cortex/src" -I"H:\Fluent.Inc\fluent6.3.26/client/src" -I"H:\Fluent.Inc\fluent6.3.26/multiport/src" -I. -DUDFCONFIG_H="<udfconfig.h>" "D:\DC++\unsteady velocitty.c"
Error: D:\DC++\unsteady velocitty.c: line 1: parse error."

#include "udf.h"
#include "flow.h"
DEFINE_PROFILE(velocity, thread, position) {
face_t f;
real z[ND_ND];
begin_f_loop(f, thread)
{
F_CENTROID(z,f,th);
real t = RP_Get_Real("flow-time");
if (t < 0.5)
F_PROFILE(f, thread, position) =0.0007210229* exp(13.083385*t);
else
{
if (0.5<= t < 5)
F_PROFILE(f, thread, position) = 0.5;
else
{
if (5<=t<5.5)
F_PROFILE(f, thread, position) =0.0000000002* exp(-4.60517006*t);
else
F_PROFILE(f, thread, position) = 1.724662062*exp(-5.24894535*t)*pow(10.0,25.0);
}
}
}
end_f_loop(f, thread) }
plz help me to resolve this error...
thanks in advance..
shubham208011 is offline   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
3D UDF Paraboilc Velocity Profile (Can't Maintain) Sing FLUENT 11 October 24, 2016 04:49
parse error while interpreting udf Kristin Fluent UDF and Scheme Programming 3 March 15, 2012 07:43
Associating profile files for the UDS though a UDF Bharath FLUENT 0 December 1, 2006 16:58
UDF parse error on line 1 ..... (Unusual) Amit Maha FLUENT 4 June 30, 2006 12:15
UDF temp. profile BC Shashikant FLUENT 0 June 24, 2006 03:16


All times are GMT -4. The time now is 16:29.