hello
I am trying to define a velocity profile for the injecting particles at the inlet. I believe that I should use DEFINE_DPM_INJECTION_INIT(name_bubbles,I) macro, however, I get errors while interpreting the file in fluent. the error mentions the stared line in the following code with this message "structure reference not implemented".
I appreciate any help.
DEFINE_DPM_INJECTION_INIT(init_bubbles,I)
{
int i;
Particle *p;
real x;
real x1;
real a;
real um;
real v;
real pos[ND_ND];
a=1.0000e-04;
um=1.9296e-1;
loop(p,I->p)
{
F_CENTROID (pos,f,t);
x= pos[0];
x1=x/a;
TP_INIT_VEL(p)[1] = 2.* um * (1.-pow( x1,2.) );
v=2.* um * (1.-pow( x1,2.) );
}
return v;
}