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

UDF-DROPLET EVAPORATION-interfacial area density

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 19, 2022, 01:14
Default UDF-DROPLET EVAPORATION-interfacial area density
  #1
New Member
 
masoud fard
Join Date: Jan 2022
Posts: 7
Rep Power: 4
fard734 is on a distinguished road
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 */

}
fard734 is offline   Reply With Quote

Reply


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
Density UDF lehoanganh07 Fluent UDF and Scheme Programming 3 August 17, 2014 09:36
Density UDF for supersonic flow David Christopher Fluent UDF and Scheme Programming 0 April 18, 2013 05:48
Droplet Evaporation Christian Main CFD Forum 2 February 27, 2007 06:27
multiphase interfacial area density model Paul Main CFD Forum 0 August 5, 2003 17:33
density update by UDF in non-premixed combustion IKSOO FLUENT 2 December 8, 2002 20:37


All times are GMT -4. The time now is 03:50.