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

Calculation of "escaped" particles in dpm via UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 18, 2018, 13:28
Default Calculation of "escaped" particles in dpm via UDF
  #1
New Member
 
Ebi
Join Date: Apr 2009
Posts: 9
Rep Power: 17
abolfazl is on a distinguished road
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);
}
abolfazl is offline   Reply With Quote

Reply


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
UDF- how to calculate the number of particles in DPM causuya Fluent UDF and Scheme Programming 8 January 23, 2021 13:34
UDF for tracking particles in DPM abolfazl FLUENT 1 October 27, 2018 12:32
Problem with interpreted UDF with UDM calculation Kabador FLUENT 4 July 8, 2018 03:36
DPM UDF Injection leads to 2 different particles sega Fluent UDF and Scheme Programming 4 December 28, 2017 22:57
How to define a parabolic velocity inlet of particles with UDF zumaqiong FLUENT 2 February 22, 2010 09:46


All times are GMT -4. The time now is 21:32.