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

UDF of evaporation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 7, 2014, 21:35
Default UDF of evaporation
  #1
New Member
 
Join Date: Aug 2013
Location: Tianjin,China
Posts: 2
Rep Power: 0
Connie is on a distinguished road
#include "udf.h" //包括常规宏
#include "sg_mphase.h" // 包括体积分数宏CVOF(C,T)
#define T_SAT 373 //定义蒸发温度100℃
#define LAT_HT 1.e3 //定义蒸发潜热J/Kg
DEFINE_SOURCE(liq_src, cell, pri_th, dS, eqn) //液相质量源项UDF
{
Thread *mix_th, *sec_th; //定义计算区线指针
real m_dot_l; //定义液相质量转移 kg/(m2.s)
mix_th = THREAD_SUPER_THREAD(pri_th); //指向混合区的主相即液相的指针
sec_th = THREAD_SUB_THREAD(mix_th, 1); //指向单相控制区的气相的指针,气相为第二相
if(C_T(cell, mix_th)>=T_SAT) //如果液相单元的温度高于蒸发温度,液相向气
相的质量质量转移
{
m_dot_l = -0.1*C_VOF(cell, pri_th)*C_R(cell, pri_th)* fabs(C_T(cell, mix_th) - T_SAT)/T_SAT;
dS[eqn] = -0.1*C_R(cell, pri_th)*fabs(C_T(cell, mix_th) - T_SAT)/T_SAT; //定义源项对质量转移
偏导
}
else
{
m_dot_l = 0.1*C_VOF(cell, sec_th)*C_R(cell, sec_th)* fabs(T_SAT-C_T(cell,mix_th))/T_SAT; //
如果指向混合区液相的单元温度小于蒸发温度,气相向液相的质量转移,液相得
dS[eqn] = 0.;//由于是气相向液相转移,所以液相的质量源项对质量转移的偏导为零
}
return m_dot_l;
}
what's the meaning of the number0.1 in the equation.Many other code of phase transformation has the similar constant.I wonder the physical significance.I'v been puzzled by the constant for a long time. Looking forward your answer.Thanks!
Connie is offline   Reply With Quote

Old   January 14, 2014, 00:02
Default co ask
  #2
New Member
 
Chen Xiaobing
Join Date: Aug 2011
Posts: 11
Rep Power: 15
xbchen168 is on a distinguished road
thanks thanks thanks
xbchen168 is offline   Reply With Quote

Old   December 8, 2014, 12:57
Default
  #3
Member
 
G. S.
Join Date: Nov 2010
Posts: 54
Rep Power: 16
gerardosrez is on a distinguished road
I have read that this 0.1 acts is a constant for mass transfer model and also as a relaxation factor for the source term...

In this paper

S.C.K. De Schepper, G.J. Heynderickx, G.B. Marin, Modeling the evaporation of a hydrocarbon feedstock in the convection section of a steam cracker, Computers & Chemical Engineering 33 (2009) 122e132.

you can find the basis of the model (I haven't read it because I don't have acces to it, if you have please share)

I have a question...

Did you only coded the UDF for evaporation??

Can you share the UDF for the energy equation?

Best regards....
gerardosrez is offline   Reply With Quote

Old   December 16, 2014, 14:13
Default
  #4
New Member
 
manish
Join Date: May 2014
Posts: 12
Rep Power: 12
manishat88 is on a distinguished road
can u plz explain the above code? and write it in english? dont understand chinese language.
manishat88 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
UDF for evaporation pranab_jha Fluent UDF and Scheme Programming 10 September 4, 2021 05:30
how to write udf for evaporation in heat pipe???? Anbazhagan R Fluent UDF and Scheme Programming 2 May 3, 2009 08:43
UDF for water evaporation syed FLUENT 0 March 14, 2007 23:21
UDF water evaporation emanuele FLUENT 0 March 12, 2007 17:34
Evaporation UDF MN FLUENT 0 December 8, 2003 21:37


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