boundary faces number
Hello
I want Know how can compute number wall faces ? I wrote one udf but it compute number of all faces of all threads and its wrong . Note : it works True in number of cells. #include "udf.h" DEFINE_ADJUST(number,d) { Thread *t1; Thread *t2; face_t i; cell_t j; real n_face=0.; real n_cell=0.; thread_loop_f(t1,d) begin_f_loop(i,t1) n_face++; end_f_loop(i,t1) thread_loop_c(t2,d) begin_c_loop(j,t2) n_cell++; end_c_loop(j,t2) printf("face number is :%g\n=", n_face) ; printf("cell number is :%g\n=", n_cell); } Thanks. |
All times are GMT -4. The time now is 04:14. |