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

face loop over cells

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 29, 2004, 11:31
Default face loop over cells
  #1
Szabolcs Varga
Guest
 
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.

DEFINE_ON_DEMAND(proba)

{

Domain *domain;

cell_t c;

Thread *t;

face_t f;

Thread *tf;

int n;

domain= Get_Domain(1);

thread_loop_c(t,domain)

{

begin_c_loop(c,t)

{

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_c_loop(c,t)

} /*end thread_loop_c */ }
  Reply With Quote

Old   October 1, 2004, 00:18
Default Re: face loop over cells
  #2
Fluenter
Guest
 
Posts: n/a
Some functions arenot used in the interpreted UDF. Check the function in the line 222 of your program.
  Reply With Quote

Reply


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
[Netgen] Import netgen mesh to OpenFOAM hsieh OpenFOAM Meshing & Mesh Conversion 32 September 13, 2011 06:50
[blockMesh] BlockMeshmergePatchPairs hjasak OpenFOAM Meshing & Mesh Conversion 11 August 15, 2008 08: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 16:57
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 15:00


All times are GMT -4. The time now is 09:57.