|
[Sponsors] |
September 29, 2004, 11:31 |
face loop over cells
|
#1 |
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 */ } |
|
October 1, 2004, 00:18 |
Re: face loop over cells
|
#2 |
Guest
Posts: n/a
|
Some functions arenot used in the interpreted UDF. Check the function in the line 222 of your program.
|
|
|
|
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 |