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

ow to get DPM values as output for Design Xplorer

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   December 13, 2020, 15:12
Default SOLVED - How to get DPM values as output for Design Xplorer
  #1
New Member
 
Darius
Join Date: Dec 2020
Posts: 8
Rep Power: 5
Darius12345 is on a distinguished road
Hello Everyone,

I am trying to create an optimization setup with Fluent and Design Xplorer where the radial particle distribution is an input parameter for the optimization. So I want to get the x and y position of each particle when it is at a specified plane (or z-position), calculate the radius from it, and see if it is above or below a given radius. The output parameter is then the share of particles above this radius.

I first tried with DEFINE_DPM_OUTPUT to get the x and y position of my particle and then store it in a file, I then read the file back in and create an output parameter using DEFINE_REPORT_DEFINITIN_FN but the file is only updated when a sample is created, which is not useful for my problem, or is it possible to create a sample every few iterations automatically?

My current approach is a SCALAR_UPDATE-UDF, where the positions are stored in the TP_USER_REAL array for each particle, here the data should be updated after each DPM iteration. The array is then read back to create an output parameter with DEFINE_REPORT_DEFINITION, both UDFs compile but when I start simulating I am getting a SIGSEV error. If I only use the SCALAR_UPDATE_MACRO everything is working. You can see my code in the attached picture.

If you have any suggestions on how to solve this issue, your help is much appreciated, also I am not quite sure if I can call DPM functions within non-DPM UDFs, is this possible at all?

Thanks in advance for your help.
Attached Images
File Type: jpg UDF.jpg (57.5 KB, 26 views)

Last edited by Darius12345; December 17, 2020 at 11:49. Reason: solved
Darius12345 is offline   Reply With Quote

 

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
Keeping intermediate files OVS SU2 5 December 5, 2021 11:41
All output values increase rapidly after one cycle 12ohan OpenFOAM Running, Solving & CFD 1 April 26, 2019 10:52
writing values to IOdictionary subDict not generating expected output? massive_turbulence OpenFOAM Programming & Development 2 January 21, 2019 08:48
Output File of DPM Modelling cwl6750084 FLUENT 0 April 16, 2017 09:41
output point values in CFX4 Dougal McQueen CFX 1 February 13, 2004 23:55


All times are GMT -4. The time now is 16:19.