|
[Sponsors] |
March 12, 2016, 11:31 |
|
#41 |
Member
Rupesh Verma
Join Date: Jun 2013
Posts: 64
Rep Power: 13 |
Dear Friend,
Thanks a lot for your's strong help and guidance. Presently, i made changes according to your suggestion. It is working good for rectangle geometry. When, i am using inlet and out is equal to 2 cm [i also used mesh size 2cm and particle size dia 1.5cm], then particles are not recycling. See that attached figures for detail. Can say, in figure 1 small inlet as well as small outlet and in fig no. 2 used wider inlet and small outlet, but both cases are not working. Note:Particle reaching to the top boundary and recycle txt file generated but particles not recycling. Note: Pls try your case also for small inlet and outlet and can see yourself. Pls suggest the solution for operating this type cases. My second question, can we give recycle particle inlet in 3d at some fixed inlet point? // send particle to the inlet boundary P_POS(p)[2] = 0.; P_POS(p)[0] = 0.15; P_POS(p)[1] = 0.075; or in 2d P_POS(p)[2] = 0.; P_POS(p)[0] = 0.15; Thank you!! Last edited by roopesh99; March 14, 2016 at 01:39. |
|
March 29, 2016, 08:57 |
|
#42 |
Member
Rupesh Verma
Join Date: Jun 2013
Posts: 64
Rep Power: 13 |
Dear friend, i have one question, how can we write information in txt file about particles again enter with which velocity, after recycled by UDF?
Last edited by roopesh99; March 30, 2016 at 04:36. |
|
March 30, 2016, 04:35 |
|
#43 |
Member
Rupesh Verma
Join Date: Jun 2013
Posts: 64
Rep Power: 13 |
Dear friend,
i want to see inlet and oulet velocity of recycle. Can i use P_POS0(p)[0 or 2 or 3] and P_POS(p)[0 or 2 or 3] together in fprintf. My second question is for recycling the particles, particle velocity not matter, only touch to thread,face etc. works. |
|
April 4, 2016, 20:44 |
|
#44 | ||||
Senior Member
Join Date: Mar 2015
Posts: 892
Rep Power: 18 |
Quote:
Quote:
Quote:
Quote:
Code:
fprintf(fp,"%e %e %e %e %e %e %d %e\n",P_POS(p)[0],P_POS(p)[1],P_POS(p)[2],P_VEL(p)[0],P_VEL(p)[1],P_VEL(p)[2],p->part_id,P_TIME(p)); |
|||||
April 5, 2016, 15:01 |
|
#45 |
Member
Rupesh Verma
Join Date: Jun 2013
Posts: 64
Rep Power: 13 |
Dear Friend, thanks a lot for nice reply, my first question is why you used the P_USER_REAL(p,0) and P_USER_REAL(p,1) both . Second, you are only updating only to P_USER_REAL(p,0) = P_USER_REAL(p,0) + 1 not to P_USER_REAL(p,1)
Last edited by roopesh99; April 6, 2016 at 01:37. |
|
April 15, 2016, 06:41 |
|
#46 | |
Senior Member
Join Date: Mar 2015
Posts: 892
Rep Power: 18 |
Quote:
Yes, that's intentional (see above). |
||
April 17, 2016, 02:53 |
|
#47 |
Member
Rupesh Verma
Join Date: Jun 2013
Posts: 64
Rep Power: 13 |
Thanks for such guidance... bye
|
|
July 19, 2016, 08:17 |
particles trapped
|
#48 |
New Member
Select One
Join Date: Jul 2016
Posts: 1
Rep Power: 0 |
Dear forum members,
I would like to use the suggested approach to relocate particles to the inlet when they would normally leave the domain. However when I look at the particle tracks they are not moving back but simply stay at the outlet. My code: #include "udf.h" DEFINE_DPM_BC(continue_tracking,p,t,f,f_normal,dim ) { return PATH_ACTIVE; } DEFINE_DPM_SCALAR_UPDATE(recycle_particles,c,t,ini tialize,p) { if (P_POS(p)[2]>0.09) { P_POS(p)[2] = 0.0; } } I also tried to use an execute at end approach, which reulted in my particles being actually moved to the inlet but jumping back to the outlet for the next iteration. My guess would therefore be that fluent somehow overwrites my values for the position with the previous values or calculates a the new position based on the old values. I also set the unsteady tracking. I would be really glad if someone has a suggestion how to resolve this Last edited by RB_90; July 19, 2016 at 11:10. Reason: missing information |
|
May 22, 2017, 16:41 |
|
#49 |
New Member
Walid Abou Hweij
Join Date: Oct 2014
Posts: 10
Rep Power: 12 |
Dear Friends,
The posts are important, but I hope u could help me in this problem. Running a steady flow I have a pipe of 40 mm diameters and I need to find the residence time distribution for a pipe that is 4 times the original one. Accordingly, the DPM with massless particles under steady state were used. I need the particles that exit to be recycled 4 times. As it appears in the UDF that you have provided, that the transient condition determines the number of times the particles crosses the outlet; however, in my case I need the opposite way round, that is given number of crosses that the particles passes the outlet, I need the particles properties (position, velocity and time) when they cross the outlet. Please provide me with an idea as soon as possible. Thanks in advance. Walid |
|
May 22, 2017, 16:42 |
|
#50 |
New Member
Walid Abou Hweij
Join Date: Oct 2014
Posts: 10
Rep Power: 12 |
Dear Friends,
The posts are important, but I hope u could help me in this problem. Running a steady flow I have a pipe of 40 mm diameters and I need to find the residence time distribution for a pipe that is 4 times the original one. Accordingly, the DPM with massless particles under steady state were used. I need the particles that exit to be recycled 4 times. As it appears in the UDF that you have provided, that the transient condition determines the number of times the particles crosses the outlet; however, in my case I need the opposite way round, that is given number of crosses that the particles passes the outlet, I need the particles properties (position, velocity and time) when they cross the outlet. Please provide me with an idea as soon as possible. Thanks in advance. Walid |
|
July 12, 2017, 06:33 |
UDF for particle recirculation in dense discrete phase modeling
|
#51 |
New Member
adnan
Join Date: Jul 2016
Posts: 5
Rep Power: 10 |
Hi guys,
I am working on 2D Riser simulations using DDPM approach. I have a simple rectangular domain having boundaries inlet (velocity inlet), outlet (pressure outlet) and wall as is shown in attached Figure. I want to recycle the particles which after leaving from outlet domain recirculate back to the inlet. I am not good at all in UDF skills. I saw your posts which are useful regarding my issue. So i want to know that how can I change the UDF as shown below this message according to my 2D problem. If you guys can help me it will be encouraging for me. Thanks. #include "udf.h" DEFINE_DPM_BC(continue_tracking,p,t,f,f_normal,dim ) { return PATH_ACTIVE; } DEFINE_DPM_SCALAR_UPDATE(recycle_particles,c,t,ini tialize,p) { FILE *fp; if (P_POS(p)[0]<0.08333) { P_USER_REAL(p,1) = 0.; } if (P_POS(p)[0]>0.91667 && P_USER_REAL(p,1) == 0.) { // save particle position to a text file fp=fopen("recycleparticles.txt", "a"); // x, y, z particle positions [m], particle ID [#] and time [s] fprintf(fp,"%e %e %e %d %e\n",P_POS(p)[0],P_POS(p)[1],P_POS(p)[2],p->part_id,P_TIME(p)); fclose(fp); // save the number of times this particle has been recycled P_USER_REAL(p,0) = P_USER_REAL(p,0) + 1.; P_USER_REAL(p,1) = 1.; // send particle to the inlet boundary P_POS(p)[0] = 0.; P_POS(p)[1] = P_POS(p)[1] + 0.0833; |
|
July 12, 2017, 06:57 |
UDF for particle recirculation in dense discrete phase modeling
|
#52 |
New Member
adnan
Join Date: Jul 2016
Posts: 5
Rep Power: 10 |
Attached figure.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF for periodic boundary condition | Angeline | Fluent UDF and Scheme Programming | 6 | November 7, 2015 01:08 |
Periodic model for ansys cfx | jayendrajpatel | CFX | 3 | January 21, 2015 17:44 |
Ansys FLUENT UDF - Velocity profile (of known values) across edge / surface | emmkell | FLUENT | 0 | October 20, 2011 08:37 |
Compiling UDF in Ansys Fluent12 | Vishu | Fluent UDF and Scheme Programming | 2 | October 5, 2011 10:09 |
Ansys meshing of two-phase periodic domain | kcsmith | ANSYS Meshing & Geometry | 11 | March 9, 2011 22:08 |