CFD Online Logo CFD Online URL
Home > Forums > FLUENT

Equivalent source in VOF model of polymer melting

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   February 21, 2008, 07:11
Default Equivalent source in VOF model of polymer melting
Posts: n/a
Hi, I am using VOF with 2 phase (primary= air, secondary= polymer). The heat flux Q (W/m2) is treated as equivelent heat source addded to the enegy equation as :S=Q*grad(F)*V

V is the volulme of the celle.. Since the gradient of F is nonzero only in the cells adjacent to the free surface, the source is applied only to the interface. but when I interpret the UDF I got error .. I think it come from the use of C_VOF_RG macro ...can some one help me to correct my simple UDF please ..! thanks in advance Marco

DEFINE_SOURCE(heat_source,c,t,dS,eqn) { real source; real Q Thread *liquid_thread ; liquid_thread=THREAD_SUB_THREAD(t,0) ; C_CENTROID(r,c,t);

if(NV_MAG(C_VOF_RG(c,liquid_thread))!=0.0 ) { source = Q*(NV_MAG(A))*C_VOLUME(c,t); dS[eqn]=0. ; }

else { source=0. ; dS[eqn]=0. ; }

return source ; }
  Reply With Quote


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
urgent... multiphase cfd model of packed bed reactor.( VOF MODEL using) balu@gold6 FLUENT 4 July 26, 2012 10:37
Heterogeneous reaction between phases with VOF model sooroo3 Fluent UDF and Scheme Programming 0 February 15, 2011 03:59
Simplified VOF Model gulbenkian FLUENT 1 June 10, 2010 16:52
Understanding k-omega SST model source code tmhonka OpenFOAM Programming & Development 1 September 8, 2009 07:33
urgent query regarding vof model plz rply Garima Chaudhary FLUENT 0 July 13, 2007 02:20

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