CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   Problem with Boundary UDF for DPM - Updating particle position (https://www.cfd-online.com/Forums/fluent-udf/157405-problem-boundary-udf-dpm-updating-particle-position.html)

FarzinD July 28, 2015 12:39

Problem with Boundary UDF for DPM - Updating particle position
 
Hello everyone,
I wrote a UDF with Define Macro "DEFINE_DPM_BC". At the end of this function I want to alter particle position with this code:
Code:

for (i=0; i<dim; i++)
    P_POS(p)[i] -= 0.5*P_DIAM(p)*normal[i];

The problem is it seems that the position is not updated; because including these lines in the function makes no difference in results.
Is there something that I didn't consider?
Any suggestion might help.

Thanks,
Farzin.


All times are GMT -4. The time now is 06:53.