|
[Sponsors] |
March 7, 2003, 07:41 |
udf problem too
|
#1 |
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; } |
|
March 7, 2003, 11:00 |
Re: udf problem too
|
#2 |
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! |
|
March 7, 2003, 11:05 |
Re: udf problem too
|
#3 |
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...
|
|
March 7, 2003, 21:32 |
Re: udf problem too
|
#4 |
Guest
Posts: n/a
|
thank for your concern....
I don;t konw how to wirte.. plz... anyboby help me |
|
|
|
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 |