|
[Sponsors] |
August 23, 2010, 09:27 |
Errors when interpreting UDF
|
#1 |
Member
iman vasefi
Join Date: Aug 2010
Posts: 39
Rep Power: 16 |
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 |
|
August 24, 2010, 07:32 |
|
#2 |
Senior Member
Max
Join Date: Mar 2009
Posts: 133
Rep Power: 17 |
Your Define_Property UDF should at least return some value to the solver.
A last line like: return ktc; would do this. cheers |
|
August 25, 2010, 05:04 |
|
#3 |
Member
iman vasefi
Join Date: Aug 2010
Posts: 39
Rep Power: 16 |
thank you so much!
it worked |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Building OpenFOAM1.7.0 from source | ata | OpenFOAM Installation | 46 | March 6, 2022 14:21 |
How to write k and epsilon before the abnormal end | xiuying | OpenFOAM Running, Solving & CFD | 8 | August 27, 2013 16:33 |
parse error while interpreting udf | Kristin | Fluent UDF and Scheme Programming | 3 | March 15, 2012 07:43 |
IcoFoam parallel woes | msrinath80 | OpenFOAM Running, Solving & CFD | 9 | July 22, 2007 03:58 |
Could anybody help me see this error and give help | liugx212 | OpenFOAM Running, Solving & CFD | 3 | January 4, 2006 19:07 |