CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Main CFD Forum (http://www.cfd-online.com/Forums/main/)
-   -   new user for help (http://www.cfd-online.com/Forums/main/83071-new-user-help.html)

kakayaofabiao December 13, 2010 23:30

new user for help
 
i am a new user of fluent CDF, i made and run a CDF and the error occured as follow:
cpp -IC:\Fluent.Inc\fluent6.2.16/src -IC:\Fluent.Inc\fluent6.2.16/cortex/src -IC:\Fluent.Inc\fluent6.2.16/client/src -IC:\Fluent.Inc\fluent6.2.16/multiport/src -I. -DUDFCONFIG_H="<udfconfig.h>" C:\Documents and Settings\Administrator\velocity_inlet.c
Error: C:\Documents and Settings\Administrator\velocity_inlet.c: line 1: parse error.

i do not know how to deal with it, and the CDF as follow:


#include"udf.h"
DEFINE_PROFILE(velocity_inlet,thread,position)
{
real x[ND_ND];
real y;
face_t f;
begin_f_loop(f,thread)
{
F_CENTROID(x,f,thread);
y=x[1]
F_PROFILE(f,thread,position)=0.5-y*y/(0.02*0.02)*0.5;
}
end_f_loop(f,thread)
}

thank you!


All times are GMT -4. The time now is 22:32.