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/)
-   -   interpreting UDF (http://www.cfd-online.com/Forums/fluent-udf/105327-interpreting-udf.html)

daniel_ortega79 July 27, 2012 14:37

interpreting UDF
 
I have written a UDF code and saved it as UDF.C in my ntx86 folder. But when I want to interpret it in my fluent it shows the below error:
line 18: parse error
my line 18 is:
DEFINE_PROFILE(x_velocity,t,i)

is there something wrong with my udfconfig.h file? because I made some changes in my udf file and saved them in my udf.c file but didn't change anything else.

amir2920 July 27, 2012 18:19

Quote:

Originally Posted by daniel_ortega79 (Post 374015)
I have written a UDF code and saved it as UDF.C in my ntx86 folder. But when I want to interpret it in my fluent it shows the below error:
line 18: parse error
my line 18 is:
DEFINE_PROFILE(x_velocity,t,i)

is there something wrong with my udfconfig.h file? because I made some changes in my udf file and saved them in my udf.c file but didn't change anything else.

I think there is some mistakes in your line 18. I used this and it worked.

DEFINE_PROFILE(inlet_x_velocity, thread, position)

You can find the meaning of each one in FLUENT manual. (e.g. Inlet_X_velocity is the name of UDF)

Good luck


All times are GMT -4. The time now is 08:42.