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

UDF about boiling phenomenon

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   July 4, 2014, 03:19
Default UDF about boiling phenomenon
  #1
New Member
 
JeongGyun Ham
Join Date: Mar 2014
Location: Korea
Posts: 12
Rep Power: 12
orchiders is on a distinguished road
Hi. everyone.

I’m studying boiling phenomenon and carrying out the vof simulation on bubble growth when boiling.

A boundary between liquid and vapor is not clear.
So I assumed that
0< volume fraction <0.5 : water
0.5< volume fraction <1 : vapor

DEFINE_INIT(my_init_function, domain)
{
Thread *t;
Thread **pt;
Thread **st;
cell_t c;
Domain *pDomain = DOMAIN_SUB_DOMAIN(domain,P_PHASE);
Domain *sDomain = DOMAIN_SUB_DOMAIN(domain,S_PHASE);

real xc[ND_ND], vof1, vof2;

mp_thread_loop_c (t,domain,pt)
if (FLUID_THREAD_P(t))
{
Thread *tp = pt[P_PHASE];

begin_c_loop (c,t)
{
C_CENTROID(xc,c,t);

vof1=C_VOF(c,tp);

if ( 0.5 < vof1 )
C_VOF(c,tp) = 1;

}
end_c_loop (c,t)
}

mp_thread_loop_c (t,domain,st)
if (FLUID_THREAD_P(t))
{
Thread *sp = st[P_PHASE];

begin_c_loop (c,t)
{
C_CENTROID(xc,c,t);

vof2=C_VOF(c,sp);

if ( 0.5 < vof2 )
C_VOF(c,sp) = 0;

}
end_c_loop (c,t)
}

}



and I wrote UDF. but It didn’t operate.

Would you please do me a favor? Please give me reply anytime you feel free. Thank you!
orchiders is offline   Reply With Quote

 


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
UDF for Subcooled Nucleate Boiling Jake Fluent UDF and Scheme Programming 3 December 30, 2019 05:10
boiling in pipe (UDF) malay Fluent UDF and Scheme Programming 2 November 13, 2016 06:54
udf for boiling and condensation brusly FLUENT 0 November 22, 2006 22:17
udf for boiling and condensation brusly FLUENT 0 November 20, 2006 01:10
-What udf macro for boiling - thomas FLUENT 6 January 19, 2004 07:31


All times are GMT -4. The time now is 19:52.