CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLUENT

boundary faces number

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   April 8, 2013, 03:58
Default boundary faces number
  #1
New Member
 
morteza
Join Date: Jan 2013
Posts: 8
Rep Power: 3
yoollooz is on a distinguished road
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 8, 2013 at 23:31.
yoollooz is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
fluentMeshToFoam multidomain mesh conversion problem Attesz OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 12 May 2, 2013 10:52
Add Mesh Layers doesnt work on the whole surface Kryo OpenFOAM Native Meshers: snappyHexMesh and Others 8 September 13, 2012 09:28
BlockMesh number internal faces and boundary ynos OpenFOAM Native Meshers: blockMesh 6 December 13, 2011 05:36
BlockMeshmergePatchPairs hjasak OpenFOAM Native Meshers: blockMesh 11 August 15, 2008 07:36
Please help with flow around car modelling! Tudor Miron CFX 17 March 19, 2004 19:23


All times are GMT -4. The time now is 05:17.