|
[Sponsors] |
ow to get DPM values as output for Design Xplorer |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 13, 2020, 15:12 |
SOLVED - How to get DPM values as output for Design Xplorer
|
#1 |
New Member
Darius
Join Date: Dec 2020
Posts: 8
Rep Power: 5 |
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. Last edited by Darius12345; December 17, 2020 at 11:49. Reason: solved |
|
Tags |
dpm, output parameters, udf |
|
|
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 |