CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Problem of DEFINE_DPM_OUTPUT (https://www.cfd-online.com/Forums/fluent/42843-problem-define_dpm_output.html)

akr November 13, 2006 00:46

Problem of DEFINE_DPM_OUTPUT
 
Hi all,

I want to write a UDF to obtain data about which particles escaped. I am using file as injection type. And I have to inject many particles. So I am thinking about using DEFINE_DPM_OUTPUT. In udf manual, there is a example. But I can not understand it. Does anyone know how to write this kind of udf??

Thanks, AKR

Allan Walsh November 13, 2006 13:18

Re: Problem of DEFINE_DPM_OUTPUT
 
See comment to your earlier post, below.

akr November 13, 2006 23:42

Re: Problem of DEFINE_DPM_OUTPUT
 
Hi Allan,

I saw your comment. I am thinking about writing UDF. Maybe DEFINE_ON_DEMAND is also good. What I want to know is how to access the particle ID. I saw DPM variables in udf manual. But I could not find about particle ID.

Do you know how to access the particle ID?

Regards, AKR

Allan Walsh November 14, 2006 14:19

Re: Problem of DEFINE_DPM_OUTPUT
 
From your description of what you are trying to do, DEFINE_ON_DEMAND is not the right UDF.

To find particle variables, first look in the dpm.h header file. Then, you may need to look a bit deeper in some of the other header files.

Alternatively, you could create your own variable and then increment it as you loop through the particles.

Good luck.

akr November 14, 2006 22:13

Re: Problem of DEFINE_DPM_OUTPUT
 
Hi Allan,

Thank you very much. I will try your suggestion. I hope I can do that. Again, thanks.

AKR


All times are GMT -4. The time now is 07:27.