electrostatic forces between a large numbers of droplets
Hi every body
I want to calculate the electrostatic forces between a large numbers of water droplets dispersed in oil continuum under the electrostatic field. I have used lagrangian frame work in DPM model in fluent 6.3.26. and for electrostatic body forces acting on droplets I have written a UDF code according to Dipole-Dipole interaction model. My UDF searches all particles in the all cells all over the domain to calculate electrostatic forces. But this is very time consuming and for large number of droplets it is not so efficient. Some have suggested using parcel concept in this case but I donít know how I can use parcels concept in my UDF to reduce run time. If anybody has suggestion in this case or any suggestion that help me I will be very thankful.
This is my UDF code:
/* UDF for computing the electric force on particles in all cells of a domain */
#define epsoil 2.2 /* epsilon for oil */
#define E0 25 /* electric background field,v/m */
#define beta 0.9934
#define M_PI 3.14159265358979323846
/* get the cell and Thread that the particle is currently in */
/* Particle index for looping over all particles in the cell */
/* loop over all particles in all cells of domain to find their position and diameter */
d = Get_Domain(1); /* mixture domain if multiphase */
d1 = P_DIAM(p);
thread_loop_c(t,d) /*loops over all cell threads in domain*/
begin_c_loop(c,t) /* loops over cells in a cell thread */
if (s > (d1/2+d2/2))
else if(i==1) bforce+=((-1)*Fr*sin(tet)+(-1)*Ft*sin(M_PI/2+tet));
}/*end of thread_loop_c(t,d)*/
I have the similar problem, I want to simulate a single droplet of water in air under the effect of electrostatic force. could u please guide me through this ?
I am not familiar enough with the UDF in fluent?
Did you get how to compute paricles in parcel method, if so could you please share it
It is not so difficult to use UDF for your case study. But you should first determine your problem model clearly. It is necessary to know if your electric field is homogenous or inhomogeneous. If your droplet is a charged type or net. And so on….
I could not find any solution to track droplets using parcel concept so I am coping with long run time.
|All times are GMT -4. The time now is 05:38.|