CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   particletime at specific position (http://www.cfd-online.com/Forums/fluent-udf/124191-particletime-specific-position.html)

martin986 September 29, 2013 07:35

particletime at specific position
 
hey!

I want to store the particletime in steady dpm at a specific position, in my define body force udf I did it like that but it wont work, is there a better solution?

real y[ND_ND];
real z[ND_ND];

y[1] = P_POS(p)[1];
z[2] = P_POS(p)[2];


if (z[2] < -0.200000 && y[1] == -0.720000)
{
C_UDMI(c,t,2) = P_TIME(p);
}


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