BC problem with UDF.......
To all fluent experts all over the world,
Thank you for those who willing to send the UDF manual to me especially David and Mukkaram. I am facing a big problem. I need to define a BC for mass fraction for a wall BC which : Mass fraction in the BC not change with the mass fraction from the previuos cell. C_YI (BC) = C_YI (before/adjacent with BC) When i iterate, BC wall mass fraction = initiate guess value. May i know how to solve this problem?? Here is the UDF..... DEFINE_PROFILE(solute, thread, position) { real z; face_t f; cell_t c = F_C0(f,thread) ; Thread *t= THREAD_T0(thread); begin_f_loop(f,thread); {z = C_YI(c,t,i); F_PROFILE(f, thread, position) = z ;} end_f_loop(f, thread);} Thank you . From KKLAU |
Re: BC problem with UDF.......
Hi,
you have to specify "i" of C_YI(c,t,i). This "i" shows species number and should be specified by you. And z=C_YI(c,t,i) should be changed as z=C_YI(c,thread,i). Thank you. FJ |
All times are GMT -4. The time now is 17:32. |