CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT

face loop over cells

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

LinkBack Thread Tools Display Modes
Old   September 29, 2004, 10:31
Default face loop over cells
Szabolcs Varga
Posts: n/a
Dear all, I wrote a simple UDF with the c_face_loop(c, t, n) macro that I cannot interpret. It gives an error:

cpp -ID:\FLUENT.INC\fluent6.1/src -ID:\FLUENT.INC\fluent6.1/cortex/src -ID:\FLUENT.INC\fluent6.1/client/src -ID:\FLUENT.INC\fluent6.1/multiport/src -I. -DUDFCONFIG_H="<udfconfig.h>" F:\fluentwork rigen\phase3\su_firstresults\egd5.c Error: F:\fluentwork\trigen\phase3\su_firstresults\egd5.c : line 222: non-integer subscript expression: unsigned char.

Anybody knows what it means and how to solve it? The .c files is below. Thanks.



Domain *domain;

cell_t c;

Thread *t;

face_t f;

Thread *tf;

int n;

domain= Get_Domain(1);





c_face_loop(c, t, n) /* loops over all faces on a cell */


f = C_FACE(c,t,n);

tf = C_FACE_THREAD(c,t,n);

printf("cell number: %d \n", c);

printf("corresponfing face and thread %d %d \n", f, tf);




} /*end thread_loop_c */ }
  Reply With Quote

Old   September 30, 2004, 23:18
Default Re: face loop over cells
Posts: n/a
Some functions arenot used in the interpreted UDF. Check the function in the line 222 of your program.
  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
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
NACA0012 geometry/design software needed Franny Main CFD Forum 13 July 7, 2007 15:57
Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Native Meshers: blockMesh 10 April 2, 2007 14:00

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