|
[Sponsors] |
February 16, 2009, 12:15 |
help problem with "syntax error"
|
#1 |
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) } |
|
|
|
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 |