|
[Sponsors] |
April 1, 2015, 09:37 |
A DPM udf question
|
#1 |
New Member
Tao Ning
Join Date: Mar 2015
Posts: 23
Rep Power: 11 |
I set a interior face in the flow field
and I want to get the average temperature of all particles which escape from the interior face. how can I do that? I have used the DEFINE_DPM_BC macro and use begin_particle_cell_loop * cell_t*c =*P_CELL(p); Thread**t*=*P_CELL_THREAD(p); Particle**pi; begin_particle_cell_loop(pi,c,ct) { pt =P_T(pi); } end_particle_cell_loop(pi,c,t) and there is an error: access_violation tks a lot~ |
|
April 1, 2015, 19:29 |
|
#2 |
Senior Member
Join Date: Mar 2015
Posts: 892
Rep Power: 18 |
The DEFINE_DPM_BC macro is called whenever a particle impacts the wall this macro has been applied to. Why are you trying to loop through all particles every time a particle passes through this interior face when you're only seeking the single particle temperature?
Are you pointing to pointers of pointers?! |
|
April 1, 2015, 22:26 |
|
#3 | |
New Member
Tao Ning
Join Date: Mar 2015
Posts: 23
Rep Power: 11 |
Quote:
my propose is to get the average droplets temperature through the interior, and the status of droplets is escape. i don't know how to do, so i tried the DPM_BC macro. is there any method to calculate the average temperature of all escape droplets directly? |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
udf dpm species | student2008 | FLUENT | 2 | July 9, 2015 08:03 |
question on UDF manual example | ak6g08 | FLUENT | 0 | June 25, 2009 12:58 |
DPM question | Richardson | FLUENT | 10 | December 4, 2007 10:44 |
DPM - UDF for fluctuating bubble size | Jaroslav Kotara | FLUENT | 1 | April 19, 2006 10:02 |
DPM; particle seeded / deleted by UDF | Laika | FLUENT | 6 | January 23, 2006 00:40 |