|
[Sponsors] |
April 8, 2013, 04:58 |
boundary faces number
|
#1 |
New Member
morteza
Join Date: Jan 2013
Posts: 8
Rep Power: 13 |
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. Last edited by yoollooz; April 9, 2013 at 00:31. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] Add Mesh Layers doesnt work on the whole surface | Kryo | OpenFOAM Meshing & Mesh Conversion | 13 | February 17, 2022 08:34 |
[Commercial meshers] fluentMeshToFoam multidomain mesh conversion problem | Attesz | OpenFOAM Meshing & Mesh Conversion | 12 | May 2, 2013 11:52 |
[blockMesh] BlockMesh number internal faces and boundary | ynos | OpenFOAM Meshing & Mesh Conversion | 6 | December 13, 2011 06:36 |
[blockMesh] BlockMeshmergePatchPairs | hjasak | OpenFOAM Meshing & Mesh Conversion | 11 | August 15, 2008 08:36 |
Please help with flow around car modelling! | Tudor Miron | CFX | 17 | March 19, 2004 20:23 |