|
[Sponsors] |
Equivalent source in VOF model of polymer melting |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 21, 2008, 06:11 |
Equivalent source in VOF model of polymer melting
|
#1 |
Guest
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 ; } |
|
|
|
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 02: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 |