CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

loop over all injection streams in order to get the particles specifications

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

LinkBack Thread Tools Display Modes
Old   August 28, 2012, 01:42
Question loop over all injection streams in order to get the particles specifications
Join Date: May 2011
Posts: 31
Rep Power: 8
alighaffari is on a distinguished road
Hi every body
I want to calculate the effect of all particles of an injection on each particle via UDF as DPM_BODY_FORCE. For this aim it is needed to search all over particles at every iterations. I have used following functions to do such a search:
cell_t c;
Thread *t;
Domain *d;
Particle *pi;

thread_loop_c(t,d) /*loops over all cell threads in domain*/
begin_c_loop(c,t) /* loops over cells in a cell thread */

But this method is so time consuming because the number of cells in our case's domain is so much. Instead the number of injection streams is fewer in this problem. I have tried to use some functions such as:
Injection *Ilist = Get_dpm_injections();
Injection *I;
loop(I, Ilist)


In order to loop all over injection streams. But unfortunately these functions don't work in DPM_BODY_FORCE in my case that is in windows7 platform. Are there any other functions that can be used for this aim? Any suggestion will be appreciated.
alighaffari is offline   Reply With Quote


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
2nd order upwind vs 2nd order upwind!!! Far Main CFD Forum 7 March 14, 2013 13:29
1st order vs 2nd order ken FLUENT 8 March 14, 2013 04:43
First order simulation better than second order Torque_Converter CFX 7 January 8, 2013 05:07
loop over all injection streams alighaffari Main CFD Forum 1 August 27, 2012 16:00
2nd order boundary conditions for 2nd order discretization? quarkz Main CFD Forum 30 December 26, 2011 08:12

All times are GMT -4. The time now is 13:11.