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

particle and channel wall interactions

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By pakk
  • 1 Post By pakk
  • 1 Post By AlexanderZ

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 13, 2020, 15:10
Default particle and channel wall interactions
  #1
Member
 
L.A.Isanka
Join Date: Jul 2020
Posts: 55
Rep Power: 5
Achini is on a distinguished road
Hello!

I am using the following UDF to model particle wall forces. The force is applied only on half of the particles and I'm expecting to see a portion of particles moving towards the wall.

I took the minimum distance between the particle and the wall via a loop over the boundary face and I have considered each direction separately.

But using the below UDF I couldn't see particle trajectories. Can you please help me figure out the reason for that?

It feels like the force is not being applied to particles.
I would be much grateful if you could help me fix this.


#include "udf.h"
#include "dpm.h"
#include "dpm_mem.h"
#include "surf.h"
#include "math.h"

int particleid;

DEFINE_DPM_BODY_FORCE(particle_body_force,p,i) /* Fluent macro to define particle body force*/
{
double force,dw,area,facearea,e,K;
real xw[ND_ND];

real vec[ND_ND];

Domain*d;
cell_t c;
Thread *t;
face_t f;



d = Get_Domain(1);

K = 4.00365*pow(10,(-24));


particleid = (int)p->part_id;

if (particleid % 2 == 0) return(0); /*This part makes it such that only half of the particles get the force. */

c = P_CELL(p); /*Get the cell and thread that the particle is currently in */

/* t = P_CELL_THREAD(p);*/

if (i==0) /* to consider the direction */
{
t = Lookup_Thread(d, 7); /* channel wall on yz plane */

force = 0; /* reset force*/

dw=500;
begin_f_loop(f, t)
{

F_CENTROID(xw,f,t); /* Center of the face*/


NV_VV(vec, =, xw, -, P_POS(p)); /* vector conecting the particlea nd the face center*/

if (dw>NV_MAG(vec))
{
dw = NV_MAG(vec);

}


end_f_loop(f, t)

}

force = (K/(vec[i]* vec[i]))-(K/((150-vec[i])*(150-vec[i]))); /* calculation of the net force by attractions from walls */
}

else if (i==1) /* to consier the direction */
{
t = Lookup_Thread(d, 8); /* channel wall on xy plane*/

force =0; /* reset force*/

dw=500;
begin_f_loop(f, t)
{

F_CENTROID(xw,f,t); /* Center of the face*/


NV_VV(vec, =, xw, -, P_POS(p)); /* vector conecting the particlea nd the face center*/
if (dw>NV_MAG(vec))
{
dw = NV_MAG(vec);
}

end_f_loop(f, t)

}

force = (K/(vec[i])* (vec[i]))-(K/((100-vec[i])*(100-vec[i]))); /* calculation of the net force by attractions from walls on yz plane*/

}

else
{
force=0;
}

return (force/P_MASS(p));


}


Thank you!
Achini is offline   Reply With Quote

Old   December 13, 2020, 15:16
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
Show what you see instead... What does the TUI show when you release particles?
Achini likes this.
pakk is offline   Reply With Quote

Old   December 13, 2020, 15:30
Default
  #3
Member
 
L.A.Isanka
Join Date: Jul 2020
Posts: 55
Rep Power: 5
Achini is on a distinguished road
The particles flow straight through the channel without any disturbance. no change in particle trajectories.
Achini is offline   Reply With Quote

Old   December 13, 2020, 20:13
Default
  #4
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
In the first post, you said there were no trajectories. Did you change something?
Achini likes this.
pakk is offline   Reply With Quote

Old   December 13, 2020, 23:12
Default
  #5
Member
 
L.A.Isanka
Join Date: Jul 2020
Posts: 55
Rep Power: 5
Achini is on a distinguished road
Sorry, my mistake.

I was trying to say that there was no change in particle trajectories. I can see them but they are not diverting towards the wall due to the attraction force.

what could be the season for that?

Thank you!
Achini is offline   Reply With Quote

Old   December 14, 2020, 01:37
Default
  #6
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
write to file the values of force, you are applying to model
Code:
force/P_MASS(p)
check if it is enough to influence particle trajectories
Achini likes this.
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   December 15, 2020, 12:00
Default
  #7
Member
 
L.A.Isanka
Join Date: Jul 2020
Posts: 55
Rep Power: 5
Achini is on a distinguished road
Thank you AlexanderZ!

I will try it.
Achini is offline   Reply With Quote

Old   December 16, 2020, 23:56
Default
  #8
Member
 
L.A.Isanka
Join Date: Jul 2020
Posts: 55
Rep Power: 5
Achini is on a distinguished road
Hello!

This is a snap of particle tracks from my simulation.



In the particle trajectories, there's a high inclination in some points.
I was expecting a gradual diversion towards walls.

Please help!
Thanks
Achini is offline   Reply With Quote

Old   December 17, 2020, 01:56
Default
  #9
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
Picture did not upload...
pakk is offline   Reply With Quote

Old   December 20, 2020, 02:33
Default
  #10
Member
 
L.A.Isanka
Join Date: Jul 2020
Posts: 55
Rep Power: 5
Achini is on a distinguished road
Hello Pakk,

The image hadn't uploaded. Sorry about it.


https://www.dropbox.com/s/u0pgx46j4c...FFPT1.png?dl=0



This is how the particle trajectories appear. Hope it's visible now.

Although the force is exerted by all four walls, the trajectories have diverted only towards one face. Also, I can't understand the reason for the high inclination at some points.

I would be grateful if you could help me with this.
Thank you!
Achini is offline   Reply With Quote

Old   December 20, 2020, 14:54
Default
  #11
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
Particles will go to the closest wall. I have no idea where the walls are in your picture. According to the UDF, they are 100 m and 150 m apart from each other, the scale on your picture is 100 micrometer, so it looks like your particles are just very close to one of the walls.
pakk is offline   Reply With Quote

Old   December 23, 2020, 07:23
Default
  #12
Member
 
L.A.Isanka
Join Date: Jul 2020
Posts: 55
Rep Power: 5
Achini is on a distinguished road
Thank you Pakk for your reply.

The two black lines beside the tracks are the walls.

Even the particles close to one wall moves towards the other wall. That's the problem I have.
Also what might be the reason for the sudden change in the gradient of the particle trajectories.

Thank you!
Achini is offline   Reply With Quote

Old   December 23, 2020, 10:21
Default
  #13
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
In the UDF your walls are 150 m apart in the x-direction, and 100 m apart in the y-direction, and there are no walls in the z-direction. If you want your UDF to work with your geometry, your geometry should be the same.

I don't know which perspective your picture is showing, but the walls are 100 micrometer apart.

You are somehow off by a factor of at least 1000000. Fix that!
Possible, the orientation of your UDF is different from the orientation of your geometry. Fix that!
pakk is offline   Reply With Quote

Old   April 25, 2022, 18:50
Default
  #14
New Member
 
angelo
Join Date: Apr 2022
Posts: 8
Rep Power: 4
angel_97 is on a distinguished road
Hello, i have the same problem, i don't feel any lateral force on the particle. Maybe can be a problem of loop when you find the minimum distance. It's not a correct value and you have a lot of oscillation.
angel_97 is offline   Reply With Quote

Reply

Tags
dpm bodyforce, particle interaction


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
particle diffusion with wall interactions Achini Fluent UDF and Scheme Programming 0 December 1, 2020 11:34
Modelling of particle diffusion with particle wall interactions Achini Fluent UDF and Scheme Programming 0 December 1, 2020 00:33
UDF for particle wall interactions Achini Fluent UDF and Scheme Programming 0 November 22, 2020 00:48
how to get distance between particle and center of channel rystokes FLUENT 0 April 26, 2013 22:27
Seed particle and trap it in a channel by CFX andox23 Main CFD Forum 0 April 15, 2013 11:01


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