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

Error: get_udf_function

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 23, 2002, 14:15
Default Error: get_udf_function
  #1
Ridha
Guest
 
Posts: n/a
Hi, I've just written up some code compiled UDF, . It compiled OK (which doesn't mean much) but I get an error when fluent tries to call the function:

Error: get_udf_function: function Cell_mass_diffisivity has wrong type: 0 != 2 Error Object: ()

What does this mean and how can I fix it? I am a novice at C programming so it is probably something majorly wrong with the variable and function types I'm using. Here's the code:

#include"udf.h" DEFINE_PROPERTY(Cell_mass_diffisivity,cell,thread)

{

real Ks;

double temp=C_T(cell,thread);

double YI=C_YI(cell,thread,0);

Ks=(0.58+0.03*(temp-273.15)+0.0002*(temp-273.15)*(temp-273.15)+(0.001*YI*YI))*pow(10,-9);*/

return Ks ;

}
  Reply With Quote

Old   October 24, 2002, 23:48
Default Re: Error: get_udf_function
  #2
yawi
Guest
 
Posts: n/a
your word 'diffissivity' should be 'diffusivity'

why do not you use interpreted udf?
  Reply With Quote

Old   October 25, 2002, 12:27
Default Re: Error: get_udf_function
  #3
Ridha
Guest
 
Posts: n/a
hi yawi i use diffisivity et nor diffissivity????? i use compiling mode because ia use static in other udfs. thank you
  Reply With Quote

Old   October 26, 2002, 04:56
Default Re: Error: get_udf_function
  #4
yawi
Guest
 
Posts: n/a
hi

"include" and "DEFINE" can not be on the same line! you should write as follows: #include "udf.h" DEFINE_PROPERTY(Cell_mass_diffisivity,cell,thread)
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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



All times are GMT -4. The time now is 04:38.