Errors when interpreting UDF
I wrote a udf for thermal conductivity dependent on a temperature.
#include "udf.h" DEFINE_PROPERTY(cell_thermalconductivity,cell,thre ad) { real ktc; real temp = C_T(cell,thread); ktc=(0.6*(1+(0.023*((pow(temp,1.2321))/(pow(10,(363.94/(temp-140)))))))); } when I run fluent,I see this error: Error: Floating point error: invalid number Error Object: () could you help me? thanks |
Your Define_Property UDF should at least return some value to the solver.
A last line like: return ktc; would do this. cheers |
thank you so much!
it worked |
All times are GMT -4. The time now is 23:39. |