Hi,

I want to upload a UDF for source term in fluent for a species.

it is giving N definition shadows previous definition? error

Please find out the error.

The udf is as follows

DEFINE_SOURCE(specis_source, c, t, dS,EQ_SPECIES)

{

real N,density,S0,a1,a2,supsat;

real source;

Thread *tc = THREAD_SUPER_THREAD(t);

Thread **pt = THREAD_SUB_THREADS(tc);

Thread *tp = pt[P_PHASE];

density=C_R(c,tp);

S0 = C_YI(c,tp,0);

source=-1e-9;

dS[EQ_SPECIES]=0.0;

return source;

}

Thanks

Vivek

More Vivekananda Bal's questions See All
Similar questions and discussions