CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

DPM Output Parameter UDF

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Eanna.Kennedy

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 30, 2019, 10:25
Default DPM Output Parameter UDF
  #1
New Member
 
Eanna Kennedy
Join Date: Jan 2019
Posts: 4
Rep Power: 7
Eanna.Kennedy is on a distinguished road
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
Amir Soly likes this.
Eanna.Kennedy is offline   Reply With Quote

Old   July 12, 2020, 07:30
Default
  #2
New Member
 
Amirmohamad
Join Date: Jul 2020
Posts: 1
Rep Power: 0
Amir Soly is on a distinguished road
Hello Eanna,
I have exactly the same problem,
Could you find a solution?
Amir Soly is offline   Reply With Quote

Old   July 13, 2020, 02:21
Default
  #3
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
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
AlexanderZ is offline   Reply With Quote

Reply

Tags
dpm, output parameters, udf


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


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