CFD Online Logo CFD Online URL
Home > Forums > FLUENT

patching all faces ...

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

LinkBack Thread Tools Display Modes
Old   September 26, 2007, 19:35
Default patching all faces ...
bart weisser
Posts: n/a
Howdy there:

I am kinda stuck with a UDF of mine. I want to patch both the cell and face values of some variables. The cell part went without incident, but for the face part, it seems that it is only patching one face. How do I get the UDF to loop over *all* the faces? Here is a snippit of the code I used ...

The value of the variable face_count will be smaller than the total number of faces on the grid.

Thanks in advance, BW.

/************************************************** ***/

#include "udf.h"
#include "mem.h"

Domain *d;
Thread *t;
face_t *f;

int face_count;

d = Get_Domain (1);
face_count = 0;

thread_loop_f (t,d) {
begin_f_loop (f,t) {
} end_f_loop (f,t)

printf ("*** face count = %i ***\n", face_count);
  Reply With Quote


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
2.0.x on Mac OSX niklas OpenFOAM Installation on Windows, Mac and other Unsupported Platforms 74 March 28, 2012 16:46
snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Native Meshers: snappyHexMesh and Others 2 March 27, 2011 21:11
DecomposePar unequal number of shared faces maka OpenFOAM Pre-Processing 6 August 12, 2010 09:01
external flow with snappyHexMesh chelvistero OpenFOAM 11 January 15, 2010 20:43
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08

All times are GMT -4. The time now is 11:14.