|
[Sponsors] |
June 14, 2011, 05:32 |
THREAD_STORE: undeclared variable
|
#1 |
New Member
anonymous
Join Date: Jun 2011
Posts: 1
Rep Power: 0 |
Hi,
I get this error message THREAD_STORE: undeclared variable when interpreting this UDF #include "udf.h" DEFINE_ADJUST(species2, d){ FILE *pf; Thread *thread; face_t f, f_shadow; cell_t c0, c1; Thread *t0, *t1; real mass1, mass2, mass3, mass4; int ID1, ID2, cont; pf = fopen("masas_especies.txt", "wb"); ID1 = 17; thread = Lookup_Thread(d, ID1); cont = 0; begin_f_loop(f, thread){ c0 = F_C0(f, thread); t0 = F_C0_THREAD(f, thread); mass1 = C_YI(c0, t0, 0); mass2 = C_YI(c0, t0, 1); mass3 = C_YI(c0, t0, 2); mass4 = C_YI(c0, t0, 3); fprintf(pf, "%04d Masas naoh = %g naso4h = %g na2so4h = %g agua = %g\n", cont, mass1, mass2, mass3, mass4); cont = cont + 1; } end_f_loop(f, thread) fclose(pf); } The line of the error is t0 = F_C0_THREAD(f, thread); and I do not see what is wrong. Compiling does not work either. Any ideas? Thanks. |
|
Tags |
fluent, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
P_POS(p) undeclared variable | spring | FLUENT | 6 | March 8, 2014 06:47 |
emag beta feature: charge density | charlotte | CFX | 4 | March 22, 2011 10:14 |
error in COMSOL:'ERROR:6164 Duplicate Variable' | bhushas | COMSOL | 1 | May 30, 2008 05:35 |
Env variable not set | gruber2 | OpenFOAM Installation | 5 | December 30, 2005 05:27 |
Replace periodic by inlet-outlet pair | lego | CFX | 3 | November 5, 2002 21:09 |