|April 21, 2012, 10:00||
How to deal latent heat during phase change through source term udf
Join Date: Sep 2011
Posts: 8Rep Power: 3
i have written udf for phase change from liquid to vapour in a narrow pipe.i think there is some problem with energy udf, since temperature is not decreasing but it should decrease.
DEFINE_SOURCE(enrg_src, cell, mix_th, dS, eqn)
real P_SAT ;
pri_th = THREAD_SUB_THREAD(mix_th, 0);
sec_th = THREAD_SUB_THREAD(mix_th, 1);
if (C_P(cell, mix_th)<=P_SAT)
m_dot = -0.1*C_VOF(cell, pri_th)*C_R(cell, pri_th)*fabs(C_T(cell,pri_th) - T_SAT)/T_SAT;
dS[eqn] = -0.1*C_VOF(cell, pri_th)*C_R(cell, pri_th)/T_SAT;
m_dot = 0.1*C_VOF(cell, sec_th)*C_R(cell, sec_th)*fabs(T_SAT-C_T(cell,pri_th))/T_SAT;
dS[eqn] = 0.1*C_VOF(cell, sec_th)*C_R(cell, sec_th)/T_SAT;
i am not very much clear with this udf. means due to phase change temp of liquid should drop.
plz enlighten me t will be grateful.
|Thread||Thread Starter||Forum||Replies||Last Post|
|friction forces icoFoam||ofslcm||OpenFOAM||3||April 7, 2012 10:57|
|About phase change heat and mass transfer||Michael||FLUENT||2||February 13, 2011 01:49|
|OpenFOAM on MinGW crosscompiler hosted on Linux||allenzhao||OpenFOAM Installation||127||January 30, 2009 19:08|
|udf with moving heat source||Ryan||FLUENT||0||April 10, 2003 19:13|
|help needed about phase change||Yanhu Guo||Main CFD Forum||4||January 23, 2001 23:16|