CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Displacement of particles with an udf (https://www.cfd-online.com/Forums/fluent/34126-displacement-particles-udf.html)

Michael Heim July 6, 2004 14:08

Displacement of particles with an udf
 
Hello,

I'm trying to displace a particle within the define_dpm_scalar_update macro. So every timestep the macro is called, the particle should be displaced a certain distance. I can update the p_pos(p)[i] within the macro and print it to the screen and it seems to work, but in the next step the displacement is "forgotten". Does anyone know, if the p_pos(p)[i] is not changeable within this macro??? If not, is there any other solution to displace a particel after a certain timestep??

Thank you,

Michael


All times are GMT -4. The time now is 13:22.