CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (
-   -   UDF-dpm (

Alireza January 22, 2009 13:54

Hi I have an easy question. I have a simple code.As: #include "udf.h" DEFINE_DPM_SCALAR_UPDATE(PARTICLEM,c,t,initializa, p) {







} } I expect it removes particle in a 2d rectangular after x>0.5.But when i go to Display-particle Tracks- shows my particle. Incredibly as i do not use (if statement) it works and delete my particle.I am sure that i compile and hook it truely. Please help me ASAP. Best Regards

Alireza January 22, 2009 14:02

Re: UDF-dpm *NM*

Allan Walsh January 22, 2009 16:47

Re: UDF-dpm
I have used P_POS(p)[i] for particle position (i=0 for x etc.) Not sure why your version wouldn't work.

Alireza January 22, 2009 18:30

Re: UDF-dpm
Thank you. Also i used P_POS(p)[i] and it does not work too. Incredible.

Alireza January 27, 2009 11:50

Re: UDF-dpm
Hi I did not use the scale truely. I forgot that all units in UDF is meter. Thank you again

All times are GMT -4. The time now is 14:59.