udf problem too
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; } |
Re: udf problem too
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! |
Re: udf problem too
i'm sorry, it's not the solution for you!! i just read the message before (friday)... sorry, this prog seems to be correct...
|
Re: udf problem too
thank for your concern....
I don;t konw how to wirte.. plz... anyboby help me |
All times are GMT -4. The time now is 05:25. |