void udf function expected
Hi to all! I have read the new "udf problem too" posted by Guevara from Friday 7 March 2003. And like to him, I have meet with similar problem. I wrote my udf and successfully compiled in Fluent 6.1, but when I wanted to start the initialization field and iterations I couldn't. I received an error message: "Error Object: () chip-exec: p_source_m0: wrong return type: void udf function expected". One of pieces from my udf:
DEFINE_SOURCE(p_source_m0, c, t, dS, eqn)
source_m0 = C_R(c,t)*C_UDSI(c,t,12);
If anybody can help me, I will be very grateful.
Re: void udf function expected
This could be due to your Fluent case and data file may have been linked to the some older UDFs (linked at the last compilation). If there is a difference in the names of the UDFs stored in the case file and the current compilation, you will see this kind of error. Or the UDFs stored in the Fluent case file is missing, for some reason, you will get this error too.
Solution: Open your case file, let it spit all the error messages, then go to the place where enabled the UDF and UNSELECT them.... Now, re-link the new UDFs.
|All times are GMT -4. The time now is 01:10.|