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

looping over face threads in domain

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 1, 2010, 08:01
Default looping over face threads in domain
  #1
New Member
 
Marek
Join Date: Jul 2010
Posts: 3
Rep Power: 7
mrojczyk is on a distinguished road
Dear Users
I have a problem with my udf.
Could you help my to fix it?


/************************************************** *****
faces_1
01.07.2010
************************************************** *****/

#include "udf.h"


DEFINE_ADJUST(radiation_adjust, domain)
{

real x[ND_ND];
Thread *f_thread;
FILE *fout_face;
face_t f;

fout_face = fopen("data1.out", "w");

{

thread_loop_f(f_thread, domain)/* loops over all face threads in a domain*/
{
Message("The file was created: %d\n", fout_face);


begin_f_loop(f, f_thread) /* loops over faces in a face thread */
{
F_CENTROID(x,f,f_thread);
fprintf(fout_face, "%g %g %g %g\n", x[0], x[1], x[2], F_T(f, f_thread));
}
end_f_loop(f, f_thread)

}
fclose(fout_face); /* close the file pointed to by fout */
Message("The file was created: %d\n", fout_face);
}
}
mrojczyk 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
Import netgen mesh to OpenFOAM hsieh Open Source Meshers: Gmsh, Netgen, CGNS, ... 32 September 13, 2011 05:50
BlockMeshmergePatchPairs hjasak OpenFOAM Native Meshers: blockMesh 11 August 15, 2008 07:36
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55
Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Native Meshers: blockMesh 10 April 2, 2007 14:00
Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 2 July 15, 2005 04:15


All times are GMT -4. The time now is 08:23.