CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Fluent UDF and Scheme Programming

Errors when interpreting UDF

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   August 23, 2010, 08:27
Default Errors when interpreting UDF
  #1
Member
 
iman vasefi
Join Date: Aug 2010
Posts: 39
Rep Power: 6
elah599 is on a distinguished road
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
elah599 is offline   Reply With Quote

Old   August 24, 2010, 06:32
Default
  #2
Senior Member
 
Max
Join Date: Mar 2009
Posts: 133
Rep Power: 8
coglione is on a distinguished road
Your Define_Property UDF should at least return some value to the solver.
A last line like: return ktc; would do this.
cheers
coglione is offline   Reply With Quote

Old   August 25, 2010, 04:04
Default
  #3
Member
 
iman vasefi
Join Date: Aug 2010
Posts: 39
Rep Power: 6
elah599 is on a distinguished road
thank you so much!
it worked
elah599 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 15:33
Building OpenFOAM1.7.0 from source ata OpenFOAM Installation 42 May 14, 2012 20:48
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 02:58
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 19:07


All times are GMT -4. The time now is 13:09.