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

A DPM udf question

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   April 1, 2015, 08:37
Default A DPM udf question
  #1
New Member
 
Tao Ning
Join Date: Mar 2015
Posts: 23
Rep Power: 3
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, 18:29
Default
  #2
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 758
Rep Power: 9
`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, 21:26
Default
  #3
New Member
 
Tao Ning
Join Date: Mar 2015
Posts: 23
Rep Power: 3
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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
udf dpm species student2008 FLUENT 2 July 9, 2015 07:03
question on UDF manual example ak6g08 FLUENT 0 June 25, 2009 11:58
DPM question Richardson FLUENT 10 December 4, 2007 10:44
DPM - UDF for fluctuating bubble size Jaroslav Kotara FLUENT 1 April 19, 2006 09:02
DPM; particle seeded / deleted by UDF Laika FLUENT 6 January 23, 2006 00:40


All times are GMT -4. The time now is 17:39.