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

*****Particle Tracking In DPM

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 14, 2006, 04:33
Default *****Particle Tracking In DPM
  #1
Adriano
Guest
 
Posts: n/a
Hi users,

I've got a problem with my DPM model. I'd like to impose a UDF that describes the porous zone behavior during tracking particle routine. I'd like to stop certain particle (selected by their particle identification number). My problem is restarting particles tracking of part_id that are not in my interest!! I attach my code (semplified)

Please and thank you.

Adriano.

DEFINE_DPM_BC(ADESIONE_SCAF,p,t,f,f_normal,dim) { /*confronto part_id corrente - part_id nell'array di randomizzazione*/ int select,i,l;

FILE *fp;

/*chiamata della funzione che fa il confronto */

select=confronta(p->part_id, a);

//uscita

if (select==1)

{

Message("select = %d part_id ferma =%d\n",select,p->part_id);

fp=fopen("ADESIONE_SCAF.txt","a+");

/*scrivo nel file la posizione in cui si č fermata e in quale faccia*/

fprintf(fp,"((%10.6g %10.6g %10.6g %10d %10d %10.6g %10.6g %10.6g) %d)\n",p->state.pos[0],p->state.pos[1],p->state.pos[2],t,f,f_normal[0],f_normal[1],f_normal[2],p->part_id);

fclose(fp);

Trap_Particle(p);

p->gvtp.n_trapped+=1;

l=PATH_ABORT;

/*attribuisco il 'trap' alla particella che č realizzato con la funzione*/

}

if (select==0)

{

p->gvtp.n_escaped+=1;

l=PATH_ACTIVE;

}

return (int) l; }
  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
DPM particle tracking in stirred tank parisa- FLUENT 1 August 7, 2012 13:03
Particle tracking in DPM Harpreet FLUENT 0 August 27, 2011 05:12
DPM particle tracking parisa- Main CFD Forum 2 June 15, 2011 06:12
Itīs possible to use this in unsteady dpm tracking? JSoares Fluent UDF and Scheme Programming 3 June 9, 2011 11:41
DPM tracking particle Clementine FLUENT 0 November 7, 2008 19:08


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