CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   face loop over cells (https://www.cfd-online.com/Forums/fluent/34723-face-loop-over-cells.html)

Szabolcs Varga September 29, 2004 10:31

face loop over cells
 
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 */ }

Fluenter September 30, 2004 23:18

Re: face loop over cells
 
Some functions arenot used in the interpreted UDF. Check the function in the line 222 of your program.


All times are GMT -4. The time now is 07:12.