sriah
|
September 10, 2006 21:57 |
Re: how to get the nodes spacing near the interfac
here is my UDF.there is something wrong.It shows "c_thread is unceclared" .pls help me: #include "udf.h" DEFINE_MASS_TRANSFER(vapourvapour,c,t,from_phase,f rom_index,to_phase,to_index) { real x[ND_ND]; real y1,z1; Thread *t; cell_t c; Domain *domain; domain=Get_Domain(4); Thread *c_thread=THREAD_SUB_THREAD(t,to_index); int i=2; thread_loop_c(c_thread,domain) { begin_c_loop (c,c_thread) { C_CENTROID(x,c,c_thread); y1=x[1]; z1=C_YI_M1(c,c_thread,i); } end_c_loop(c,c_thread) } return z1; }
|