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

A DPM udf question

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 1, 2015, 09:37
Default A DPM udf question
  #1
New Member
 
Tao Ning
Join Date: Mar 2015
Posts: 23
Rep Power: 11
potatoning is on a distinguished road
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~
potatoning is offline   Reply With Quote

Old   April 1, 2015, 19:29
Default
  #2
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 892
Rep Power: 18
`e` is on a distinguished road
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?!
`e` is offline   Reply With Quote

Old   April 1, 2015, 22:26
Default
  #3
New Member
 
Tao Ning
Join Date: Mar 2015
Posts: 23
Rep Power: 11
potatoning is on a distinguished road
Quote:
Originally Posted by `e` View Post
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?!
Hi again~
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?
potatoning 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 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


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