CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   loop over all injection streams in order to get the particles specifications (http://www.cfd-online.com/Forums/fluent-udf/106395-loop-over-all-injection-streams-order-get-particles-specifications.html)

alighaffari August 28, 2012 02:42

loop over all injection streams in order to get the particles specifications
 
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 */
{
begin_particle_cell_loop(pi,c,t)
{

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)
{

loop(pi,I)
{


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.
Regards


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