udf
Hi,every body. I want to do an udf example suggested by fluent 6.1 udf manual as follow ,but while iterpreting this message is appear:(my fluent is 6.0.12) cpp -IC:\FLUENT.INC\fluent6.0/src -IC:\FLUENT.INC\fluent6.0/cortex/src -IC:\FLUENT.INC\fluent6.0/client/src -IC:\FLUENT.INC\fluent6.0/multiport/src -I. -DUDFCONFIG_H="<udfconfig.h>" f:\udfexample.cError: f:\udfexample.c: line 1: parse error. may any one help me.
/************************************************** ******** udfexample.c UDF for specifying a steady-state velocity profile boundary condition ************************************************** ********/ #Include "udf.h" /* must be at the beginning of every UDF you write */ DEFINE_PROFILE(inlet_x_velocity, thread, index) { real x[ND_ND]; /* this will hold the position vector */ real y; face_t f; begin_f_loop(f, thread) /* lo.over all f. in the th. Pa. in the DE.macro argument*/ } F_CENTROID(x,f,thread); y = x[1]; F_PROFILE(f, thread, index) = 20. - y*y/(.0745*.0745)*20; } end_f_loop(f, thread) } |
Re: udf
You have a try... change Capital "I" in "#include" to "i"; change first "}" to "{".
By the way, the sequence of definition of variables in UDF is sensitive according to my experience. |
Re: udf
Hi,braket thanks for reply. i done your suggestion but the error is repeated.if the errore may be from my fluent version(6.0.12)? for example my graphical user intrface is diffrent from which is shone in fluent(6.1)help.
|
All times are GMT -4. The time now is 15:23. |