CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

loop over all injection streams

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 27, 2012, 15:11
Cool loop over all injection streams
  #1
Member
 
alighaffari
Join Date: May 2011
Posts: 31
Rep Power: 14
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 */
{
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
alighaffari is offline   Reply With Quote

Old   August 27, 2012, 16:00
Default
  #2
Senior Member
 
cdegroot's Avatar
 
Chris DeGroot
Join Date: Nov 2011
Location: Canada
Posts: 414
Rep Power: 17
cdegroot is on a distinguished road
You'll get a better response if you post to the sub-forum for the particular software you are using. In this case it sounds like Fluent.
cdegroot 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
Diesel injection problem Jurek FLUENT 2 June 16, 2017 06:05
[Gmsh] Problem with Gmsh nishant_hull OpenFOAM Meshing & Mesh Conversion 23 August 5, 2015 02:09
[CAD formats] my stl surface is seen as just a line rcastilla OpenFOAM Meshing & Mesh Conversion 2 January 6, 2010 01:30
NACA0012 geometry/design software needed Franny Main CFD Forum 13 July 7, 2007 15:57
using injection file and parallel process Cindy Jones FLUENT 0 January 23, 2003 12:40


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