|
[Sponsors] |
Calculation of "escaped" particles in dpm via UDF |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 18, 2018, 14:28 |
Calculation of "escaped" particles in dpm via UDF
|
#1 |
New Member
Ebi
Join Date: Apr 2009
Posts: 9
Rep Power: 17 |
Dear all,
Hope this message finds you in a good health. Here is my udf file which just reports the total number of particles in a dpm (discrete phase model) problem including the trapped, evaporated, escaped and incomplete particles. Any idea for calculation of "escaped" ones? Although the number of "escaped" particles is reported in the Fluent console, I need that UDF file for an optimization study. Thanks for your time. #include "udf.h" DEFINE_EXECUTE_AT_END(particle_cells_count) { Injection *Ilist; Injection *I; Particle *p; cell_t c; Thread *c_t; int num_part = 0; Ilist = Get_dpm_injections(); loop(I,Ilist) { loop(p,I->p) { /*c = P_CELL(p);*/ /*c_t = P_CELL_THREAD(p);*/ num_part+=1; } } Message("num_part: %d\n",num_part); } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF- how to calculate the number of particles in DPM | causuya | Fluent UDF and Scheme Programming | 8 | January 23, 2021 14:34 |
UDF for tracking particles in DPM | abolfazl | FLUENT | 1 | October 27, 2018 13:32 |
Problem with interpreted UDF with UDM calculation | Kabador | FLUENT | 4 | July 8, 2018 04:36 |
DPM UDF Injection leads to 2 different particles | sega | Fluent UDF and Scheme Programming | 4 | December 28, 2017 23:57 |
How to define a parabolic velocity inlet of particles with UDF | zumaqiong | FLUENT | 2 | February 22, 2010 10:46 |