CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   What's the problem about this UDF? (https://www.cfd-online.com/Forums/fluent/44856-whats-problem-about-udf.html)

williams May 29, 2007 21:56

What's the problem about this UDF?
 
DEFINE_DPM_INJECTION_INIT(set_velocity,Inject) { Domain *domain; Thread *t; cell_t c; real xc[ND_ND]; Particle *pp;

loop(pp, Inject->p)//It said this line"structure reference not implemented"??

What's the problem? Any suggestion? Thanks


Markus Alzon May 30, 2007 00:54

Re: What's the problem about this UDF?
 
I made a loop like this:

loop(p, I->p_init)

then you din' use curly brackets (or you did, and did not post them).

In this loop i set some values, like this: P_VEL(p)[0] = 0.0;

Hope, it helps you.

Good luck!

MA


All times are GMT -4. The time now is 03:23.