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; den=2967.7679; 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 |
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:
DEFINE_PROPERTY(cell_density,c,t) { return(2967.7679); } 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 :) ap |
All times are GMT -4. The time now is 10:31. |