CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (
-   -   what's wrong with the UDF (

major February 26, 2005 02:41

what's wrong with the UDF
hello, everyone, my UDF is as follow:

include "udf.h" DEFINE_PROPERTY(cell_diffusion_coefficent,c,t) { real ud; real rho=C_R(c,t); real mu=C_MU_EFF(c,t); ud=mu/rho; return ud; }

when i interpreted it in fluent 6.1.22,the folowing error messages are given:

DUDFCONFIG_H="<udfconfig.h>" E:\user CFD\diffusion coefficient. cError: E:\user CFD\diffusion coefficient.c: line 1: parse error.

thanks in advance for any help!

Y February 26, 2005 07:29

Re: what's wrong with the UDF
You made very simple mistake you did not put # sign before your include "udf.h".

it should be like this #include "udf.h"


Bikash February 26, 2005 11:39

Re: what's wrong with the UDF
may be your ###.c file is not in the same location as is your cas file. or your ###.c file should be in the same folder where you read your .msh file.(if you just opened your.msh file)

major February 27, 2005 10:35

Re: what's wrong with the UDF
thanks for help! I'm sorry for missing the "#" in the forum, but there is "#" in my UDF when I interpreted it to FLUENT. My ***.c file and my case file are under the same directory. There's no mesh file under the directory. I'll try to put them in the same folder and intertpret it again.

Y February 28, 2005 13:23

Re: what's wrong with the UDF
Hey the program should run since its working for me. Y

major March 2, 2005 10:32

Re: what's wrong with the UDF
Dear Y, I want to know if this program can be interpreted successfully in your fluent case. Thanks for responsing!

major March 3, 2005 07:39

Re: what's wrong with the UDF
I have done this problem. Thanks for each responsing!

All times are GMT -4. The time now is 15:38.