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

boundary faces number

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 8, 2013, 04:58
Default boundary faces number
  #1
New Member
 
morteza
Join Date: Jan 2013
Posts: 8
Rep Power: 13
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 9, 2013 at 00:31.
yoollooz is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


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


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