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

help problem with "syntax error"

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 16, 2009, 12:15
Default help problem with "syntax error"
  #1
Bo
Guest
 
Posts: n/a
I write a udf to define the velocity profile. It can run very well in old fluent version. But when it run in new version, it always show "syntax error". Who knows how to solve this problem. pls. give me a favor.

Thanks very much

#include "udf.h"

DEFINE_PROFILE(pump_velocity,thread,position)

{

face_t f;

real t = CURRENT_TIME, tt;

real interval = 0.5;

int on, s;

if (t>0 || t<0.5) t=t;

else t= 1-t;

s = (int)(t/interval);

tt = t - (real)(s*interval);

on = tt < 0.25 ? 1 : 0;

begin_f_loop(f, thread)

{

F_PROFILE(f, thread, position) = 0.00104405*on*sin(4*M_PI*tt);

}

end_f_loop(f, thread)

}

  Reply With Quote

Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Syntax Error Virag CFX 4 February 3, 2019 08:59
Syntax Error Ketan FLUENT 0 August 14, 2006 17:10
Syntax error again Szabolcs Varga FLUENT 0 April 21, 2004 06:38
Syntax error Szabolcs Varga FLUENT 0 April 20, 2004 11:53
UDF syntax error Duc FLUENT 2 June 11, 2002 10:27


All times are GMT -4. The time now is 18:48.