|
[Sponsors] |
UDF-DROPLET EVAPORATION-interfacial area density |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 19, 2022, 02:14 |
UDF-DROPLET EVAPORATION-interfacial area density
|
#1 |
New Member
masoud fard
Join Date: Jan 2022
Posts: 7
Rep Power: 4 |
Dear friends,
The following code is a part of a UDF, which is used for calculation of interfacial area density of a single droplet. interfacial area density will be used for prediction of evaporation rate from a single droplet using VOF model. The UDF dosnt work, anybody know what is the problem? what is the correlation of "length of interface in a cell" /**** Compute the interfacial area density ****/ NV_V(G,=,C_VOF_G(c,w_liq)); /* vof gradient vector assignment*/ theta = atan(G[0]/G[1]); /* compute angle of VOF gradient vector, n1/n2 because of how geometry is set up in Fluent */ cotan = cos(theta) / sin(theta); /* compute cotangent of angle*/ A = C_VOLUME(c,mixture_thread)/(2*pi); /* in 2D- axis area computed from volume */ len = sqrt((2*C_VOF(c,w_liq)*A/cotan) + (2*C_VOF(c,w_liq)*A*cotan)); /* compute length of interface in a cell */ ad = len/A; /* calculate interfacial area density*/ /***** Computed the area density ad = length of interface / area of cell ***/ if (C_VOF(c, w_liq) != 0.0 && C_VOF(c, w_liq) != 1.0) { Message("AD = %f, theta = %f\n",ad, theta); /* Compute m_lg only if P_sat > (Pcell*XW) */ if (P_sat - (P_cell*X_W) > 0.0) { m_lg = cur_ts * ad *(2*a_c/(2-a_c)) * sqrt(MW_W/(2*pi*R)) * ((P_sat - (P_cell*X_W)) / sqrt(T_cell)); } else { m_lg = 0.0;} } else { m_lg = 0.0;} return (m_lg); /* return value of mass transfer rate */ } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Density UDF | lehoanganh07 | Fluent UDF and Scheme Programming | 3 | August 17, 2014 10:36 |
Density UDF for supersonic flow | David Christopher | Fluent UDF and Scheme Programming | 0 | April 18, 2013 06:48 |
Droplet Evaporation | Christian | Main CFD Forum | 2 | February 27, 2007 07:27 |
multiphase interfacial area density model | Paul | Main CFD Forum | 0 | August 5, 2003 18:33 |
density update by UDF in non-premixed combustion | IKSOO | FLUENT | 2 | December 8, 2002 21:37 |