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

UDF:DEFINE_DPM_BC(AD_SCAF,p,t,f,f_normal,dim)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 23, 2006, 16:04
Default UDF:DEFINE_DPM_BC(AD_SCAF,p,t,f,f_normal,dim)
  #1
Adriano
Guest
 
Posts: n/a
hI, with this little UDF I have to impose this simple BC to a Porous Jump interior surface: 1 - if particle identity is equal to selected number, trap particle; else 2 - apply the 'interior' attribute to my surface, so continue with tracking particle.

the problem is: in case 2 - particles stop their run! It is wrong!!!!! Sigh please any suggestions?!? I'll be crazy very soon!

Many thanx to helper!!

Cheers Adriano

ps: this is the code.

DEFINE_DPM_BC(ADESIONE_SCAF,p,t,f,f_normal,dim)

{

int select,l;

FILE *fp;

/*TO call function that makes the comparison */

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

if (select==1)

{

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

fp=fopen("ADESIONE_SCAF.txt","w");

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

l=PATH_ABORT;

}

if (select==0)

{

l=PATH_ACTIVE;

}

return l;

}
  Reply With Quote

Old   April 25, 2017, 04:12
Default
  #2
New Member
 
Yoon
Join Date: Mar 2015
Location: Seoul
Posts: 22
Rep Power: 11
touyet is on a distinguished road
I stuck on this problem..
Did you get any answer of it??
touyet is offline   Reply With Quote

Old   April 26, 2017, 03:03
Default
  #3
New Member
 
Join Date: Mar 2017
Posts: 8
Rep Power: 9
ctw987 is on a distinguished road
Quote:
Originally Posted by touyet View Post
I stuck on this problem..
Did you get any answer of it??
hi touyet!

you stuck on that problem?

i got answer! plz call me now
ctw987 is offline   Reply With Quote

Old   August 9, 2018, 03:08
Default have you solved the problem?
  #4
New Member
 
hxw
Join Date: Dec 2015
Posts: 4
Rep Power: 10
jackstraw is on a distinguished road
Quote:
Originally Posted by ctw987 View Post
hi touyet!

you stuck on that problem?

i got answer! plz call me now
please share your code. Thanks a lot
jackstraw 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



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