CFD Online Logo CFD Online URL
Home > Forums > FLUENT

THREAD_STORE: undeclared variable

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

LinkBack Thread Tools Display Modes
Old   June 14, 2011, 04:32
Default THREAD_STORE: undeclared variable
New Member
Join Date: Jun 2011
Posts: 1
Rep Power: 0
rarevalo is on a distinguished road

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)

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.
rarevalo is offline   Reply With Quote


fluent, udf

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
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 Main CFD Forum 1 May 30, 2008 04: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

All times are GMT -4. The time now is 10:47.