# DPM_BC smillar to Filter

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

 April 25, 2017, 02:20 DPM_BC smillar to Filter #1 New Member   Yoon Join Date: Mar 2015 Location: Seoul Posts: 22 Rep Power: 11 Hi currently I'm working on filter efficiency. and I already know penetration Efficiency of filter in each particle size. To try this on fluent simulation, I want put udf about DPM in porous jump. My plan is generate random number on each particle (like 0 to1) and if particle has low random number than filter penetration Efficiency, the particle considered to pass through (PATH_ACTIVE ; ) (I checked this Pass Active condition in my doamin, but it seems to reflect particles in porous jump BC) Else, particle considered to Capture (PATH_ABORT ; ) Problem is.. How can I modifie my UDF to some particles can passing through the porous jump plane

 April 25, 2017, 02:21 #2 New Member   Yoon Join Date: Mar 2015 Location: Seoul Posts: 22 Rep Power: 11 DEFINE_DPM_BC(bc_filter,p,t,f,f_normal,dim) { int a; /* Different Efficiency by Particle Diameter && Penentration Efficiency */ if ((P_DIAM(p)==0.000000005) && (P_USER_REAL(p,0) >= (0.266*32000))) {p->gvtp.n_trapped+=1; a=PATH_ABORT;} else if ((P_DIAM(p)==0.000000020) && (P_USER_REAL(p,0) >= (0.750*32000))) {p->gvtp.n_trapped+=1; a=PATH_ABORT;} else if ((P_DIAM(p)==0.000000050) && (P_USER_REAL(p,0) >= (0.885*32000))) {p->gvtp.n_trapped+=1; a=PATH_ABORT;} else if ((P_DIAM(p)==0.000000100) && (P_USER_REAL(p,0) >= (0.922*32000))) {p->gvtp.n_trapped+=1; a=PATH_ABORT;} else if ((P_DIAM(p)==0.000000300) && (P_USER_REAL(p,0) >= (0.881*32000))) {p->gvtp.n_trapped+=1; a=PATH_ABORT;} else if ((P_DIAM(p)==0.000000780) && (P_USER_REAL(p,0) >= (0.616*32000))) {p->gvtp.n_trapped+=1; a=PATH_ABORT;} else {p->gvtp.n_Escaped+=1; a=PATH_ACTIVE;} return (int) a; } My Udf for filtering now and Active condition doesn't work as I intended Plz someone help with this UDF regards.

 April 26, 2017, 02:01 #3 New Member   Join Date: Mar 2017 Posts: 8 Rep Power: 9 touyet touyet touyet touyet touyettouyettouyet

 Tags dpm, filter, path_, porous jump