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

udf problem too

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 7, 2003, 07:41
Default udf problem too
  #1
Guevara
Guest
 
Posts: n/a
I wrote my udf forms and successfully compiled in fluent, but I received this error message. I don't konw exactly what to say. Frankly speaking, I don't have a concept of writing udf forms and distinguish function returns type void and real. so can anybody help me!! plz (udf.cchip-exec: cathode_source: wrong return type: void udf function expected)

DEFINE_SOURCE(cathode_source, cell, thread, dS, eqn)

{

real x[ND_ND];

real source, t1;

Thread *t;

face_t f;

cell_t c;

C_T(c,t);

C_CENTROID(x, c, thread);

t1=C_T(F_C1(f,t), t);

source=fabs(Jc)*5*kb*(t1-temp_a)/(2*e);

dS[eqn]=0.0;

}
  Reply With Quote

Old   March 7, 2003, 11:00
Default Re: udf problem too
  #2
prizain
Guest
 
Posts: n/a
try this

DEFINE_SOURCE(cathode_source, cell, thread, dS, eqn)

{

real x[ND_ND];

real source, t1;

Thread *t;

face_t f;

cell_t c;

C_T(c,t);

C_CENTROID(x, c, thread);

t1=C_T(F_C1(f,t), t);

source=fabs(Jc)*5*kb*(t1-temp_a)/(2*e);

dS[eqn]=0.0;

return source; /* missing */ }

question : you have not declared Jc, kb, temp_a, e, maybe declared in global constant!
  Reply With Quote

Old   March 7, 2003, 11:05
Default Re: udf problem too
  #3
prizain
Guest
 
Posts: n/a
i'm sorry, it's not the solution for you!! i just read the message before (friday)... sorry, this prog seems to be correct...
  Reply With Quote

Old   March 7, 2003, 21:32
Default Re: udf problem too
  #4
Guevara
Guest
 
Posts: n/a
thank for your concern....

I don;t konw how to wirte.. plz... anyboby help me
  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
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 40 March 18, 2018 06:05
Problem with my udf july Fluent UDF and Scheme Programming 3 June 20, 2010 06:56
UDF problem mansha goraya FLUENT 0 October 29, 2007 00:31
udf compiling problem akr FLUENT 3 August 22, 2007 07:14
UDF problem chiseung FLUENT 4 January 10, 2002 09:58


All times are GMT -4. The time now is 11:25.