CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (
-   -   Error about UDF (

zhou September 26, 2003 17:53

Error about UDF
I defined a constant density for mixture material by UDF as follow, but there are some errors information as following. Do you know what is problem? Thanks.

DEFINE_PROPERTY(cell_density,c,t) {

real den;


return den; } cc: "den.c", line 4: error 1000: Unexpected symbol: "den". cc: "den.c", line 4: error 1588: "real" undefined. cc: "den.c", line 5: error 1588: "den" undefined. *** Error exit code 1

ap September 27, 2003 07:52

Re: Error about UDF
Just change the name of the variable den to something different, like "rho_mix", or easier, write the function as follow:


From the error message, it seems that the internal compiler of FLUENT has some problem to manage the symbol you have choosen for the variable.

Hi :)


All times are GMT -4. The time now is 10:25.