how can i get the size of mesh with udf?
i'm writting a udf program to calculate the erosion rate of a workpiece. i want to get the mesh size with udf. with which macro can i get it?
thank you! |
Quote:
DEFINE_ON_DEMAND(on_demand_calc) { Domain *d = Get_Domain(1); /* declare domain pointer since it is not passed as an argument to the DEFINE macro */ Thread *t; cell_t c; face_t f; int n = 0; thread_loop_c(t,d) { if (FLUID_THREAD_P(t)) { begin_c_loop(c,t) /* loops over cells in a cell thread */ { n += 1; } end_c_loop(c,t) } } Message("grid size: %d\n", n); } Regards |
regarding cell dimensions
Quote:
|
All times are GMT -4. The time now is 02:28. |