|
[Sponsors] |
January 30, 2019, 10:25 |
DPM Output Parameter UDF
|
#1 |
New Member
Eanna Kennedy
Join Date: Jan 2019
Posts: 4
Rep Power: 7 |
Hello,
I am trying to optimise a channel geometry using particle tracking. I want to minimise the standard deviation of particles about the centre of the channel at a plane near the outlet. I think that i need to use the DEFINE_REPORT_DEFINITION_FN macro to calculate and return the standard deviation of particles. But to do this i need to have access to the positions of all particles as they cross this plane. I know that the DEFINE_DPM_OUTPUT macro is used to write particle data to a file when I perform particle trajectory sampling with a plane. But i can't figure out how to access the particle position data so that I can calculate the standard deviation. So either I need a way to read data from the .dpm file generated by sampling or I need to alter the DEFINE_DPM_OUTPUT macro to save data to a User Defined Memory, but it seems that this macro is called each time a particle passes the sampling plane so I don't see how I could save each particles data in the UDM without overwriting the last. I would really appreciate any help with this. Kind Regards, Eanna Kennedy |
|
July 12, 2020, 07:30 |
|
#2 |
New Member
Amirmohamad
Join Date: Jul 2020
Posts: 1
Rep Power: 0 |
Hello Eanna,
I have exactly the same problem, Could you find a solution? |
|
July 13, 2020, 02:21 |
|
#3 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
Ansys Fluent Customization manual, Model-Specific Macros chapter
P_POS(p)[i] is a macro to get position of particle
__________________
best regards ****************************** press LIKE if this message was helpful |
|
Tags |
dpm, output parameters, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How can I get a variable as output parameter from A UDF for post processing in fluent | Oula | Fluent UDF and Scheme Programming | 9 | November 2, 2018 06:35 |
Beginner help, coordinate udf with output file | nb92 | Fluent UDF and Scheme Programming | 0 | March 20, 2014 05:16 |
udf problem.. output data comes out to "zero" | startup0820 | Fluent UDF and Scheme Programming | 3 | August 16, 2012 00:09 |
Hooking a DPM Particle Heat and Mass Transfer UDF to FLUENT | subhankar_bhandari | FLUENT | 0 | August 19, 2010 04:01 |
Hooking a DPM Particle Heat and Mass Transfer UDF to FLUENT | subhankar_bhandari | Main CFD Forum | 0 | August 19, 2010 04:01 |