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

Errors when interpreting UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread 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: 15
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: 17
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: 15
elah599 is on a distinguished road
thank you so much!
it worked
elah599 is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Building OpenFOAM1.7.0 from source ata OpenFOAM Installation 46 March 6, 2022 13:21
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 15:33
parse error while interpreting udf Kristin Fluent UDF and Scheme Programming 3 March 15, 2012 06: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 18:07


All times are GMT -4. The time now is 15:46.