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

Error: get_udf_function

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 23, 2002, 13: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, 22: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, 11: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, 03: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
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



All times are GMT -4. The time now is 22:02.