CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   parse error wihle using unstaedy velocity profile (http://www.cfd-online.com/Forums/fluent-udf/63489-parse-error-wihle-using-unstaedy-velocity-profile.html)

shubham208011 April 9, 2009 16:20

parse error wihle using unstaedy velocity profile
 
Hi,
i want to model the unsteady flow for that i use this udf but it gives an error...:confused:

"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..


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